build: fix rollup config file paths
This commit is contained in:
parent
5aed1e36b8
commit
72563b61fb
|
@ -7,10 +7,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/animation/index.js',
|
entry: '../../dist/packages-dist/animations/@angular/animations.es5.js',
|
||||||
dest: '../../../dist/packages-dist/animation/bundles/animation.umd.js',
|
dest: '../../dist/packages-dist/animations/bundles/animations.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.animation',
|
moduleName: 'ng.animations',
|
||||||
globals: {
|
globals: {
|
||||||
'@angular/core': 'ng.core',
|
'@angular/core': 'ng.core',
|
||||||
'rxjs/Observable': 'Rx',
|
'rxjs/Observable': 'Rx',
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"outDir": "../../../dist/packages/benchpress",
|
"outDir": "../../dist/packages/benchpress",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@angular/core": ["../../../dist/packages/core"]
|
"@angular/core": ["../../dist/packages/core"]
|
||||||
},
|
},
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/common/index.js',
|
entry: '../../dist/packages-dist/common/@angular/common.es5.js',
|
||||||
dest: '../../../dist/packages-dist/common/bundles/common.umd.js',
|
dest: '../../dist/packages-dist/common/bundles/common.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.common',
|
moduleName: 'ng.common',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/common/testing/index.js',
|
entry: '../../../dist/packages-dist/common/@angular/common/testing.es5.js',
|
||||||
dest: '../../../dist/packages-dist/common/bundles/common-testing.umd.js',
|
dest: '../../../dist/packages-dist/common/bundles/common-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.common.testing',
|
moduleName: 'ng.common.testing',
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"paths": {
|
"paths": {
|
||||||
"@angular/core": ["../../dist/packages/core/"],
|
"@angular/core": ["../../dist/packages/core"],
|
||||||
"@angular/common": ["../../dist/packages/common"]
|
"@angular/common": ["../../dist/packages/common"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/compiler/index.js',
|
entry: '../../dist/packages-dist/compiler/@angular/compiler.es5.js',
|
||||||
dest: '../../../dist/packages-dist/compiler/bundles/compiler.umd.js',
|
dest: '../../dist/packages-dist/compiler/bundles/compiler.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.compiler',
|
moduleName: 'ng.compiler',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/compiler/testing/index.js',
|
entry: '../../../dist/packages-dist/compiler/@angular/compiler/testing.es5.js',
|
||||||
dest: '../../../dist/packages-dist/compiler/bundles/compiler-testing.umd.js',
|
dest: '../../../dist/packages-dist/compiler/bundles/compiler-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.compiler.testing',
|
moduleName: 'ng.compiler.testing',
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../src
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/core/testing/index.js',
|
entry: '../../../dist/packages-dist/core/@angular/core/testing.es5.js',
|
||||||
dest: '../../../dist/packages-dist/core/bundles/core-testing.umd.js',
|
dest: '../../../dist/packages-dist/core/bundles/core-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.core.testing',
|
moduleName: 'ng.core.testing',
|
||||||
|
|
|
@ -17,7 +17,8 @@
|
||||||
"lib": ["es2015", "dom"],
|
"lib": ["es2015", "dom"],
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
|
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
|
||||||
"types": []
|
"types": [],
|
||||||
|
"preserveConstEnums": true
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"public_api.ts",
|
"public_api.ts",
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/forms/index.js',
|
entry: '../../dist/packages-dist/forms/@angular/forms.es5.js',
|
||||||
dest: '../../../dist/packages-dist/forms/bundles/forms.umd.js',
|
dest: '../../dist/packages-dist/forms/bundles/forms.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.forms',
|
moduleName: 'ng.forms',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/http/index.js',
|
entry: '../../dist/packages-dist/http/@angular/http.es5.js',
|
||||||
dest: '../../../dist/packages-dist/http/bundles/http.umd.js',
|
dest: '../../dist/packages-dist/http/bundles/http.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.http',
|
moduleName: 'ng.http',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/http/testing/index.js',
|
entry: '../../../dist/packages-dist/http/@angular/http/testing.es5.js',
|
||||||
dest: '../../../dist/packages-dist/http/bundles/http-testing.umd.js',
|
dest: '../../../dist/packages-dist/http/bundles/http-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.http.testing',
|
moduleName: 'ng.http.testing',
|
||||||
|
|
|
@ -10,13 +10,13 @@ import commonjs from 'rollup-plugin-commonjs';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
|
||||||
var m = /^\@angular\/((\w|\-)+)(\/(\w|\d|\/|\-)+)?$/;
|
var m = /^\@angular\/((\w|\-)+)(\/(\w|\d|\/|\-)+)?$/;
|
||||||
var location = normalize('../../../dist/packages-dist') + '/';
|
var location = normalize('../../dist/packages-dist') + '/';
|
||||||
var rxjsLocation = normalize('../../../node_modules/rxjs');
|
var rxjsLocation = normalize('../../node_modules/rxjs');
|
||||||
var esm = 'esm/';
|
var esm = 'esm/';
|
||||||
|
|
||||||
var locations = {
|
var locations = {
|
||||||
'tsc-wrapped': normalize('../../../dist/tools/@angular') + '/',
|
'tsc-wrapped': normalize('../../dist/tools/@angular') + '/',
|
||||||
'compiler-cli': normalize('../../../dist/esm') + '/'
|
'compiler-cli': normalize('../../dist/packages') + '/'
|
||||||
};
|
};
|
||||||
|
|
||||||
var esm_suffixes = {};
|
var esm_suffixes = {};
|
||||||
|
@ -24,7 +24,7 @@ var esm_suffixes = {};
|
||||||
function normalize(fileName) {
|
function normalize(fileName) {
|
||||||
return path.resolve(__dirname, fileName);
|
return path.resolve(__dirname, fileName);
|
||||||
}
|
}
|
||||||
|
console.log('running')
|
||||||
function resolve(id, from) {
|
function resolve(id, from) {
|
||||||
// console.log('Resolve id:', id, 'from', from)
|
// console.log('Resolve id:', id, 'from', from)
|
||||||
if (id == '@angular/tsc-wrapped') {
|
if (id == '@angular/tsc-wrapped') {
|
||||||
|
@ -37,7 +37,7 @@ function resolve(id, from) {
|
||||||
var packageName = match[1];
|
var packageName = match[1];
|
||||||
var esm_suffix = esm_suffixes[packageName] || '';
|
var esm_suffix = esm_suffixes[packageName] || '';
|
||||||
var loc = locations[packageName] || location;
|
var loc = locations[packageName] || location;
|
||||||
var r = loc + esm_suffix + packageName + (match[3] || '/index') + '.js';
|
var r = loc !== location && (loc + esm_suffix + packageName + (match[3] || '/index') + '.js') || loc + packageName + '/@angular/' + packageName + '.es5.js';
|
||||||
// console.log('** ANGULAR MAPPED **: ', r);
|
// console.log('** ANGULAR MAPPED **: ', r);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
@ -62,8 +62,8 @@ module.exports = function(provided) {
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/language-service/index.js',
|
entry: '../../dist/packages-dist/language-service/@angular/language-service.es5.js',
|
||||||
dest: '../../../dist/packages-dist/language-service/bundles/language-service.umd.js',
|
dest: '../../dist/packages-dist/language-service/bundles/language-service.umd.js',
|
||||||
format: 'amd',
|
format: 'amd',
|
||||||
moduleName: 'ng.language_service',
|
moduleName: 'ng.language_service',
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
|
|
|
@ -7,9 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/platform-browser-dynamic/index.js',
|
entry: '../../dist/packages-dist/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js',
|
||||||
dest:
|
dest: '../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
||||||
'../../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.platformBrowserDynamic',
|
moduleName: 'ng.platformBrowserDynamic',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/platform-browser-dynamic/testing/index.js',
|
entry: '../../../dist/packages-dist/platform-browser-dynamic/@angular/platform-browser-dynamic/testing.es5.js',
|
||||||
dest:
|
dest:
|
||||||
'../../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js',
|
'../../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright Google Inc. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style license that can be
|
||||||
|
* found in the LICENSE file at https://angular.io/license
|
||||||
|
*/
|
||||||
|
|
||||||
|
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',
|
||||||
|
moduleName: 'ng.platformBrowser.testing',
|
||||||
|
globals: {
|
||||||
|
'@angular/core': 'ng.core',
|
||||||
|
'@angular/common': 'ng.common',
|
||||||
|
'@angular/platform-browser': 'ng.platformBrowser'
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright Google Inc. All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style license that can be
|
||||||
|
* found in the LICENSE file at https://angular.io/license
|
||||||
|
*/
|
||||||
|
|
||||||
|
export default {
|
||||||
|
entry: '../../../../dist/packages-dist/platform-browser/@angular/platform-browser/animations/testing.es5.js',
|
||||||
|
dest: '../../../../dist/packages-dist/platform-browser/bundles/platform-browser-animations-testing.umd.js',
|
||||||
|
format: 'umd',
|
||||||
|
moduleName: 'ng.platformBrowser.testing',
|
||||||
|
globals: {
|
||||||
|
'@angular/core': 'ng.core',
|
||||||
|
'@angular/common': 'ng.common',
|
||||||
|
'@angular/platform-browser': 'ng.platformBrowser'
|
||||||
|
}
|
||||||
|
};
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/platform-browser/index.js',
|
entry: '../../dist/packages-dist/platform-browser/@angular/platform-browser.es5.js',
|
||||||
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser.umd.js',
|
dest: '../../dist/packages-dist/platform-browser/bundles/platform-browser.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.platformBrowser',
|
moduleName: 'ng.platformBrowser',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/platform-browser/testing/index.js',
|
entry: '../../../dist/packages-dist/platform-browser/@angular/platform-browser/testing.es5.js',
|
||||||
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-testing.umd.js',
|
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.platformBrowser.testing',
|
moduleName: 'ng.platformBrowser.testing',
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/platform-server/index.js',
|
entry: '../../dist/packages-dist/platform-server/@angular/platform-server.es5.js',
|
||||||
dest: '../../../dist/packages-dist/platform-server/bundles/platform-server.umd.js',
|
dest: '../../dist/packages-dist/platform-server/bundles/platform-server.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.platformServer',
|
moduleName: 'ng.platformServer',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/platform-server/testing/index.js',
|
entry: '../../../dist/packages-dist/platform-server/@angular/platform-server/testing.es5.js',
|
||||||
dest: '../../../dist/packages-dist/platform-server/bundles/platform-server-testing.umd.js',
|
dest: '../../../dist/packages-dist/platform-server/bundles/platform-server-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.platformServer.testing',
|
moduleName: 'ng.platformServer.testing',
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/platform-webworker-dynamic/index.js',
|
entry: '../../dist/packages-dist/platform-webworker-dynamic/@angular/platform-webworker-dynamic.es5.js',
|
||||||
dest:
|
dest:
|
||||||
'../../../dist/packages-dist/platform-webworker-dynamic/bundles/platform-webworker-dynamic.umd.js',
|
'../../dist/packages-dist/platform-webworker-dynamic/bundles/platform-webworker-dynamic.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.platformWebworkerDynamic',
|
moduleName: 'ng.platformWebworkerDynamic',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/platform-webworker/index.js',
|
entry: '../../dist/packages-dist/platform-webworker/@angular/platform-webworker.es5.js',
|
||||||
dest: '../../../dist/packages-dist/platform-webworker/bundles/platform-webworker.umd.js',
|
dest: '../../dist/packages-dist/platform-webworker/bundles/platform-webworker.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.platformWebworker',
|
moduleName: 'ng.platformWebworker',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/router/@angular/index.js',
|
entry: '../../dist/packages-dist/router/@angular/router.es5.js',
|
||||||
dest: '../../../dist/packages-dist/router/bundles/router.umd.js',
|
dest: '../../dist/packages-dist/router/bundles/router.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.router',
|
moduleName: 'ng.router',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/router/testing/index.js',
|
entry: '../../../dist/packages-dist/router/@angular/router/testing.es5.js',
|
||||||
dest: '../../../dist/packages-dist/router/bundles/router-testing.umd.js',
|
dest: '../../../dist/packages-dist/router/bundles/router-testing.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.router.testing',
|
moduleName: 'ng.router.testing',
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/router/upgrade.js',
|
entry: '../../../dist/packages-dist/router/@angular/router/upgrade.es5.js',
|
||||||
dest: '../../../dist/packages-dist/router/bundles/router-upgrade.umd.js',
|
dest: '../../../dist/packages-dist/router/bundles/router-upgrade.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.router.upgrade',
|
moduleName: 'ng.router.upgrade',
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/upgrade/index.js',
|
entry: '../../dist/packages-dist/upgrade/@angular/upgrade.es5.js',
|
||||||
dest: '../../../dist/packages-dist/upgrade/bundles/upgrade.umd.js',
|
dest: '../../dist/packages-dist/upgrade/bundles/upgrade.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.upgrade',
|
moduleName: 'ng.upgrade',
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
entry: '../../../dist/packages-dist/upgrade/static.js',
|
entry: '../../../dist/packages-dist/upgrade/@angular/upgrade/static.es5.js',
|
||||||
dest: '../../../dist/packages-dist/upgrade/bundles/upgrade-static.umd.js',
|
dest: '../../../dist/packages-dist/upgrade/bundles/upgrade-static.umd.js',
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
moduleName: 'ng.upgrade.static',
|
moduleName: 'ng.upgrade.static',
|
||||||
|
|
Loading…
Reference in New Issue