refactor: More generic build.sh file
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/animations.umd.js",
|
||||
"module": "./@angular/animations.es5.js",
|
||||
"es2015": "./@angular/animations.js",
|
||||
"typings": "./typings/animations/index.d.ts",
|
||||
"typings": "./typings/animations.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"description": "Benchpress - a framework for e2e performance tests",
|
||||
"main": "index.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./index.d.ts",
|
||||
"dependencies": {
|
||||
"@angular/core": "^2.0.0-rc.7",
|
||||
"reflect-metadata": "^0.1.2",
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/common.umd.js",
|
||||
"module": "./@angular/common.es5.js",
|
||||
"es2015": "./@angular/common.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./typings/common.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"typings": "../typings/testing/index.d.ts",
|
||||
"typings": "../typings/testing.d.ts",
|
||||
"main": "../bundles/common-testing.umd.js",
|
||||
"module": "../@angular/common/testing.es5.js",
|
||||
"es2015": "../@angular/common/testing.js"
|
||||
|
@ -1,15 +0,0 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point for all public APIs of the compiler-cli/esm5 package.
|
||||
*/
|
||||
|
||||
export * from '../index';
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"extends": "../tsconfig-build",
|
||||
"compilerOptions": {
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node"
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - the compiler CLI for Node.js",
|
||||
"main": "index.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "index.d.ts",
|
||||
"bin": {
|
||||
"ngc": "./src/main.js",
|
||||
"ng-xi18n": "./src/extract_i18n.js"
|
||||
|
@ -1,15 +0,0 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point for all public APIs of the compiler/testing package.
|
||||
*/
|
||||
|
||||
export * from '../index';
|
@ -1,22 +0,0 @@
|
||||
/**
|
||||
* @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/compiler/es5/index.js',
|
||||
dest: '../../../dist/packages-dist/compiler/bundles/compiler.umd.js',
|
||||
format: 'umd',
|
||||
moduleName: 'ng.compiler',
|
||||
globals: {
|
||||
'@angular/core': 'ng.core',
|
||||
'rxjs/Observable': 'Rx',
|
||||
'rxjs/Subject': 'Rx',
|
||||
},
|
||||
plugins: [
|
||||
// nodeResolve({ jsnext: true, main: true }),
|
||||
]
|
||||
};
|
@ -1,12 +0,0 @@
|
||||
|
||||
{
|
||||
"extends": "../tsconfig-build",
|
||||
|
||||
"compilerOptions": {
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
"index.ts",
|
||||
"../../../node_modules/zone.js/dist/zone.js.d.ts"
|
||||
]
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point for all public APIs of the compiler/esm5 package.
|
||||
*/
|
||||
|
||||
export * from '../index';
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"extends": "../tsconfig-build",
|
||||
|
||||
"compilerOptions": {
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
"index.ts",
|
||||
"../../../node_modules/zone.js/dist/zone.js.d.ts"
|
||||
]
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/compiler.umd.js",
|
||||
"module": "./@angular/compiler.es5.js",
|
||||
"es2015": "./@angular/compiler.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./typings/compiler.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"typings": "../typings/testing/index.d.ts",
|
||||
"typings": "../typings/testing.d.ts",
|
||||
"main": "../bundles/compiler-testing.umd.js",
|
||||
"module": "../@angular/compiler/testing.es5.js",
|
||||
"es2015": "../@angular/compiler/testing.js"
|
||||
|
@ -1,15 +0,0 @@
|
||||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point for all public APIs of the core/esm5 package.
|
||||
*/
|
||||
|
||||
export * from './src/core';
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"extends": "../tsconfig-build",
|
||||
"compilerOptions": {
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
"index.ts",
|
||||
"../../../node_modules/zone.js/dist/zone.js.d.ts",
|
||||
"../../system.d.ts"
|
||||
]
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/core.umd.js",
|
||||
"module": "./@angular/core.es5.js",
|
||||
"es2015": "./@angular/core.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./typings/core.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"typings": "../typings/testing/index.d.ts",
|
||||
"typings": "../typings/testing.d.ts",
|
||||
"main": "../bundles/core-testing.umd.js",
|
||||
"module": "../@angular/core/testing.es5.js",
|
||||
"es2015": "../@angular/core/testing.js"
|
||||
|
@ -17,8 +17,7 @@
|
||||
"lib": ["es2015", "dom"],
|
||||
"skipLibCheck": true,
|
||||
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
|
||||
"types": [],
|
||||
"preserveConstEnums": true
|
||||
"types": []
|
||||
},
|
||||
"files": [
|
||||
"public_api.ts",
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/forms.umd.js",
|
||||
"module": "./@angular/forms.es5.js",
|
||||
"es2015": "./@angular/forms.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./typings/forms.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/http.umd.js",
|
||||
"module": "./@angular/http.es5.js",
|
||||
"es2015": "./@angular/http.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./typings/http.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
@ -1 +1,6 @@
|
||||
{"typings": "../typings/testing/index.d.ts", "main": "../bundles/http-testing.umd.js", "module": "../@angular/http/testing.es5.js", "es2015": "../@angular/http/testing.js"}
|
||||
{
|
||||
"typings": "../typings/testing.d.ts",
|
||||
"main": "../bundles/http-testing.umd.js",
|
||||
"module": "../@angular/http/testing.es5.js",
|
||||
"es2015": "../@angular/http/testing.js"
|
||||
}
|
||||
|
@ -2,9 +2,9 @@
|
||||
"name": "@angular/language-service",
|
||||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - language services",
|
||||
"main": "bundles/language-service.umd.js",
|
||||
"module": "index.js",
|
||||
"typings": "index.d.ts",
|
||||
"main": "./bundles/language-service.umd.js",
|
||||
"module": "./@angular/language-service.es5.js",
|
||||
"typings": "./typings/language-service.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/platform-browser-dynamic.umd.js",
|
||||
"module": "./@angular/platform-browser-dynamic.es5.js",
|
||||
"es2015": "./@angular/platform-browser-dynamic.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./typings/platform-browser-dynamic.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"typings": "../typings/testing/index.d.ts",
|
||||
"typings": "../typings/testing.d.ts",
|
||||
"main": "../bundles/platform-browser-dynamic-testing.umd.js",
|
||||
"module": "../@angular/platform-browser-dynamic/testing.es5.js",
|
||||
"es2015": "../@angular/platform-browser-dynamic/testing.js"
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"typings": "../typings/animations/animations.d.ts",
|
||||
"typings": "../typings/animations.d.ts",
|
||||
"main": "../bundles/platform-browser-animations.umd.js",
|
||||
"module": "../@angular/platform-browser/animations.es5.js",
|
||||
"es2015": "../@angular/platform-browser/animations.js"
|
||||
|
@ -1 +1,6 @@
|
||||
{"typings": "../../typings/animations/testing/index.d.ts", "main": "../../bundles/platform-browser-animations-testing.umd.js", "module": "../../@angular/platform-browser/animations/testing.es5.js", "es2015": "../../@angular/platform-browser/animations/testing.js"}
|
||||
{
|
||||
"typings": "../../typings/animations/testing.d.ts",
|
||||
"main": "../../bundles/platform-browser-animations-testing.umd.js",
|
||||
"module": "../../@angular/platform-browser/animations/testing.es5.js",
|
||||
"es2015": "../../@angular/platform-browser/animations/testing.js"
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/platform-browser.umd.js",
|
||||
"module": "./@angular/platform-browser.es5.js",
|
||||
"es2015": "./@angular/platform-browser.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./typings/platform-browser.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"typings": "../typings/testing/index.d.ts",
|
||||
"typings": "../typings/testing.d.ts",
|
||||
"main": "../bundles/platform-browser-testing.umd.js",
|
||||
"module": "../@angular/platform-browser/testing.es5.js",
|
||||
"es2015": "../@angular/platform-browser/testing.js"
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/platform-server.umd.js",
|
||||
"module": "./@angular/platform-server.es5.js",
|
||||
"es2015": "./@angular/platform-server.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./typings/platform-server.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
6
packages/platform-server/testing/package.json
Normal file
6
packages/platform-server/testing/package.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"typings": "../typings/testing.d.ts",
|
||||
"main": "../bundles/platform-server-testing.umd.js",
|
||||
"module": "../@angular/platform-server/testing.es5.js",
|
||||
"es2015": "../@angular/platform-server/testing.js"
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/platform-webworker-dynamic.umd.js",
|
||||
"module": "./@angular/platform-webworker-dynamic.es5.js",
|
||||
"es2015": "./@angular/platform-webworker-dynamic.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./typings/platform-webworker-dynamic.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/platform-webworker.umd.js",
|
||||
"module": "./@angular/platform-webworker.es5.js",
|
||||
"es2015": "./@angular/platform-webworker.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./typings/platform-webworker.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/router.umd.js",
|
||||
"module": "./@angular/router.es5.js",
|
||||
"es2015": "./@angular/router.js",
|
||||
"typings": "./typings/index.d.ts",
|
||||
"typings": "./typings/router.d.ts",
|
||||
"keywords": [
|
||||
"angular",
|
||||
"router"
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"typings": "../typings/testing/index.d.ts",
|
||||
"typings": "../typings/testing.d.ts",
|
||||
"main": "../bundles/router-testing.umd.js",
|
||||
"module": "../@angular/router/testing.es5.js",
|
||||
"es2015": "../@angular/router/testing.js"
|
||||
|
@ -1,18 +0,0 @@
|
||||
{
|
||||
"extends": "../tsconfig",
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"@angular/core": ["../../../dist/packages/core"],
|
||||
"@angular/common": ["../../../dist/packages/common"],
|
||||
"@angular/common/testing": ["../../../dist/packages/common/testing"],
|
||||
"@angular/platform-browser": ["../../../dist/packages/platform-browser"],
|
||||
"@angular/router": ["../../../dist/packages/router"]
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"index.ts"
|
||||
],
|
||||
"angularCompilerOptions": {
|
||||
"strictMetadataEmit": true
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"typings": "../typings/upgrade/upgrade.d.ts",
|
||||
"typings": "../typings/upgrade.d.ts",
|
||||
"main": "../bundles/router-upgrade.umd.js",
|
||||
"module": "../@angular/router/upgrade.es5.js",
|
||||
"es2015": "../@angular/router/upgrade.js"
|
||||
|
@ -26,6 +26,13 @@
|
||||
"types": ["angularjs"]
|
||||
},
|
||||
"exclude": [
|
||||
"angular1_router",
|
||||
"benchmarks/e2e_test/old",
|
||||
"benchmarks/src/old",
|
||||
"benchmarks/src/**/index_aot.ts",
|
||||
"benchmarks_external",
|
||||
"payload_tests",
|
||||
"rollup-test",
|
||||
"compiler-cli/integrationtest"
|
||||
]
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "./bundles/upgrade.umd.js",
|
||||
"module": "./@angular/upgrade.es5.js",
|
||||
"es2015": "./@angular/upgrade.js",
|
||||
"typings": "./typings/upgrade/index.d.ts",
|
||||
"typings": "./typings/upgrade.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"typings": "../typings/static/index.d.ts",
|
||||
"typings": "../typings/static.d.ts",
|
||||
"main": "../bundles/upgrade-static.umd.js",
|
||||
"module": "../@angular/upgrade/static.es5.js",
|
||||
"es2015": "../@angular/upgrade/static.js"
|
||||
|
Reference in New Issue
Block a user