build: import tslib rather than output TS helpers (#16901)

This commit is contained in:
Jason Aden 2017-05-23 13:01:39 -07:00 committed by Chuck Jazdzewski
parent 1651a8f189
commit fa809ec8cf
44 changed files with 3011 additions and 5898 deletions

View File

@ -123,8 +123,8 @@ downlevelES2015() {
ts_file="${BASH_REMATCH[1]}${2:-".es5.ts"}"
cp ${file} ${ts_file}
echo "====== $TSC ${ts_file} --target es5 --module es2015 --noLib"
($TSC ${ts_file} --target es5 --module es2015 --noLib --sourceMap) > /dev/null 2>&1 || true
echo "====== $TSC ${ts_file} --target es5 --module es2015 --noLib --sourceMap --importHelpers"
($TSC ${ts_file} --target es5 --module es2015 --noLib --sourceMap --importHelpers) > /dev/null 2>&1 || true
mapSources "${BASH_REMATCH[1]}${2:-".es5.js"}"
rm -f ${ts_file}
fi
@ -442,11 +442,7 @@ do
echo "====== Copy ${PACKAGE} typings"
rsync -a --exclude=*.js --exclude=*.js.map ${OUT_DIR}/ ${NPM_DIR}
# echo "$(cat ${LICENSE_BANNER}) ${N} export * from './index'" > ${NPM_DIR}/${PACKAGE}.d.ts
# echo "{\"alias\": \"./index.metadata.json\"}" > ${NPM_DIR}/${PACKAGE}.metadata.json
# exit 0
moveTypings ${NPM_DIR} ${PACKAGE}
# addNgcPackageJson ${NPM_DIR}/typings
(
cd ${SRC_DIR}

File diff suppressed because it is too large Load Diff

4157
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -24,6 +24,7 @@
"core-js": "^2.4.1",
"reflect-metadata": "^0.1.3",
"rxjs": "^5.0.1",
"tslib": "^1.7.1",
"typescript": "^2.3.2",
"zone.js": "^0.8.10"
},
@ -84,6 +85,7 @@
"rho": "^0.3.0",
"rollup": "^0.41.6",
"rollup-plugin-commonjs": "^5.0.5",
"rollup-plugin-node-resolve": "^3.0.0",
"selenium-webdriver": "^2.53.3",
"semver": "^5.1.0",
"sorcery": "^0.10.0",

View File

@ -6,15 +6,21 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/animations': 'ng.animations'
};
export default {
entry: '../../../dist/packages-dist/animations/@angular/animations/browser.es5.js',
dest: '../../../dist/packages-dist/animations/bundles/animations-browser.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.animations.browser',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/animations': 'ng.animations'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,15 +6,21 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
};
export default {
entry: '../../../../dist/packages-dist/animations/@angular/animations/browser/testing.es5.js',
dest: '../../../../dist/packages-dist/animations/bundles/animations-browser-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.animations.browser.testing',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/animations': 'ng.animations'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -8,6 +8,9 @@
"typings": "./animations.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER"
},

View File

@ -6,15 +6,21 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
};
export default {
entry: '../../dist/packages-dist/animations/@angular/animations.es5.js',
dest: '../../dist/packages-dist/animations/bundles/animations.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.animations',
globals: {
'@angular/core': 'ng.core',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -8,6 +8,9 @@
"typings": "./common.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER"
},

View File

@ -6,15 +6,21 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
};
export default {
entry: '../../dist/packages-dist/common/@angular/common.es5.js',
dest: '../../dist/packages-dist/common/bundles/common.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.common',
globals: {
'@angular/core': 'ng.core',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,16 +6,22 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx'
};
export default {
entry: '../../../dist/packages-dist/common/@angular/common/testing.es5.js',
dest: '../../../dist/packages-dist/common/bundles/common-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.common.testing',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -8,6 +8,9 @@
"typings": "./compiler.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER"
},

View File

@ -6,18 +6,21 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
};
export default {
entry: '../../dist/packages-dist/compiler/@angular/compiler.es5.js',
dest: '../../dist/packages-dist/compiler/bundles/compiler.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.compiler',
globals: {
'@angular/core': 'ng.core',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
},
plugins: [
// nodeResolve({ jsnext: true, main: true }),
]
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,17 +6,23 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/core/testing': 'ng.core.testing',
'@angular/compiler': 'ng.compiler',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx'
};
export default {
entry: '../../../dist/packages-dist/compiler/@angular/compiler/testing.es5.js',
dest: '../../../dist/packages-dist/compiler/bundles/compiler-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.compiler.testing',
globals: {
'@angular/core': 'ng.core',
'@angular/core/testing': 'ng.core.testing',
'@angular/compiler': 'ng.compiler',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -8,6 +8,9 @@
"typings": "./core.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"rxjs": "^5.0.1",
"zone.js": "^0.8.4"

View File

@ -6,18 +6,24 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
'rxjs/Observer': 'Rx',
'rxjs/Subscription': 'Rx',
'rxjs/observable/merge': 'Rx.Observable',
'rxjs/operator/share': 'Rx.Observable.prototype'
};
export default {
entry: '../../dist/packages-dist/core/@angular/core.es5.js',
dest: '../../dist/packages-dist/core/bundles/core.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.core',
globals: {
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
'rxjs/Observer': 'Rx',
'rxjs/Subscription': 'Rx',
'rxjs/observable/merge': 'Rx.Observable',
'rxjs/operator/share': 'Rx.Observable.prototype'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,15 +6,21 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
};
export default {
entry: '../../../dist/packages-dist/core/@angular/core/testing.es5.js',
dest: '../../../dist/packages-dist/core/bundles/core-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.core.testing',
globals: {
'@angular/core': 'ng.core',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -8,6 +8,9 @@
"typings": "./forms.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/common": "0.0.0-PLACEHOLDER",

View File

@ -6,21 +6,27 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
'rxjs/observable/fromPromise': 'Rx.Observable',
'rxjs/observable/forkJoin': 'Rx.Observable',
'rxjs/operator/map': 'Rx.Observable.prototype'
};
export default {
entry: '../../dist/packages-dist/forms/@angular/forms.es5.js',
dest: '../../dist/packages-dist/forms/bundles/forms.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.forms',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
'rxjs/observable/fromPromise': 'Rx.Observable',
'rxjs/observable/forkJoin': 'Rx.Observable',
'rxjs/operator/map': 'Rx.Observable.prototype'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -8,6 +8,9 @@
"typings": "./http.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"rxjs": "^5.0.1",
"@angular/core": "0.0.0-PLACEHOLDER",

View File

@ -6,17 +6,23 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx'
};
export default {
entry: '../../dist/packages-dist/http/@angular/http.es5.js',
dest: '../../dist/packages-dist/http/bundles/http.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.http',
globals: {
'@angular/core': 'ng.core',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,20 +6,26 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/http': 'ng.http',
'rxjs/Observable': 'Rx',
'rxjs/ReplaySubject': 'Rx',
'rxjs/Subject': 'Rx',
'rxjs/operator/take': 'Rx.Observable.prototype'
};
export default {
entry: '../../../dist/packages-dist/http/@angular/http/testing.es5.js',
dest: '../../../dist/packages-dist/http/bundles/http-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.http.testing',
globals: {
'@angular/core': 'ng.core',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/http': 'ng.http',
'rxjs/Observable': 'Rx',
'rxjs/ReplaySubject': 'Rx',
'rxjs/Subject': 'Rx',
'rxjs/operator/take': 'Rx.Observable.prototype'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -7,6 +7,9 @@
"typings": "./language-service.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"repository": {
"type": "git",
"url": "https://github.com/angular/angular.git"

View File

@ -8,6 +8,9 @@
"typings": "./platform-browser-dynamic.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/common": "0.0.0-PLACEHOLDER",

View File

@ -6,6 +6,15 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
};
export default {
entry:
'../../dist/packages-dist/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js',
@ -13,10 +22,7 @@ export default {
format: 'umd',
exports: 'named',
moduleName: 'ng.platformBrowserDynamic',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,6 +6,19 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/core/testing': 'ng.core.testing',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/compiler/testing': 'ng.compiler.testing',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/platform-browser/testing': 'ng.platformBrowser.testing',
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic'
};
export default {
entry:
'../../../dist/packages-dist/platform-browser-dynamic/@angular/platform-browser-dynamic/testing.es5.js',
@ -14,14 +27,7 @@ export default {
format: 'umd',
exports: 'named',
moduleName: 'ng.platformBrowserDynamic.testing',
globals: {
'@angular/core': 'ng.core',
'@angular/core/testing': 'ng.core.testing',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/compiler/testing': 'ng.compiler.testing',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/platform-browser/testing': 'ng.platformBrowser.testing',
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,17 +6,23 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/animations': 'ng.animations',
'@angular/animations/browser': 'ng.animations.browser'
};
export default {
entry: '../../../dist/packages-dist/platform-browser/@angular/platform-browser/animations.es5.js',
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-animations.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.platformBrowser.animations',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/animations': 'ng.animations',
'@angular/animations/browser': 'ng.animations.browser'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -8,6 +8,9 @@
"typings": "./platform-browser.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/common": "0.0.0-PLACEHOLDER"

View File

@ -6,14 +6,20 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
};
export default {
entry: '../../dist/packages-dist/platform-browser/@angular/platform-browser.es5.js',
dest: '../../dist/packages-dist/platform-browser/bundles/platform-browser.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.platformBrowser',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,15 +6,21 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/platform-browser': 'ng.platformBrowser'
};
export default {
entry: '../../../dist/packages-dist/platform-browser/@angular/platform-browser/testing.es5.js',
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.platformBrowser.testing',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/platform-browser': 'ng.platformBrowser'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -16,6 +16,7 @@
"@angular/platform-browser": "0.0.0-PLACEHOLDER"
},
"dependencies": {
"tslib": "^1.7.1",
"parse5": "^3.0.1",
"xhr2": "^0.1.4"
},

View File

@ -6,16 +6,27 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
'rxjs/operator/filter': 'Rx.Observable.prototype',
'rxjs/operator/first': 'Rx.Observable.prototype'
};
export default {
entry: '../../dist/packages-dist/platform-server/@angular/platform-server.es5.js',
dest: '../../dist/packages-dist/platform-server/bundles/platform-server.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.platformServer',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,19 +6,25 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/compiler/testing': 'ng.compiler.testing',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/platform-server': 'ng.platformServer',
'@angular/platform-browser-dynamic/testing': 'ng.platformBrowserDynamic.testing'
};
export default {
entry: '../../../dist/packages-dist/platform-server/@angular/platform-server/testing.es5.js',
dest: '../../../dist/packages-dist/platform-server/bundles/platform-server-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.platformServer.testing',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/compiler/testing': 'ng.compiler.testing',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/platform-server': 'ng.platformServer',
'@angular/platform-browser-dynamic/testing': 'ng.platformBrowserDynamic.testing'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -8,6 +8,9 @@
"typings": "./platform-webworker-dynamic.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"@angular/common": "0.0.0-PLACEHOLDER",
"@angular/core": "0.0.0-PLACEHOLDER",

View File

@ -6,6 +6,17 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
'@angular/platform-webworker': 'ng.platformWebworker',
};
export default {
entry:
'../../dist/packages-dist/platform-webworker-dynamic/@angular/platform-webworker-dynamic.es5.js',
@ -14,12 +25,7 @@ export default {
format: 'umd',
exports: 'named',
moduleName: 'ng.platformWebworkerDynamic',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
'@angular/platform-webworker': 'ng.platformWebworker',
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -8,6 +8,9 @@
"typings": "./platform-webworker.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"@angular/common": "0.0.0-PLACEHOLDER",
"@angular/core": "0.0.0-PLACEHOLDER",

View File

@ -6,17 +6,23 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/platform-browser': 'ng.platformBrowser',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx'
};
export default {
entry: '../../dist/packages-dist/platform-webworker/@angular/platform-webworker.es5.js',
dest: '../../dist/packages-dist/platform-webworker/bundles/platform-webworker.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.platformWebworker',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/platform-browser': 'ng.platformBrowser',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -20,6 +20,9 @@
"url": "https://github.com/angular/angular/issues"
},
"homepage": "https://github.com/angular/angular/blob/master/modules/%40angular/router/README.md",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/common": "0.0.0-PLACEHOLDER",

View File

@ -6,40 +6,45 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/platform-browser': 'ng.platformBrowser',
'rxjs/BehaviorSubject': 'Rx',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
'rxjs/Subscription': 'Rx',
'rxjs/util/EmptyError': 'Rx',
'rxjs/observable/from': 'Rx.Observable',
'rxjs/observable/fromPromise': 'Rx.Observable',
'rxjs/observable/forkJoin': 'Rx.Observable',
'rxjs/observable/of': 'Rx.Observable',
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
'rxjs/operator/map': 'Rx.Observable.prototype',
'rxjs/operator/mergeAll': 'Rx.Observable.prototype',
'rxjs/operator/concatAll': 'Rx.Observable.prototype',
'rxjs/operator/mergeMap': 'Rx.Observable.prototype',
'rxjs/operator/reduce': 'Rx.Observable.prototype',
'rxjs/operator/every': 'Rx.Observable.prototype',
'rxjs/operator/first': 'Rx.Observable.prototype',
'rxjs/operator/catch': 'Rx.Observable.prototype',
'rxjs/operator/last': 'Rx.Observable.prototype',
'rxjs/operator/filter': 'Rx.Observable.prototype',
'rxjs/operator/concatMap': 'Rx.Observable.prototype'
};
export default {
entry: '../../dist/packages-dist/router/@angular/router.es5.js',
dest: '../../dist/packages-dist/router/bundles/router.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.router',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/platform-browser': 'ng.platformBrowser',
'rxjs/BehaviorSubject': 'Rx',
'rxjs/Observable': 'Rx',
'rxjs/Subject': 'Rx',
'rxjs/Subscription': 'Rx',
'rxjs/util/EmptyError': 'Rx',
'rxjs/observable/from': 'Rx.Observable',
'rxjs/observable/fromPromise': 'Rx.Observable',
'rxjs/observable/forkJoin': 'Rx.Observable',
'rxjs/observable/of': 'Rx.Observable',
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
'rxjs/operator/map': 'Rx.Observable.prototype',
'rxjs/operator/mergeAll': 'Rx.Observable.prototype',
'rxjs/operator/concatAll': 'Rx.Observable.prototype',
'rxjs/operator/mergeMap': 'Rx.Observable.prototype',
'rxjs/operator/reduce': 'Rx.Observable.prototype',
'rxjs/operator/every': 'Rx.Observable.prototype',
'rxjs/operator/first': 'Rx.Observable.prototype',
'rxjs/operator/catch': 'Rx.Observable.prototype',
'rxjs/operator/last': 'Rx.Observable.prototype',
'rxjs/operator/filter': 'Rx.Observable.prototype',
'rxjs/operator/concatMap': 'Rx.Observable.prototype'
},
plugins: []
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,17 +6,23 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/common/testing': 'ng.common.testing',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/router': 'ng.router'
};
export default {
entry: '../../../dist/packages-dist/router/@angular/router/testing.es5.js',
dest: '../../../dist/packages-dist/router/bundles/router-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.router.testing',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/common/testing': 'ng.common.testing',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/router': 'ng.router'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,16 +6,22 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/router': 'ng.router',
'@angular/upgrade/static': 'ng.upgrade.static'
};
export default {
entry: '../../../dist/packages-dist/router/@angular/router/upgrade.es5.js',
dest: '../../../dist/packages-dist/router/bundles/router-upgrade.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.router.upgrade',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/router': 'ng.router',
'@angular/upgrade/static': 'ng.upgrade.static'
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -8,6 +8,9 @@
"typings": "./upgrade.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.7.1"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/compiler": "0.0.0-PLACEHOLDER",

View File

@ -6,22 +6,28 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
'rxjs/Subject': 'Rx',
'rxjs/observable/PromiseObservable': 'Rx', // this is wrong, but this stuff has changed in rxjs
// b.6 so we need to fix it when we update.
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
'rxjs/Observable': 'Rx',
};
export default {
entry: '../../dist/packages-dist/upgrade/@angular/upgrade.es5.js',
dest: '../../dist/packages-dist/upgrade/bundles/upgrade.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.upgrade',
globals: {
'@angular/core': 'ng.core',
'@angular/common': 'ng.common',
'@angular/compiler': 'ng.compiler',
'@angular/platform-browser': 'ng.platformBrowser',
'@angular/platform-browser-dynamic': 'ng.platformBrowserDynamic',
'rxjs/Subject': 'Rx',
'rxjs/observable/PromiseObservable': 'Rx', // this is wrong, but this stuff has changed in rxjs
// b.6 so we need to fix it when we update.
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
'rxjs/Observable': 'Rx',
}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,11 +6,19 @@
* found in the LICENSE file at https://angular.io/license
*/
import resolve from 'rollup-plugin-node-resolve';
const globals = {
'@angular/core': 'ng.core'
};
export default {
entry: '../../../dist/packages-dist/upgrade/@angular/upgrade/static.es5.js',
dest: '../../../dist/packages-dist/upgrade/bundles/upgrade-static.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.upgrade.static',
globals: {'@angular/core': 'ng.core'}
plugins: [resolve()],
external: Object.keys(globals),
globals: globals
};