chore: update all import paths

This commit is contained in:
Jeff Cross
2015-08-20 14:28:25 -07:00
parent 10437ab85c
commit 8ed22ce6e7
592 changed files with 1616 additions and 1486 deletions

View File

@ -15,7 +15,9 @@ import replace from '../broccoli-replace';
var global_excludes = [
'rtts_assert/**/*',
'http/**/*',
'angular2/http*',
'angular2/src/http/**/*',
'angular2/test/http/**/*',
'examples/src/http/**/*',
'examples/test/http/**/*',
'examples/src/jsonp/**/*',
@ -147,7 +149,8 @@ function getDocsTree() {
var licenses = new MultiCopy('', {
srcPath: 'LICENSE',
targetPatterns: ['modules/*'],
exclude: ['*/rtts_assert', '*/http', '*/upgrade', '*/angular1_router'] // Not in dart.
exclude:
['*/rtts_assert', '*/angular2/src/http', '*/upgrade', '*/angular1_router'] // Not in dart.
});
licenses = stew.rename(licenses, stripModulePrefix);

View File

@ -14,15 +14,15 @@ var projectRootDir = path.normalize(path.join(__dirname, '..', '..', '..', '..')
module.exports = function makeNodeTree(destinationPath) {
// list of npm packages that this build will create
var outputPackages = ['angular2', 'http', 'benchpress', 'rtts_assert'];
var outputPackages = ['angular2', 'benchpress', 'rtts_assert'];
var modulesTree = new Funnel('modules', {
include: ['angular2/**', 'http/**', 'benchpress/**', 'rtts_assert/**', '**/e2e_test/**'],
include: ['angular2/**', 'benchpress/**', 'rtts_assert/**', '**/e2e_test/**'],
exclude: [
// the following code and tests are not compatible with CJS/node environment
'angular2/test/core/zone/**',
'angular2/test/test_lib/fake_async_spec.ts',
'angular2/test/render/xhr_impl_spec.ts',
'angular2/test/core/render/xhr_impl_spec.ts',
'angular2/test/forms/**',
'angular1_router/**'
]
@ -85,13 +85,13 @@ module.exports = function makeNodeTree(destinationPath) {
files: ['**/test/**/*_spec.js'],
patterns: [
{
match: /$/,
replacement: function(_, relativePath) {
return "\r\n main(); \n\r" +
"var parse5Adapter = require('angular2/src/dom/parse5_adapter'); " +
"parse5Adapter.Parse5DomAdapter.makeCurrent();";
match: /^/,
replacement: function() {
return `var parse5Adapter = require('angular2/src/core/dom/parse5_adapter');\n\r
parse5Adapter.Parse5DomAdapter.makeCurrent();`
}
}
},
{match: /$/, replacement: function(_, relativePath) { return "\r\n main(); \n\r"; }}
]
});