chore(sources): intro modules_dart; move analyzer code there

We have Dart code in `angular2` module that ought to be in its own
package. Examples include Dart analysis plugins, and potentially the
transformers (although transformers cannot be moved out just yet).
However, this code is Dart-only and it doesn’t make sense to use JS
directory layout for it. This commit introduces a sub-directory called
`modules_dart`. All modules in this directory are pure Dart packages
using standard pub directory layout. The code in these packages never
gets transpiled. It is directly copied to `dist` unmodified, except an
adjustment in relative paths in `pubspec.yaml` files.
This commit is contained in:
Yegor Jbanov
2015-04-23 17:37:05 -07:00
parent 4bab25b366
commit 87cf434929
6 changed files with 89 additions and 1 deletions

View File

@ -15,4 +15,16 @@ var doc = yaml.safeLoad(fs.readFileSync(pubspecFile, 'utf8'));
// Pub does not allow publishing with dependency_overrides
delete doc['dependency_overrides'];
// Overwrite temporary values with real values
delete doc['version'];
delete doc['authors'];
delete doc['homepage']
var BASE_PACKAGE_JSON = require('../../package.json');
doc['version'] = BASE_PACKAGE_JSON.version;
doc['homepage'] = BASE_PACKAGE_JSON.homepage;
doc['authors'] = Object.keys(BASE_PACKAGE_JSON.contributors).map(function(name) {
return name + ' <' + BASE_PACKAGE_JSON.contributors[name] + '>';
});
fs.writeFileSync(pubspecFile, yaml.safeDump(doc));