build: publish tree of files rather than FESMs (#18541)
* Remove now unnecessary portions of build. * Add a compilePackageES5 method to build ES5 from sources * Rework all package.json and rollup config files to new format * Remove "extends" from tsconfig-build.json files and fixup compilation roots PR Close #18541
This commit is contained in:
@@ -26,7 +26,8 @@ PACKAGES=(core
|
||||
benchpress)
|
||||
|
||||
NODE_PACKAGES=(compiler-cli
|
||||
benchpress)
|
||||
benchpress
|
||||
tsc-wrapped)
|
||||
|
||||
BUILD_ALL=true
|
||||
BUNDLE=true
|
||||
@@ -107,76 +108,36 @@ containsElement () {
|
||||
return 1
|
||||
}
|
||||
|
||||
#######################################
|
||||
# Downlevel ES2015 to ESM/ES5
|
||||
# Arguments:
|
||||
# param1 - Source folder
|
||||
# param2 - Naming suffix to apply. Must end in ".ts" (defaults to .es5.ts)
|
||||
# Returns:
|
||||
# None
|
||||
#######################################
|
||||
downlevelES2015() {
|
||||
# Iterate over the files in this directory, converting to .es5.ts
|
||||
regex="(.+).js"
|
||||
for file in ${1}/*.js ; do
|
||||
if [[ ${file} =~ $regex ]]; then
|
||||
ts_file="${BASH_REMATCH[1]}${2:-".es5.ts"}"
|
||||
cp ${file} ${ts_file}
|
||||
|
||||
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
|
||||
done
|
||||
|
||||
# Recurse for sub directories
|
||||
for DIR in ${1}/* ; do
|
||||
isIgnoredDirectory ${DIR} && continue
|
||||
downlevelES2015 ${DIR}
|
||||
done
|
||||
}
|
||||
|
||||
#######################################
|
||||
# Rollup index files recursively, ignoring blacklisted directories
|
||||
# Arguments:
|
||||
# param1 - Base source folder
|
||||
# param2 - Destination directory
|
||||
# param3 - Config file
|
||||
# Returns:
|
||||
# None
|
||||
#######################################
|
||||
rollupIndex() {
|
||||
# Iterate over the files in this directory, rolling up each into ${2} directory
|
||||
local regex=".+/(.+)/index.js"
|
||||
if [[ "${1}/index.js" =~ $regex ]]; then
|
||||
in_file="${1}/index.js"
|
||||
out_file="${2}/${BASH_REMATCH[1]}.js"
|
||||
in_file="${1}/index.js"
|
||||
out_file="${2}/index.js"
|
||||
|
||||
echo "====== $ROLLUP -i ${in_file} -o ${out_file}"
|
||||
BANNER_TEXT=`cat ${LICENSE_BANNER}`
|
||||
|
||||
if [[ -f "${3}" ]]; then
|
||||
$ROLLUP -i ${in_file} -o ${out_file} -c ${3} --sourcemap
|
||||
else
|
||||
$ROLLUP -i ${in_file} -o ${out_file} --sourcemap
|
||||
fi
|
||||
cat ${LICENSE_BANNER} > ${out_file}.tmp
|
||||
cat ${out_file} >> ${out_file}.tmp
|
||||
mv ${out_file}.tmp ${out_file}
|
||||
|
||||
mapSources "${out_file}"
|
||||
|
||||
# Recurse for sub directories
|
||||
for DIR in ${1}/* ; do
|
||||
isIgnoredDirectory ${DIR} && continue
|
||||
# NOTE: We need to re-run this regex and use the new match as Bash doesn't have closures
|
||||
if [[ "${1}/index.js" =~ $regex ]]; then
|
||||
rollupIndex ${DIR} ${2}/${BASH_REMATCH[1]} "$(dirname $3)/${BASH_REMATCH[1]}/rollup.config.js"
|
||||
fi
|
||||
done
|
||||
if [[ -f ${in_file} ]]; then
|
||||
echo "=========== $ROLLUP -i ${in_file} -o ${out_file} -c ${ROOT_DIR}/rollup.config.js --sourcemap"
|
||||
$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
|
||||
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]}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
#######################################
|
||||
# Recursively runs rollup on any entry point that has a "rollup.config.js" file
|
||||
@@ -186,17 +147,11 @@ rollupIndex() {
|
||||
# None
|
||||
#######################################
|
||||
runRollup() {
|
||||
local regex="dest: ['\"](.+)['\"],*"
|
||||
if [[ -f "${1}/rollup.config.js" ]]; then
|
||||
cd ${1}
|
||||
|
||||
echo "====== $ROLLUP -c ${1}/rollup.config.js"
|
||||
$ROLLUP -c rollup.config.js --sourcemap
|
||||
|
||||
local dest_line=$(cat "${1}/rollup.config.js" | grep 'dest:')
|
||||
if [[ ${dest_line} =~ $regex ]]; then
|
||||
mapSources "${BASH_REMATCH[1]}"
|
||||
fi
|
||||
$ROLLUP -c rollup.config.js --sourcemap >/dev/null 2>&1
|
||||
|
||||
# Recurse for sub directories
|
||||
for DIR in ${1}/* ; do
|
||||
@@ -241,7 +196,6 @@ minify() {
|
||||
if [[ "${base_file}" =~ $regex && "${base_file##*.}" != "map" ]]; then
|
||||
local out_file=$(dirname "${file}")/${BASH_REMATCH[1]}.min.js
|
||||
$UGLIFYJS -c --screw-ie8 --comments -o ${out_file} --source-map ${out_file}.map --source-map-include-sources ${file}
|
||||
mapSources "${out_file}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
@@ -252,19 +206,18 @@ minify() {
|
||||
# param1 - Source directory
|
||||
# param2 - Out dir
|
||||
# param3 - Package Name
|
||||
# param4 - Is child (are we recursing?)
|
||||
# Returns:
|
||||
# None
|
||||
#######################################
|
||||
compilePackage() {
|
||||
echo "====== [${3}]: COMPILING: ${NGC} -p ${1}/tsconfig-build.json"
|
||||
# For NODE_PACKAGES items (not getting rolled up)
|
||||
if containsElement "${PACKAGE}" "${NODE_PACKAGES[@]}"; then
|
||||
if containsElement "${3}" "${NODE_PACKAGES[@]}"; then
|
||||
$TSC -p ${1}/tsconfig-build.json
|
||||
else
|
||||
local package_name=$(basename "${2}")
|
||||
$NGC -p ${1}/tsconfig-build.json
|
||||
echo "====== Create ${1}/../${package_name}.d.ts re-export file for Closure"
|
||||
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
|
||||
fi
|
||||
@@ -274,24 +227,31 @@ compilePackage() {
|
||||
BASE_DIR=$(basename "${DIR}")
|
||||
# Skip over directories that are not nested entry points
|
||||
[[ -e ${DIR}/tsconfig-build.json && "${BASE_DIR}" != "integrationtest" ]] || continue
|
||||
compilePackage ${DIR} ${2}/${BASE_DIR} ${3} true
|
||||
compilePackage ${DIR} ${2}/${BASE_DIR} ${3}
|
||||
done
|
||||
}
|
||||
|
||||
#######################################
|
||||
# Moves typings and metadata files appropriately
|
||||
# Recursively compile package
|
||||
# Arguments:
|
||||
# param1 - Source of typings & metadata files
|
||||
# param2 - Root of destination directory
|
||||
# param3 - Package name (needed to correspond to name of d.ts and metadata.json files)
|
||||
# param1 - Source directory
|
||||
# param2 - Out dir
|
||||
# param3 - Package Name
|
||||
# Returns:
|
||||
# None
|
||||
#######################################
|
||||
moveTypings() {
|
||||
if [[ -f ${1}/index.d.ts && -f ${1}/index.metadata.json ]]; then
|
||||
mv ${1}/index.d.ts ${1}/${2}.d.ts
|
||||
mv ${1}/index.metadata.json ${1}/${2}.metadata.json
|
||||
fi
|
||||
compilePackageES5() {
|
||||
echo "====== [${3}]: COMPILING: ${NGC} -p ${1}/tsconfig-build.json --target es5 -d false --outDir ${2} --importHelpers true --sourceMap"
|
||||
local package_name=$(basename "${2}")
|
||||
$NGC -p ${1}/tsconfig-build.json --target es5 -d false --outDir ${2} --importHelpers true --sourceMap
|
||||
|
||||
for DIR in ${1}/* ; do
|
||||
[ -d "${DIR}" ] || continue
|
||||
BASE_DIR=$(basename "${DIR}")
|
||||
# Skip over directories that are not nested entry points
|
||||
[[ -e ${DIR}/tsconfig-build.json && "${BASE_DIR}" != "integrationtest" ]] || continue
|
||||
compilePackageES5 ${DIR} ${2} ${3}
|
||||
done
|
||||
}
|
||||
|
||||
#######################################
|
||||
@@ -314,19 +274,6 @@ addNgcPackageJson() {
|
||||
done
|
||||
}
|
||||
|
||||
#######################################
|
||||
# This is read by NGC to be able to find the flat module index.
|
||||
# Arguments:
|
||||
# param1 - JavaScript file on which to re-map sources
|
||||
# Returns:
|
||||
# None
|
||||
#######################################
|
||||
mapSources() {
|
||||
if [[ -f "${1}.map" ]]; then
|
||||
$MAP_SOURCES -f "${1}"
|
||||
fi
|
||||
}
|
||||
|
||||
updateVersionReferences() {
|
||||
NPM_DIR="$1"
|
||||
(
|
||||
@@ -343,8 +290,7 @@ echo "====== BUILDING: Version ${VERSION}"
|
||||
N="
|
||||
"
|
||||
TSC=`pwd`/node_modules/.bin/tsc
|
||||
NGC="node --max-old-space-size=3000 dist/packages-dist/tsc-wrapped/src/main"
|
||||
MAP_SOURCES="node `pwd`/scripts/build/map_sources.js "
|
||||
NGC="node --max-old-space-size=3000 `pwd`/dist/packages-dist/tsc-wrapped/src/main"
|
||||
UGLIFYJS=`pwd`/node_modules/.bin/uglifyjs
|
||||
TSCONFIG=./tools/tsconfig.json
|
||||
ROLLUP=`pwd`/node_modules/.bin/rollup
|
||||
@@ -446,8 +392,10 @@ do
|
||||
SRC_DIR=${ROOT_DIR}/${PACKAGE}
|
||||
ROOT_OUT_DIR=${PWD}/dist/packages
|
||||
OUT_DIR=${ROOT_OUT_DIR}/${PACKAGE}
|
||||
OUT_DIR_ESM5=${ROOT_OUT_DIR}/${PACKAGE}/esm5
|
||||
NPM_DIR=${PWD}/dist/packages-dist/${PACKAGE}
|
||||
MODULES_DIR=${NPM_DIR}/@angular
|
||||
ESM15_DIR=${NPM_DIR}/esm15
|
||||
ESM5_DIR=${NPM_DIR}/esm5
|
||||
BUNDLES_DIR=${NPM_DIR}/bundles
|
||||
|
||||
LICENSE_BANNER=${ROOT_DIR}/license-banner.txt
|
||||
@@ -466,15 +414,15 @@ do
|
||||
|
||||
echo "====== Copy ${PACKAGE} typings"
|
||||
rsync -a --exclude=*.js --exclude=*.js.map ${OUT_DIR}/ ${NPM_DIR}
|
||||
moveTypings ${NPM_DIR} ${PACKAGE}
|
||||
|
||||
(
|
||||
cd ${SRC_DIR}
|
||||
echo "====== Rollup ${PACKAGE}"
|
||||
rollupIndex ${OUT_DIR} ${MODULES_DIR} ${ROOT_DIR}
|
||||
rollupIndex ${OUT_DIR} ${ESM15_DIR} ${ROOT_DIR}
|
||||
|
||||
echo "====== Downleveling ES2015 to ESM/ES5"
|
||||
downlevelES2015 ${MODULES_DIR}
|
||||
echo "====== Produce ESM5 version"
|
||||
compilePackageES5 ${SRC_DIR} ${OUT_DIR_ESM5} ${PACKAGE}
|
||||
rollupIndex ${OUT_DIR_ESM5} ${ESM5_DIR} ${ROOT_DIR}
|
||||
|
||||
echo "====== Run rollup conversions on ${PACKAGE}"
|
||||
runRollup ${SRC_DIR}
|
||||
|
||||
@@ -13,18 +13,20 @@
|
||||
node_modules/zone.js/dist/zone_externs.js
|
||||
|
||||
--js node_modules/rxjs/**.js
|
||||
--process_common_js_modules
|
||||
|
||||
--js node_modules/@angular/core/package.json
|
||||
--js node_modules/@angular/core/esm15/index.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/platform-browser/package.json
|
||||
--js node_modules/@angular/platform-browser/esm15/index.js
|
||||
|
||||
--module_resolution=node
|
||||
|
||||
node_modules/@angular/core/@angular/core.js
|
||||
--js_module_root=node_modules/@angular/core
|
||||
node_modules/@angular/core/src/testability/testability.externs.js
|
||||
|
||||
node_modules/@angular/common/@angular/common.js
|
||||
--js_module_root=node_modules/@angular/common
|
||||
|
||||
node_modules/@angular/platform-browser/@angular/platform-browser.js
|
||||
--js_module_root=node_modules/@angular/platform-browser
|
||||
--package_json_entry_names es2015
|
||||
--process_common_js_modules
|
||||
|
||||
--js built/**.js
|
||||
--entry_point=built/src/main
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"@angular/platform-browser": "file:../../dist/packages-dist/platform-browser",
|
||||
"@angular/platform-server": "file:../../dist/packages-dist/platform-server",
|
||||
"@angular/tsc-wrapped": "file:../../dist/packages-dist/tsc-wrapped",
|
||||
"google-closure-compiler": "20170409.0.0",
|
||||
"google-closure-compiler": "git+https://github.com/alexeagle/closure-compiler.git#packagejson.dist",
|
||||
"rxjs": "5.3.1",
|
||||
"typescript": "~2.3.1",
|
||||
"zone.js": "0.8.6"
|
||||
@@ -29,4 +29,4 @@
|
||||
"preprotractor": "tsc -p e2e",
|
||||
"protractor": "protractor e2e/protractor.config.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,16 +15,17 @@ node_modules/zone.js/dist/zone_externs.js
|
||||
--js node_modules/rxjs/**.js
|
||||
--process_common_js_modules
|
||||
--module_resolution=node
|
||||
--package_json_entry_names es2015
|
||||
|
||||
node_modules/@angular/core/@angular/core.js
|
||||
--js_module_root=node_modules/@angular/core
|
||||
node_modules/@angular/core/src/testability/testability.externs.js
|
||||
--js node_modules/@angular/core/package.json
|
||||
--js node_modules/@angular/core/esm15/index.js
|
||||
--js node_modules/@angular/core/src/testability/testability.externs.js
|
||||
|
||||
node_modules/@angular/common/@angular/common.js
|
||||
--js_module_root=node_modules/@angular/common
|
||||
--js node_modules/@angular/common/package.json
|
||||
--js node_modules/@angular/common/esm15/index.js
|
||||
|
||||
node_modules/@angular/platform-browser/@angular/platform-browser.js
|
||||
--js_module_root=node_modules/@angular/platform-browser
|
||||
--js node_modules/@angular/platform-browser/package.json
|
||||
--js node_modules/@angular/platform-browser/esm15/index.js
|
||||
|
||||
--js built/**.js
|
||||
--entry_point=built/src/main
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"@angular/platform-browser": "file:../../dist/packages-dist/platform-browser",
|
||||
"@angular/platform-server": "file:../../dist/packages-dist/platform-server",
|
||||
"@angular/tsc-wrapped": "file:../../dist/packages-dist/tsc-wrapped",
|
||||
"google-closure-compiler": "20170409.0.0",
|
||||
"google-closure-compiler": "git+https://github.com/alexeagle/closure-compiler.git#packagejson.dist",
|
||||
"rxjs": "5.3.1",
|
||||
"typescript": "~2.3.1",
|
||||
"zone.js": "0.8.6"
|
||||
|
||||
+40
-17
@@ -1,20 +1,17 @@
|
||||
{
|
||||
"name": "angular-srcs",
|
||||
"version": "5.0.0-beta.4",
|
||||
"version": "5.0.0-beta.5",
|
||||
"dependencies": {
|
||||
"@bazel/typescript": {
|
||||
"version": "0.0.7",
|
||||
"dependencies": {
|
||||
"@types/node": {
|
||||
"version": "7.0.18"
|
||||
},
|
||||
"tsickle": {
|
||||
"version": "0.23.6"
|
||||
}
|
||||
}
|
||||
},
|
||||
"@google-cloud/common": {
|
||||
"version": "0.13.4",
|
||||
"version": "0.13.5",
|
||||
"dependencies": {
|
||||
"array-uniq": {
|
||||
"version": "1.0.3"
|
||||
@@ -477,6 +474,9 @@
|
||||
"asynckit": {
|
||||
"version": "0.4.0"
|
||||
},
|
||||
"atob": {
|
||||
"version": "2.0.3"
|
||||
},
|
||||
"aws-sign2": {
|
||||
"version": "0.6.0"
|
||||
},
|
||||
@@ -1871,10 +1871,10 @@
|
||||
"version": "4.17.4"
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.27.0"
|
||||
"version": "1.29.0"
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.1.15"
|
||||
"version": "2.1.16"
|
||||
},
|
||||
"minimist": {
|
||||
"version": "0.0.8"
|
||||
@@ -2491,7 +2491,7 @@
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"es5-ext": {
|
||||
"version": "0.10.29"
|
||||
"version": "0.10.30"
|
||||
},
|
||||
"es6-iterator": {
|
||||
"version": "2.0.1"
|
||||
@@ -2531,7 +2531,7 @@
|
||||
"version": "4.2.0"
|
||||
},
|
||||
"estree-walker": {
|
||||
"version": "0.2.1"
|
||||
"version": "0.3.1"
|
||||
},
|
||||
"esutils": {
|
||||
"version": "1.1.6"
|
||||
@@ -4885,7 +4885,7 @@
|
||||
"version": "2.0.0"
|
||||
},
|
||||
"nan": {
|
||||
"version": "2.6.2"
|
||||
"version": "2.7.0"
|
||||
},
|
||||
"node-pre-gyp": {
|
||||
"version": "0.6.36"
|
||||
@@ -5729,7 +5729,7 @@
|
||||
}
|
||||
},
|
||||
"magic-string": {
|
||||
"version": "0.16.0"
|
||||
"version": "0.19.1"
|
||||
},
|
||||
"make-dir": {
|
||||
"version": "1.0.0"
|
||||
@@ -6204,6 +6204,9 @@
|
||||
"path-key": {
|
||||
"version": "2.0.1"
|
||||
},
|
||||
"path-parse": {
|
||||
"version": "1.0.5"
|
||||
},
|
||||
"path-to-regexp": {
|
||||
"version": "0.1.7"
|
||||
},
|
||||
@@ -6581,6 +6584,9 @@
|
||||
"resolve": {
|
||||
"version": "1.1.6"
|
||||
},
|
||||
"resolve-url": {
|
||||
"version": "0.2.1"
|
||||
},
|
||||
"response-time": {
|
||||
"version": "2.3.1"
|
||||
},
|
||||
@@ -6677,24 +6683,32 @@
|
||||
"version": "1.1.0"
|
||||
},
|
||||
"rollup": {
|
||||
"version": "0.41.6"
|
||||
"version": "0.47.4"
|
||||
},
|
||||
"rollup-plugin-commonjs": {
|
||||
"version": "5.0.5",
|
||||
"version": "8.1.0",
|
||||
"dependencies": {
|
||||
"acorn": {
|
||||
"version": "4.0.3"
|
||||
"version": "4.0.13"
|
||||
},
|
||||
"resolve": {
|
||||
"version": "1.1.7"
|
||||
"version": "1.4.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"rollup-plugin-node-resolve": {
|
||||
"version": "3.0.0"
|
||||
},
|
||||
"rollup-plugin-sourcemaps": {
|
||||
"version": "0.4.2"
|
||||
},
|
||||
"rollup-pluginutils": {
|
||||
"version": "1.5.2"
|
||||
"version": "2.0.1",
|
||||
"dependencies": {
|
||||
"micromatch": {
|
||||
"version": "2.3.11"
|
||||
}
|
||||
}
|
||||
},
|
||||
"router": {
|
||||
"version": "1.3.1",
|
||||
@@ -6980,6 +6994,9 @@
|
||||
"source-map": {
|
||||
"version": "0.5.6"
|
||||
},
|
||||
"source-map-resolve": {
|
||||
"version": "0.5.0"
|
||||
},
|
||||
"source-map-support": {
|
||||
"version": "0.4.2",
|
||||
"dependencies": {
|
||||
@@ -6993,6 +7010,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"source-map-url": {
|
||||
"version": "0.4.0"
|
||||
},
|
||||
"sourcemap-codec": {
|
||||
"version": "1.3.0"
|
||||
},
|
||||
@@ -7409,7 +7429,7 @@
|
||||
}
|
||||
},
|
||||
"tsickle": {
|
||||
"version": "0.23.4"
|
||||
"version": "0.23.6"
|
||||
},
|
||||
"tslib": {
|
||||
"version": "1.7.1"
|
||||
@@ -7558,6 +7578,9 @@
|
||||
"upper-case-first": {
|
||||
"version": "1.1.2"
|
||||
},
|
||||
"urix": {
|
||||
"version": "0.1.0"
|
||||
},
|
||||
"url": {
|
||||
"version": "0.10.3",
|
||||
"dependencies": {
|
||||
|
||||
Generated
+114
-77
File diff suppressed because it is too large
Load Diff
+4
-3
@@ -87,9 +87,10 @@
|
||||
"react": "^0.14.0",
|
||||
"rewire": "^2.3.3",
|
||||
"rho": "^0.3.0",
|
||||
"rollup": "^0.41.6",
|
||||
"rollup-plugin-commonjs": "^5.0.5",
|
||||
"rollup": "^0.47.4",
|
||||
"rollup-plugin-commonjs": "^8.1.0",
|
||||
"rollup-plugin-node-resolve": "^3.0.0",
|
||||
"rollup-plugin-sourcemaps": "^0.4.2",
|
||||
"selenium-webdriver": "^2.53.3",
|
||||
"semver": "^5.1.0",
|
||||
"sorcery": "^0.10.0",
|
||||
@@ -97,7 +98,7 @@
|
||||
"source-map-support": "^0.4.2",
|
||||
"systemjs": "0.18.10",
|
||||
"ts-api-guardian": "^0.2.2",
|
||||
"tsickle": "^0.23.4",
|
||||
"tsickle": "^0.23.6",
|
||||
"tslint": "^4.1.1",
|
||||
"tslint-eslint-rules": "^3.1.0",
|
||||
"typescript": "^2.3.4",
|
||||
|
||||
@@ -11,4 +11,4 @@
|
||||
// replaces this file with production index.ts when it rewrites private symbol
|
||||
// names.
|
||||
|
||||
export * from './src/browser';
|
||||
export * from './public_api';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@angular/animations/browser",
|
||||
"typings": "../browser.d.ts",
|
||||
"typings": "./index.d.ts",
|
||||
"main": "../bundles/animations-browser.umd.js",
|
||||
"module": "../@angular/animations/browser.es5.js",
|
||||
"es2015": "../@angular/animations/browser.js"
|
||||
"module": "../esm5/browser/index.js",
|
||||
"es2015": "../esm15/browser/index.js"
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point for all public APIs of the animation package.
|
||||
* Entry point for all public APIs of this package.
|
||||
*/
|
||||
export * from './src/browser';
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
||||
|
||||
const globals = {
|
||||
'@angular/core': 'ng.core',
|
||||
@@ -15,12 +16,12 @@ const globals = {
|
||||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/animations/@angular/animations/browser.es5.js',
|
||||
entry: '../../../dist/packages-dist/animations/esm5/browser/index.js',
|
||||
dest: '../../../dist/packages-dist/animations/bundles/animations-browser.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
moduleName: 'ng.animations.browser',
|
||||
plugins: [resolve()],
|
||||
plugins: [resolve(), sourcemaps()],
|
||||
external: Object.keys(globals),
|
||||
globals: globals
|
||||
};
|
||||
|
||||
@@ -6,10 +6,9 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point for all public APIs of the platform-browser/animations/testing package.
|
||||
*/
|
||||
// This file is not used to build this module. It is only used during editing
|
||||
// by the TypeScript language serivce and during build for verifcation. `ngc`
|
||||
// replaces this file with production index.ts when it rewrites private symbol
|
||||
// names.
|
||||
|
||||
export * from './src/testing';
|
||||
export * from './public_api';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@angular/animations/browser/testing",
|
||||
"typings": "../testing.d.ts",
|
||||
"typings": "./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"
|
||||
"module": "../../esm5/animations/testing/index.js",
|
||||
"es2015": "../../esm15/animations/testing/index.js"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point for all public APIs of this package.
|
||||
*/
|
||||
export * from './src/testing';
|
||||
@@ -7,20 +7,22 @@
|
||||
*/
|
||||
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
||||
|
||||
const globals = {
|
||||
'@angular/core': 'ng.core',
|
||||
'@angular/animations': 'ng.animations',
|
||||
'rxjs/Observable': 'Rx',
|
||||
'rxjs/Subject': 'Rx',
|
||||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../../dist/packages-dist/animations/@angular/animations/browser/testing.es5.js',
|
||||
entry: '../../../../dist/packages-dist/animations/esm5/browser/testing/index.js',
|
||||
dest: '../../../../dist/packages-dist/animations/bundles/animations-browser-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
moduleName: 'ng.animations.browser.testing',
|
||||
plugins: [resolve()],
|
||||
plugins: [resolve(), sourcemaps()],
|
||||
external: Object.keys(globals),
|
||||
globals: globals
|
||||
};
|
||||
|
||||
@@ -1,17 +1,26 @@
|
||||
{
|
||||
"extends": "../../tsconfig-build",
|
||||
"extends": "../tsconfig-build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"rootDir": "../../",
|
||||
"paths": {
|
||||
"@angular/animations": ["../../dist/packages/animations"]
|
||||
}
|
||||
"@angular/animations": ["../../../../dist/packages/animations"]
|
||||
},
|
||||
"outDir": "../../../../dist/packages/animations"
|
||||
},
|
||||
|
||||
"files": [
|
||||
"index.ts",
|
||||
"public_api.ts",
|
||||
"../../../../node_modules/@types/hammerjs/index.d.ts",
|
||||
"../../../../node_modules/@types/jasmine/index.d.ts",
|
||||
"../../../../node_modules/zone.js/dist/zone.js.d.ts"
|
||||
],
|
||||
|
||||
"angularCompilerOptions": {
|
||||
"strictMetadataEmit": true
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleId": "@angular/animations/browser/testing"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,21 @@
|
||||
{
|
||||
"extends": "../tsconfig-build",
|
||||
"extends": "../tsconfig-build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"rootDir": "../",
|
||||
"paths": {
|
||||
"@angular/animations": ["../../dist/packages/animations"]
|
||||
}
|
||||
"@angular/animations": ["../../../dist/packages/animations"]
|
||||
},
|
||||
"outDir": "../../../dist/packages/animations"
|
||||
},
|
||||
|
||||
"files": [
|
||||
"public_api.ts",
|
||||
"../../../node_modules/zone.js/dist/zone.js.d.ts",
|
||||
"../../system.d.ts"
|
||||
],
|
||||
|
||||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - animations integration with web-animationss",
|
||||
"main": "./bundles/animations.umd.js",
|
||||
"module": "./@angular/animations.es5.js",
|
||||
"es2015": "./@angular/animations.js",
|
||||
"typings": "./animations.d.ts",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Entry point for all public APIs of the animation package.
|
||||
* Entry point for all public APIs of this package.
|
||||
*/
|
||||
export * from './src/animations';
|
||||
|
||||
@@ -7,20 +7,22 @@
|
||||
*/
|
||||
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
||||
|
||||
const globals = {
|
||||
'@angular/core': 'ng.core',
|
||||
'@angular/animations': 'ng.animations',
|
||||
'rxjs/Observable': 'Rx',
|
||||
'rxjs/Subject': 'Rx',
|
||||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/animations/@angular/animations.es5.js',
|
||||
entry: '../../dist/packages-dist/animations/esm5/index.js',
|
||||
dest: '../../dist/packages-dist/animations/bundles/animations.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
moduleName: 'ng.animations',
|
||||
plugins: [resolve()],
|
||||
plugins: [resolve(), sourcemaps()],
|
||||
external: Object.keys(globals),
|
||||
globals: globals
|
||||
};
|
||||
|
||||
@@ -1,29 +1,19 @@
|
||||
{
|
||||
"extends": "../tsconfig-build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"declaration": true,
|
||||
"stripInternal": true,
|
||||
"experimentalDecorators": true,
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "../../dist/packages/animations",
|
||||
"paths": {
|
||||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"inlineSources": true,
|
||||
"target": "es2015",
|
||||
"lib": ["es2015", "dom"],
|
||||
"skipLibCheck": true,
|
||||
"strictNullChecks": true,
|
||||
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
|
||||
"types": []
|
||||
"paths": {},
|
||||
"outDir": "../../dist/packages/animations"
|
||||
},
|
||||
|
||||
"files": [
|
||||
"public_api.ts",
|
||||
"../../node_modules/zone.js/dist/zone.js.d.ts",
|
||||
"../system.d.ts"
|
||||
],
|
||||
|
||||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
|
||||
@@ -1,23 +1,17 @@
|
||||
{
|
||||
"extends": "../tsconfig-build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"lib": ["es6", "dom"],
|
||||
"noImplicitAny": true,
|
||||
"sourceMap": true,
|
||||
"baseUrl": ".",
|
||||
"outDir": "../../dist/packages/benchpress",
|
||||
"rootDir": ".",
|
||||
"sourceRoot": ".",
|
||||
"paths": {
|
||||
"@angular/core": ["../../dist/packages/core"]
|
||||
},
|
||||
"experimentalDecorators": true,
|
||||
"rootDir": ".",
|
||||
"sourceRoot": ".",
|
||||
"declaration": true,
|
||||
"skipLibCheck": true,
|
||||
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
|
||||
"types": []
|
||||
"outDir": "../../dist/packages/benchpress"
|
||||
},
|
||||
|
||||
"files": [
|
||||
"index.ts",
|
||||
"../../node_modules/@types/node/index.d.ts",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@angular/common/http",
|
||||
"typings": "../http.d.ts",
|
||||
"typings": "./index.d.ts",
|
||||
"main": "../bundles/common-http.umd.js",
|
||||
"module": "../@angular/common/http.es5.js",
|
||||
"es2015": "../@angular/common/http.js"
|
||||
"module": "../esm5/http/index.js",
|
||||
"es2015": "../esm15/http/index.js"
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
const globals = {
|
||||
'@angular/core': 'ng.core',
|
||||
'@angular/platform-browser': 'ng.platformBrowser',
|
||||
'@angular/common': 'ng.common',
|
||||
'rxjs/Observable': 'Rx',
|
||||
'rxjs/Subject': 'Rx',
|
||||
|
||||
@@ -20,7 +21,7 @@ const globals = {
|
||||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/common/@angular/common/http.es5.js',
|
||||
entry: '../../../dist/packages-dist/common/esm5/http/index.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": "../testing.d.ts",
|
||||
"typings": "./index.d.ts",
|
||||
"main": "../../bundles/common-http-testing.umd.js",
|
||||
"module": "../../@angular/common/http/testing.es5.js",
|
||||
"es2015": "../../@angular/common/http/testing.js"
|
||||
"module": "../../esm5/http/testing/index.js",
|
||||
"es2015": "../../esm15/http/testing/index.js"
|
||||
}
|
||||
|
||||
@@ -7,10 +7,12 @@
|
||||
*/
|
||||
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
||||
|
||||
const globals = {
|
||||
'@angular/core': 'ng.core',
|
||||
'@angular/platform-browser': 'ng.platformBrowser',
|
||||
'@angular/common': 'ng.common',
|
||||
'@angular/common/http': 'ng.common.http',
|
||||
'rxjs/Observable': 'Rx',
|
||||
'rxjs/ReplaySubject': 'Rx',
|
||||
@@ -18,12 +20,12 @@ const globals = {
|
||||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../../dist/packages-dist/common/@angular/common/http/testing.es5.js',
|
||||
entry: '../../../../dist/packages-dist/common/esm5/http/testing/index.js',
|
||||
dest: '../../../../dist/packages-dist/common/bundles/common-http-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
moduleName: 'ng.common.http.testing',
|
||||
plugins: [resolve()],
|
||||
plugins: [resolve(), sourcemaps()],
|
||||
external: Object.keys(globals),
|
||||
globals: globals
|
||||
};
|
||||
|
||||
@@ -1,28 +1,22 @@
|
||||
{
|
||||
"extends": "../tsconfig-build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"declaration": true,
|
||||
"stripInternal": true,
|
||||
"experimentalDecorators": true,
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "../../../../dist/packages/common/http/testing",
|
||||
"rootDir": "../../",
|
||||
"paths": {
|
||||
"@angular/core": ["../../../../dist/packages/core"],
|
||||
"@angular/common": ["../../../../dist/packages/common"],
|
||||
"@angular/common/http": ["../../../../dist/packages/common/http"],
|
||||
"@angular/platform-browser": ["../../../../dist/packages/platform-browser"]
|
||||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"inlineSources": true,
|
||||
"target": "es2015",
|
||||
"skipLibCheck": true,
|
||||
"lib": ["es2015", "dom"]
|
||||
"outDir": "../../../../dist/packages/common"
|
||||
},
|
||||
|
||||
"files": [
|
||||
"public_api.ts"
|
||||
],
|
||||
|
||||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
|
||||
@@ -1,26 +1,20 @@
|
||||
{
|
||||
"extends": "../tsconfig-build.json",
|
||||
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"declaration": true,
|
||||
"stripInternal": true,
|
||||
"experimentalDecorators": true,
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "../../../dist/packages/common/http",
|
||||
"rootDir": "../",
|
||||
"paths": {
|
||||
"@angular/common": ["../../../dist/packages/common"],
|
||||
"@angular/core": ["../../../dist/packages/core"]
|
||||
},
|
||||
"rootDir": ".",
|
||||
"sourceMap": true,
|
||||
"inlineSources": true,
|
||||
"target": "es2015",
|
||||
"skipLibCheck": true,
|
||||
"lib": ["es2015", "dom"]
|
||||
"outDir": "../../../dist/packages/common"
|
||||
},
|
||||
|
||||
"files": [
|
||||
"public_api.ts"
|
||||
],
|
||||
|
||||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"strictMetadataEmit": true,
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - commonly needed directives and services",
|
||||
"main": "./bundles/common.umd.js",
|
||||
"module": "./@angular/common.es5.js",
|
||||
"es2015": "./@angular/common.js",
|
||||
"typings": "./common.d.ts",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user