build: roll up to named .js files rather than 'index.js' (#19190)
PR Close #19190
This commit is contained in:
parent
6665d76fbb
commit
15e8d50313
57
build.sh
57
build.sh
|
@ -113,28 +113,34 @@ containsElement () {
|
|||
# Arguments:
|
||||
# param1 - Base source folder
|
||||
# param2 - Destination directory
|
||||
# param3 - Package name
|
||||
# param4 - Is sub directory
|
||||
# Returns:
|
||||
# None
|
||||
#######################################
|
||||
rollupIndex() {
|
||||
# Iterate over the files in this directory, rolling up each into ${2} directory
|
||||
local regex=".+/(.+)/index.js"
|
||||
in_file="${1}/index.js"
|
||||
out_file="${2}/index.js"
|
||||
in_file="${1}/${3}.js"
|
||||
if [ ${4:-} ]; then
|
||||
out_file="$(dropLast ${2})/${3}.js"
|
||||
else
|
||||
out_file="${2}/${3}.js"
|
||||
fi
|
||||
|
||||
BANNER_TEXT=`cat ${LICENSE_BANNER}`
|
||||
|
||||
if [[ -f ${in_file} ]]; then
|
||||
echo "=========== $ROLLUP -i ${in_file} -o ${out_file} -c ${ROOT_DIR}/rollup.config.js --sourcemap"
|
||||
echo "=========== $ROLLUP -i ${in_file} -o ${out_file} --sourcemap -f es --banner BANNER_TEXT >/dev/null 2>&1"
|
||||
$ROLLUP -i ${in_file} -o ${out_file} --sourcemap -f es --banner "$BANNER_TEXT" >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
# Recurse for sub directories
|
||||
for DIR in ${1}/* ; do
|
||||
local sub_package=$(basename "${DIR}")
|
||||
isIgnoredDirectory ${DIR} && continue
|
||||
# NOTE: We need to re-run this regex and use the new match as Bash doesn't have closures
|
||||
if [[ "${DIR}/index.js" =~ $regex ]]; then
|
||||
rollupIndex ${DIR} ${2}/${BASH_REMATCH[1]}
|
||||
local regex=".+/(.+)/${sub_package}.js"
|
||||
if [[ "${DIR}/${sub_package}.js" =~ $regex ]]; then
|
||||
|
||||
rollupIndex ${DIR} ${2}/${BASH_REMATCH[1]} ${sub_package} true
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
@ -218,8 +224,8 @@ compilePackage() {
|
|||
local package_name=$(basename "${2}")
|
||||
$NGC -p ${1}/tsconfig-build.json
|
||||
echo "====== Create ${1}/../${package_name}.d.ts re-export file for tsickle"
|
||||
echo "$(cat ${LICENSE_BANNER}) ${N} export * from './${package_name}/index'" > ${2}/../${package_name}.d.ts
|
||||
echo "{\"__symbolic\":\"module\",\"version\":3,\"metadata\":{},\"exports\":[{\"from\":\"./${package_name}/index\"}],\"flatModuleIndexRedirect\":true}" > ${2}/../${package_name}.metadata.json
|
||||
echo "$(cat ${LICENSE_BANNER}) ${N} export * from './${package_name}/${package_name}'" > ${2}/../${package_name}.d.ts
|
||||
echo "{\"__symbolic\":\"module\",\"version\":3,\"metadata\":{},\"exports\":[{\"from\":\"./${package_name}/${package_name}\"}],\"flatModuleIndexRedirect\":true}" > ${2}/../${package_name}.metadata.json
|
||||
fi
|
||||
|
||||
for DIR in ${1}/* ; do
|
||||
|
@ -265,10 +271,10 @@ compilePackageES5() {
|
|||
addNgcPackageJson() {
|
||||
for DIR in ${1}/* ; do
|
||||
[ -d "${DIR}" ] || continue
|
||||
# Confirm there is an index.d.ts and index.metadata.json file. If so, create
|
||||
# Confirm there is an ${PACKAGE}.d.ts and ${PACKAGE}.metadata.json file. If so, create
|
||||
# the package.json and recurse.
|
||||
if [[ -f ${DIR}/index.d.ts && -f ${DIR}/index.metadata.json ]]; then
|
||||
echo '{"typings": "index.d.ts"}' > ${DIR}/package.json
|
||||
if [[ -f ${DIR}/${PACKAGE}.d.ts && -f ${DIR}/${PACKAGE}.metadata.json ]]; then
|
||||
echo '{"typings": "${PACKAGE}.d.ts"}' > ${DIR}/package.json
|
||||
addNgcPackageJson ${DIR}
|
||||
fi
|
||||
done
|
||||
|
@ -284,6 +290,25 @@ updateVersionReferences() {
|
|||
)
|
||||
}
|
||||
|
||||
#######################################
|
||||
# Drops the last entry of a path. Similar to normalizing a path such as
|
||||
# /parent/child/.. to /parent.
|
||||
# Arguments:
|
||||
# param1 - Directory on which to drop the last item
|
||||
# Returns:
|
||||
# None
|
||||
#######################################
|
||||
|
||||
dropLast() {
|
||||
local last_item=$(basename ${1})
|
||||
local regex=local regex="(.+)/${last_item}"
|
||||
if [[ "${1}" =~ $regex ]]; then
|
||||
echo "${BASH_REMATCH[1]}"
|
||||
else
|
||||
echo "${1}"
|
||||
fi
|
||||
}
|
||||
|
||||
VERSION="${VERSION_PREFIX}${VERSION_SUFFIX}"
|
||||
echo "====== BUILDING: Version ${VERSION}"
|
||||
|
||||
|
@ -394,7 +419,7 @@ do
|
|||
OUT_DIR=${ROOT_OUT_DIR}/${PACKAGE}
|
||||
OUT_DIR_ESM5=${ROOT_OUT_DIR}/${PACKAGE}/esm5
|
||||
NPM_DIR=${PWD}/dist/packages-dist/${PACKAGE}
|
||||
ESM15_DIR=${NPM_DIR}/esm15
|
||||
ESM2015_DIR=${NPM_DIR}/esm2015
|
||||
ESM5_DIR=${NPM_DIR}/esm5
|
||||
BUNDLES_DIR=${NPM_DIR}/bundles
|
||||
|
||||
|
@ -418,11 +443,11 @@ do
|
|||
(
|
||||
cd ${SRC_DIR}
|
||||
echo "====== Rollup ${PACKAGE}"
|
||||
rollupIndex ${OUT_DIR} ${ESM15_DIR} ${ROOT_DIR}
|
||||
rollupIndex ${OUT_DIR} ${ESM2015_DIR} ${PACKAGE}
|
||||
|
||||
echo "====== Produce ESM5 version"
|
||||
compilePackageES5 ${SRC_DIR} ${OUT_DIR_ESM5} ${PACKAGE}
|
||||
rollupIndex ${OUT_DIR_ESM5} ${ESM5_DIR} ${ROOT_DIR}
|
||||
rollupIndex ${OUT_DIR_ESM5} ${ESM5_DIR} ${PACKAGE}
|
||||
|
||||
echo "====== Run rollup conversions on ${PACKAGE}"
|
||||
runRollup ${SRC_DIR}
|
||||
|
|
|
@ -15,14 +15,14 @@ node_modules/zone.js/dist/zone_externs.js
|
|||
--js node_modules/rxjs/**.js
|
||||
|
||||
--js node_modules/@angular/core/package.json
|
||||
--js node_modules/@angular/core/esm15/index.js
|
||||
--js node_modules/@angular/core/esm2015/core.js
|
||||
--js node_modules/@angular/core/src/testability/testability.externs.js
|
||||
|
||||
--js node_modules/@angular/common/package.json
|
||||
--js node_modules/@angular/common/esm15/index.js
|
||||
--js node_modules/@angular/common/esm2015/common.js
|
||||
|
||||
--js node_modules/@angular/platform-browser/package.json
|
||||
--js node_modules/@angular/platform-browser/esm15/index.js
|
||||
--js node_modules/@angular/platform-browser/esm2015/platform-browser.js
|
||||
|
||||
--module_resolution=node
|
||||
--package_json_entry_names es2015
|
||||
|
|
|
@ -18,14 +18,14 @@ node_modules/zone.js/dist/zone_externs.js
|
|||
--package_json_entry_names es2015
|
||||
|
||||
--js node_modules/@angular/core/package.json
|
||||
--js node_modules/@angular/core/esm15/index.js
|
||||
--js node_modules/@angular/core/esm2015/core.js
|
||||
--js node_modules/@angular/core/src/testability/testability.externs.js
|
||||
|
||||
--js node_modules/@angular/common/package.json
|
||||
--js node_modules/@angular/common/esm15/index.js
|
||||
--js node_modules/@angular/common/esm2015/common.js
|
||||
|
||||
--js node_modules/@angular/platform-browser/package.json
|
||||
--js node_modules/@angular/platform-browser/esm15/index.js
|
||||
--js node_modules/@angular/platform-browser/esm2015/platform-browser.js
|
||||
|
||||
--js built/**.js
|
||||
--entry_point=built/src/main
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/animations/browser",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./browser.d.ts",
|
||||
"main": "../bundles/animations-browser.umd.js",
|
||||
"module": "../esm5/browser/index.js",
|
||||
"es2015": "../esm15/browser/index.js"
|
||||
"module": "../esm5/browser.js",
|
||||
"es2015": "../esm2015/browser.js"
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/animations/esm5/browser/index.js',
|
||||
entry: '../../../dist/packages-dist/animations/esm5/browser.js',
|
||||
dest: '../../../dist/packages-dist/animations/bundles/animations-browser.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/animations/browser/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../../bundles/platform-browser-animations-testing.umd.js",
|
||||
"module": "../../esm5/animations/testing/index.js",
|
||||
"es2015": "../../esm15/animations/testing/index.js"
|
||||
"module": "../../esm5/animations/testing.js",
|
||||
"es2015": "../../esm2015/animations/testing.js"
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../../dist/packages-dist/animations/esm5/browser/testing/index.js',
|
||||
entry: '../../../../dist/packages-dist/animations/esm5/browser/testing.js',
|
||||
dest: '../../../../dist/packages-dist/animations/bundles/animations-browser-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/animations/browser/testing"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "browser.js",
|
||||
"flatModuleId": "@angular/animations/browser"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - animations integration with web-animationss",
|
||||
"main": "./bundles/animations.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/animations.js",
|
||||
"es2015": "./esm2015/animations.js",
|
||||
"typings": "./animations.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -17,7 +17,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/animations/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/animations/esm5/animations.js',
|
||||
dest: '../../dist/packages-dist/animations/bundles/animations.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "animations.js",
|
||||
"flatModuleId": "@angular/animations"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/common/http",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./http.d.ts",
|
||||
"main": "../bundles/common-http.umd.js",
|
||||
"module": "../esm5/http/index.js",
|
||||
"es2015": "../esm15/http/index.js"
|
||||
"module": "../esm5/http.js",
|
||||
"es2015": "../esm2015/http.js"
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/common/esm5/http/index.js',
|
||||
entry: '../../../dist/packages-dist/common/esm5/http.js',
|
||||
dest: '../../../dist/packages-dist/common/bundles/common-http.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/common/http/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../../bundles/common-http-testing.umd.js",
|
||||
"module": "../../esm5/http/testing/index.js",
|
||||
"es2015": "../../esm15/http/testing/index.js"
|
||||
"module": "../../esm5/http/testing.js",
|
||||
"es2015": "../../esm2015/http/testing.js"
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../../dist/packages-dist/common/esm5/http/testing/index.js',
|
||||
entry: '../../../../dist/packages-dist/common/esm5/http/testing.js',
|
||||
dest: '../../../../dist/packages-dist/common/bundles/common-http-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/common/http/testing"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "http.js",
|
||||
"flatModuleId": "@angular/common/http"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - commonly needed directives and services",
|
||||
"main": "./bundles/common.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/common.js",
|
||||
"es2015": "./esm2015/common.js",
|
||||
"typings": "./common.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -16,7 +16,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/common/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/common/esm5/common.js',
|
||||
dest: '../../dist/packages-dist/common/bundles/common.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/common/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../bundles/common-testing.umd.js",
|
||||
"module": "../esm5/testing/index.js",
|
||||
"es2015": "../esm15/testing/index.js"
|
||||
"module": "../esm5/testing.js",
|
||||
"es2015": "../esm2015/testing.js"
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/common/esm5/testing/index.js',
|
||||
entry: '../../../dist/packages-dist/common/esm5/testing.js',
|
||||
dest: '../../../dist/packages-dist/common/bundles/common-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/common/testing"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "common.js",
|
||||
"flatModuleId": "@angular/common"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ describe('template codegen output', () => {
|
|||
});
|
||||
|
||||
it('should write .ngfactory.js for .d.ts inputs', () => {
|
||||
const factoryOutput = path.join('node_modules', '@angular', 'common', 'index.ngfactory.js');
|
||||
const factoryOutput = path.join('node_modules', '@angular', 'common', 'common.ngfactory.js');
|
||||
expect(fs.existsSync(factoryOutput)).toBeTruthy();
|
||||
});
|
||||
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* @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
|
||||
*/
|
||||
|
||||
// This file is not used to build this module. It is only used during editing
|
||||
// by the TypeScript language service and during build for verification. `ngc`
|
||||
// replaces this file with production index.ts when it rewrites private symbol
|
||||
// names.
|
||||
|
||||
export * from './public_api';
|
|
@ -11,4 +11,4 @@
|
|||
// replaces this file with production index.ts when it rewrites private symbol
|
||||
// names.
|
||||
|
||||
export * from './public_api';
|
||||
export * from './compiler';
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - the compiler library",
|
||||
"main": "./bundles/compiler.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/compiler.js",
|
||||
"es2015": "./esm2015/compiler.js",
|
||||
"typings": "./compiler.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -16,7 +16,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/compiler/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/compiler/esm5/compiler.js',
|
||||
dest: '../../dist/packages-dist/compiler/bundles/compiler.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/compiler/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../bundles/compiler-testing.umd.js",
|
||||
"module": "../esm5/testing/index.js",
|
||||
"es2015": "../esm15/testing/index.js"
|
||||
"module": "../esm5/testing.js",
|
||||
"es2015": "../esm2015/testing.js"
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/compiler/esm5/testing/index.js',
|
||||
entry: '../../../dist/packages-dist/compiler/esm5/testing.js',
|
||||
dest: '../../../dist/packages-dist/compiler/bundles/compiler-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/compiler/testing"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - the core framework",
|
||||
"main": "./bundles/core.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/core.js",
|
||||
"es2015": "./esm2015/core.js",
|
||||
"typings": "./core.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -19,7 +19,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/core/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/core/esm5/core.js',
|
||||
dest: '../../dist/packages-dist/core/bundles/core.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/core/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../bundles/core-testing.umd.js",
|
||||
"module": "../esm5/testing/index.js",
|
||||
"es2015": "../esm15/testing/index.js"
|
||||
"module": "../esm5/testing.js",
|
||||
"es2015": "../esm2015/testing.js"
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/core/esm5/testing/index.js',
|
||||
entry: '../../../dist/packages-dist/core/esm5/testing.js',
|
||||
dest: '../../../dist/packages-dist/core/bundles/core-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
"angularCompilerOptions": {
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/core/testing"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "core.js",
|
||||
"flatModuleId": "@angular/core"
|
||||
}
|
||||
}
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - directives and services for creating forms",
|
||||
"main": "./bundles/forms.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/forms.js",
|
||||
"es2015": "./esm2015/forms.js",
|
||||
"typings": "./forms.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -22,7 +22,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/forms/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/forms/esm5/forms.js',
|
||||
dest: '../../dist/packages-dist/forms/bundles/forms.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "forms.js",
|
||||
"flatModuleId": "@angular/forms"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - the http service",
|
||||
"main": "./bundles/http.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/http.js",
|
||||
"es2015": "./esm2015/http.js",
|
||||
"typings": "./http.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -18,7 +18,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/http/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/http/esm5/http.js',
|
||||
dest: '../../dist/packages-dist/http/bundles/http.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/http/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../bundles/http-testing.umd.js",
|
||||
"module": "../esm5/testing/index.js",
|
||||
"es2015": "../esm15/testing/index.js"
|
||||
"module": "../esm5/testing.js",
|
||||
"es2015": "../esm2015/testing.js"
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/http/esm5/testing/index.js',
|
||||
entry: '../../../dist/packages-dist/http/esm5/testing.js',
|
||||
dest: '../../../dist/packages-dist/http/bundles/http-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/http/testing"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "http.js",
|
||||
"flatModuleId": "@angular/http"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,13 +6,4 @@
|
|||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point for all public APIs of the language service package.
|
||||
*/
|
||||
export {createLanguageService} from './src/language_service';
|
||||
export * from './src/ts_plugin';
|
||||
export {Completion, Completions, Declaration, Declarations, Definition, Diagnostic, Diagnostics, Hover, HoverTextSection, LanguageService, LanguageServiceHost, Location, Span, TemplateSource, TemplateSources} from './src/types';
|
||||
export {TypeScriptServiceHost, createLanguageServiceFromTypescript} from './src/typescript_host';
|
||||
export {VERSION} from './src/version';
|
||||
export * from './language-service';
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* @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 language service package.
|
||||
*/
|
||||
export {createLanguageService} from './src/language_service';
|
||||
export * from './src/ts_plugin';
|
||||
export {Completion, Completions, Declaration, Declarations, Definition, Diagnostic, Diagnostics, Hover, HoverTextSection, LanguageService, LanguageServiceHost, Location, Span, TemplateSource, TemplateSources} from './src/types';
|
||||
export {TypeScriptServiceHost, createLanguageServiceFromTypescript} from './src/typescript_host';
|
||||
export {VERSION} from './src/version';
|
|
@ -3,8 +3,8 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - language services",
|
||||
"main": "./bundles/language-service.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/language-service.js",
|
||||
"typings": "./language-service.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
|
|
@ -40,9 +40,7 @@ function resolve(id, from) {
|
|||
var esm_suffix = esm_suffixes[packageName] || '';
|
||||
var loc = locations[packageName] || location;
|
||||
var r = loc !== location && (loc + esm_suffix + packageName + (match[3] || '/index') + '.js') ||
|
||||
loc + packageName + '/esm5/' +
|
||||
'index.js';
|
||||
// console.log('** ANGULAR MAPPED **: ', r);
|
||||
loc + packageName + '/esm5/' + packageName + '.js';
|
||||
return r;
|
||||
}
|
||||
if (id && id.startsWith('rxjs/')) {
|
||||
|
@ -71,7 +69,7 @@ module.exports = function(provided) {
|
|||
`;
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/language-service/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/language-service/esm5/language-service.js',
|
||||
dest: '../../dist/packages-dist/language-service/bundles/language-service.umd.js',
|
||||
format: 'amd',
|
||||
moduleName: 'ng.language_service',
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - library for using Angular in a web browser with JIT compilation",
|
||||
"main": "./bundles/platform-browser-dynamic.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/platform-browser-dynamic.js",
|
||||
"es2015": "./esm2015/platform-browser-dynamic.js",
|
||||
"typings": "./platform-browser-dynamic.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -17,7 +17,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/platform-browser-dynamic/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/platform-browser-dynamic/esm5/platform-browser-dynamic.js',
|
||||
dest: '../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/platform-browser-dynamic/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../bundles/platform-browser-dynamic-testing.umd.js",
|
||||
"module": "../esm5/testing/index.js",
|
||||
"es2015": "../esm15/testing/index.js"
|
||||
"module": "../esm5/testing.js",
|
||||
"es2015": "../esm2015/testing.js"
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/platform-browser-dynamic/esm5/testing/index.js',
|
||||
entry: '../../../dist/packages-dist/platform-browser-dynamic/esm5/testing.js',
|
||||
dest:
|
||||
'../../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js',
|
||||
format: 'umd',
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/platform-browser-dynamic/testing"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "platform-browser-dynamic.js",
|
||||
"flatModuleId": "@angular/platform-browser-dynamic"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/platform-browser/animations",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./animations.d.ts",
|
||||
"main": "../bundles/platform-browser-animations.umd.js",
|
||||
"module": "../esm5/animations/index.js",
|
||||
"es2015": "../esm15/animations/index.js"
|
||||
"module": "../esm5/animations.js",
|
||||
"es2015": "../esm2015/animations.js"
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/platform-browser/esm5/animations/index.js',
|
||||
entry: '../../../dist/packages-dist/platform-browser/esm5/animations.js',
|
||||
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-animations.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "animations.js",
|
||||
"flatModuleId": "@angular/platform-browser/animations"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - library for using Angular in a web browser",
|
||||
"main": "./bundles/platform-browser.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/platform-browser.js",
|
||||
"es2015": "./esm2015/platform-browser.js",
|
||||
"typings": "./platform-browser.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -15,7 +15,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/platform-browser/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/platform-browser/esm5/platform-browser.js',
|
||||
dest: '../../dist/packages-dist/platform-browser/bundles/platform-browser.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/platform-browser/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../bundles/platform-browser-testing.umd.js",
|
||||
"module": "../esm5/testing/index.js",
|
||||
"es2015": "../esm15/testing/index.js"
|
||||
"module": "../esm5/testing.js",
|
||||
"es2015": "../esm2015/testing.js"
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/platform-browser/esm5/testing/index.js',
|
||||
entry: '../../../dist/packages-dist/platform-browser/esm5/testing.js',
|
||||
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/platform-browser/testing"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "platform-browser.js",
|
||||
"flatModuleId": "@angular/platform-browser"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - library for using Angular in Node.js",
|
||||
"main": "./bundles/platform-server.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/platform-server.js",
|
||||
"es2015": "./esm2015/platform-server.js",
|
||||
"typings": "./platform-server.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
|
|
|
@ -22,7 +22,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/platform-server/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/platform-server/esm5/platform-server.js',
|
||||
dest: '../../dist/packages-dist/platform-server/bundles/platform-server.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/platform-server/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../bundles/platform-server-testing.umd.js",
|
||||
"module": "../esm5/testing/index.js",
|
||||
"es2015": "../esm15/testing/index.js"
|
||||
"module": "../esm5/testing.js",
|
||||
"es2015": "../esm2015/testing.js"
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/platform-server/esm5/testing/index.js',
|
||||
entry: '../../../dist/packages-dist/platform-server/esm5/testing.js',
|
||||
dest: '../../../dist/packages-dist/platform-server/bundles/platform-server-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/platform-server/testing"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "platform-server.js",
|
||||
"flatModuleId": "@angular/platform-server"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - library for using Angular in a web browser with web workers",
|
||||
"main": "./bundles/platform-webworker-dynamic.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/platform-webworker-dynamic.js",
|
||||
"es2015": "./esm2015/platform-webworker-dynamic.js",
|
||||
"typings": "./platform-webworker-dynamic.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -19,7 +19,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/platform-webworker-dynamic/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/platform-webworker-dynamic/esm5/platform-webworker-dynamic.js',
|
||||
dest:
|
||||
'../../dist/packages-dist/platform-webworker-dynamic/bundles/platform-webworker-dynamic.umd.js',
|
||||
format: 'umd',
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "platform-webworker-dynamic.js",
|
||||
"flatModuleId": "@angular/platform-webworker-dynamic"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - library for using Angular in a web browser with web workers",
|
||||
"main": "./bundles/platform-webworker.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/platform-webworker.js",
|
||||
"es2015": "./esm2015/platform-webworker.js",
|
||||
"typings": "./platform-webworker.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -18,7 +18,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/platform-webworker/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/platform-webworker/esm5/platform-webworker.js',
|
||||
dest: '../../dist/packages-dist/platform-webworker/bundles/platform-webworker.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "platform-webworker.js",
|
||||
"flatModuleId": "@angular/platform-webworker"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - the routing library",
|
||||
"main": "./bundles/router.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/router.js",
|
||||
"es2015": "./esm2015/router.js",
|
||||
"typings": "./router.d.ts",
|
||||
"keywords": [
|
||||
"angular",
|
||||
"router"
|
||||
|
|
|
@ -40,7 +40,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/router/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/router/esm5/router.js',
|
||||
dest: '../../dist/packages-dist/router/bundles/router.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/router/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../bundles/router-testing.umd.js",
|
||||
"module": "../esm5/testing/index.js",
|
||||
"es2015": "../esm15/testing/index.js"
|
||||
"module": "../esm5/testing.js",
|
||||
"es2015": "../esm2015/testing.js"
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/router/esm5/testing/index.js',
|
||||
entry: '../../../dist/packages-dist/router/esm5/testing.js',
|
||||
dest: '../../../dist/packages-dist/router/bundles/router-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/router/testing"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "router.js",
|
||||
"flatModuleId": "@angular/router"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/router/upgrade",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./upgrade.d.ts",
|
||||
"main": "../bundles/router-upgrade.umd.js",
|
||||
"module": "../esm5/upgrade/index.js",
|
||||
"es2015": "../esm15/upgrade/index.js"
|
||||
"module": "../esm5/upgrade.js",
|
||||
"es2015": "../esm2015/upgrade.js"
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/router/esm5/upgrade/index.js',
|
||||
entry: '../../../dist/packages-dist/router/esm5/upgrade.js',
|
||||
dest: '../../../dist/packages-dist/router/bundles/router-upgrade.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "upgrade.js",
|
||||
"flatModuleId": "@angular/router/upgrade"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - the library for easing update from v1 to v2",
|
||||
"main": "./bundles/upgrade.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/upgrade.js",
|
||||
"es2015": "./esm2015/upgrade.js",
|
||||
"typings": "./upgrade.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -23,7 +23,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/upgrade/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/upgrade/esm5/upgrade.js',
|
||||
dest: '../../dist/packages-dist/upgrade/bundles/upgrade.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@angular/upgrade/static",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./static.d.ts",
|
||||
"main": "../bundles/upgrade-static.umd.js",
|
||||
"module": "../esm5/static/index.js",
|
||||
"es2015": "../esm15/static/index.js"
|
||||
"module": "../esm5/static.js",
|
||||
"es2015": "../esm2015/static.js"
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ const globals = {
|
|||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/upgrade/esm5/static/index.js',
|
||||
entry: '../../../dist/packages-dist/upgrade/esm5/static.js',
|
||||
dest: '../../../dist/packages-dist/upgrade/bundles/upgrade-static.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
],
|
||||
|
||||
"angularCompilerOptions": {
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "static.js",
|
||||
"flatModuleId": "@angular/upgrade/static"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "upgrade.js",
|
||||
"flatModuleId": "@angular/upgrade"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,13 +63,3 @@ travisFoldStart "tsc all"
|
|||
node --max-old-space-size=3000 dist/packages-dist/tsc-wrapped/src/main -p packages
|
||||
node --max-old-space-size=3000 dist/packages-dist/tsc-wrapped/src/main -p modules
|
||||
travisFoldEnd "tsc all"
|
||||
|
||||
|
||||
# TODO(i): what are these compilations here for?
|
||||
travisFoldStart "tsc a bunch of useless stuff"
|
||||
node dist/packages-dist/tsc-wrapped/src/main -p packages/core/tsconfig-build.json
|
||||
node dist/packages-dist/tsc-wrapped/src/main -p packages/common/tsconfig-build.json
|
||||
node dist/packages-dist/tsc-wrapped/src/main -p packages/platform-browser/tsconfig-build.json
|
||||
node dist/packages-dist/tsc-wrapped/src/main -p packages/router/tsconfig-build.json
|
||||
node dist/packages-dist/tsc-wrapped/src/main -p packages/forms/tsconfig-build.json
|
||||
travisFoldEnd "tsc a bunch of useless stuff"
|
||||
|
|
|
@ -62,5 +62,5 @@ function logResults(failures) {
|
|||
}
|
||||
|
||||
function getBundlePath(package) {
|
||||
return path.resolve(process.cwd(), 'dist/packages-dist/', package, 'esm5/index.js');
|
||||
return path.resolve(process.cwd(), 'dist/packages-dist/', package, 'esm5/', package + '.js');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue