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:
Jason Aden 2017-08-02 19:15:30 -07:00
parent ee04217d53
commit fd701b07f0
160 changed files with 1079 additions and 892 deletions

142
build.sh
View File

@ -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}

View File

@ -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

View File

@ -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"
}
}
}

View File

@ -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

View File

@ -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"

View File

@ -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": {

191
npm-shrinkwrap.json generated
View File

@ -1,28 +1,23 @@
{
"name": "angular-srcs",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"dependencies": {
"@bazel/typescript": {
"version": "0.0.7",
"from": "@bazel/typescript@latest",
"from": "@bazel/typescript@0.0.7",
"resolved": "https://registry.npmjs.org/@bazel/typescript/-/typescript-0.0.7.tgz",
"dependencies": {
"@types/node": {
"version": "7.0.18",
"from": "@types/node@7.0.18",
"resolved": "https://registry.npmjs.org/@types/node/-/node-7.0.18.tgz"
},
"tsickle": {
"version": "0.23.6",
"from": "tsickle@0.23.6",
"resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.23.6.tgz"
}
}
},
"@google-cloud/common": {
"version": "0.13.4",
"version": "0.13.5",
"from": "@google-cloud/common@>=0.13.0 <0.14.0",
"resolved": "https://registry.npmjs.org/@google-cloud/common/-/common-0.13.4.tgz",
"resolved": "https://registry.npmjs.org/@google-cloud/common/-/common-0.13.5.tgz",
"dependencies": {
"array-uniq": {
"version": "1.0.3",
@ -61,12 +56,12 @@
},
"qs": {
"version": "6.4.0",
"from": "qs@~6.4.0",
"from": "qs@>=6.4.0 <6.5.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz"
},
"readable-stream": {
"version": "2.3.3",
"from": "readable-stream@^2.1.5",
"from": "readable-stream@>=2.1.5 <3.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz",
"dependencies": {
"safe-buffer": {
@ -78,7 +73,7 @@
},
"request": {
"version": "2.81.0",
"from": "request@^2.79.0",
"from": "request@>=2.79.0 <3.0.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz"
},
"string_decoder": {
@ -395,7 +390,7 @@
"dependencies": {
"async": {
"version": "2.5.0",
"from": "async@>=2.0.1 <3.0.0",
"from": "async@^2.0.1",
"resolved": "https://registry.npmjs.org/async/-/async-2.5.0.tgz"
},
"inherits": {
@ -415,7 +410,7 @@
},
"readable-stream": {
"version": "2.3.3",
"from": "readable-stream@^2.1.5",
"from": "readable-stream@>=2.1.5 <3.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz"
},
"safe-buffer": {
@ -775,6 +770,11 @@
"from": "asynckit@>=0.4.0 <0.5.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz"
},
"atob": {
"version": "2.0.3",
"from": "atob@>=2.0.0 <3.0.0",
"resolved": "https://registry.npmjs.org/atob/-/atob-2.0.3.tgz"
},
"aws-sign2": {
"version": "0.6.0",
"from": "aws-sign2@>=0.6.0 <0.7.0",
@ -2909,7 +2909,7 @@
},
"cldr-data-downloader": {
"version": "0.3.2",
"from": "cldr-data-downloader@>=0.3.0 <0.4.0",
"from": "cldr-data-downloader@>=0.3.2 <0.4.0",
"resolved": "https://registry.npmjs.org/cldr-data-downloader/-/cldr-data-downloader-0.3.2.tgz",
"dependencies": {
"adm-zip": {
@ -2943,14 +2943,14 @@
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz"
},
"mime-db": {
"version": "1.27.0",
"from": "mime-db@>=1.27.0 <1.28.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.27.0.tgz"
"version": "1.29.0",
"from": "mime-db@>=1.29.0 <1.30.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.29.0.tgz"
},
"mime-types": {
"version": "2.1.15",
"version": "2.1.16",
"from": "mime-types@>=2.1.7 <2.2.0",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.15.tgz"
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.16.tgz"
},
"minimist": {
"version": "0.0.8",
@ -2991,7 +2991,7 @@
},
"cldrjs": {
"version": "0.5.0",
"from": "cldrjs@0.5.0",
"from": "cldrjs@>=0.5.0 <0.6.0",
"resolved": "https://registry.npmjs.org/cldrjs/-/cldrjs-0.5.0.tgz"
},
"cli-boxes": {
@ -3227,7 +3227,7 @@
"dependencies": {
"qs": {
"version": "6.4.0",
"from": "qs@~6.4.0",
"from": "qs@>=6.4.0 <6.5.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz"
}
}
@ -3504,7 +3504,7 @@
},
"readable-stream": {
"version": "2.0.6",
"from": "readable-stream@>=2.0.0 <2.1.0",
"from": "readable-stream@~2.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz"
},
"through2": {
@ -3767,7 +3767,7 @@
"dependencies": {
"isarray": {
"version": "1.0.0",
"from": "isarray@>=1.0.0 <1.1.0",
"from": "isarray@~1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
},
"readable-stream": {
@ -3943,9 +3943,9 @@
"resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz"
},
"es5-ext": {
"version": "0.10.29",
"version": "0.10.30",
"from": "es5-ext@>=0.10.14 <0.11.0",
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.29.tgz"
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.30.tgz"
},
"es6-iterator": {
"version": "2.0.1",
@ -4007,9 +4007,9 @@
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz"
},
"estree-walker": {
"version": "0.2.1",
"from": "estree-walker@>=0.2.1 <0.3.0",
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.2.1.tgz"
"version": "0.3.1",
"from": "estree-walker@>=0.3.0 <0.4.0",
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.3.1.tgz"
},
"esutils": {
"version": "1.1.6",
@ -4494,7 +4494,7 @@
},
"readable-stream": {
"version": "2.3.3",
"from": "readable-stream@^2.0.5",
"from": "readable-stream@>=2.0.5 <3.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz"
},
"string_decoder": {
@ -4592,7 +4592,7 @@
},
"lodash": {
"version": "4.17.4",
"from": "lodash@>=4.6.1 <5.0.0",
"from": "lodash@^4.6.1",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz"
},
"mime-db": {
@ -4622,7 +4622,7 @@
},
"qs": {
"version": "6.4.0",
"from": "qs@~6.4.0",
"from": "qs@>=6.4.0 <6.5.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz"
},
"readable-stream": {
@ -4672,7 +4672,7 @@
},
"readable-stream": {
"version": "2.3.3",
"from": "readable-stream@^2.0.0",
"from": "readable-stream@>=2.0.0 <3.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz"
},
"string_decoder": {
@ -5600,12 +5600,12 @@
},
"mime-db": {
"version": "1.29.0",
"from": "mime-db@>=1.29.0 <1.30.0",
"from": "mime-db@~1.29.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.29.0.tgz"
},
"mime-types": {
"version": "2.1.16",
"from": "mime-types@>=2.1.7 <2.2.0",
"from": "mime-types@~2.1.7",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.16.tgz"
},
"qs": {
@ -5615,7 +5615,7 @@
},
"readable-stream": {
"version": "2.3.3",
"from": "readable-stream@^2.1.5",
"from": "readable-stream@>=2.1.5 <3.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz",
"dependencies": {
"safe-buffer": {
@ -5627,7 +5627,7 @@
},
"request": {
"version": "2.81.0",
"from": "request@^2.81.0",
"from": "request@>=2.81.0 <3.0.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz"
},
"retry-request": {
@ -5654,7 +5654,7 @@
},
"tough-cookie": {
"version": "2.3.2",
"from": "tough-cookie@>=2.3.0 <2.4.0",
"from": "tough-cookie@~2.3.0",
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.2.tgz"
},
"tunnel-agent": {
@ -5721,12 +5721,12 @@
},
"qs": {
"version": "6.4.0",
"from": "qs@~6.4.0",
"from": "qs@>=6.4.0 <6.5.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz"
},
"readable-stream": {
"version": "2.3.3",
"from": "readable-stream@^2.1.5",
"from": "readable-stream@>=2.1.5 <3.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz",
"dependencies": {
"safe-buffer": {
@ -5738,7 +5738,7 @@
},
"request": {
"version": "2.81.0",
"from": "request@^2.81.0",
"from": "request@>=2.81.0 <3.0.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz"
},
"signal-exit": {
@ -6043,12 +6043,12 @@
},
"qs": {
"version": "6.4.0",
"from": "qs@~6.4.0",
"from": "qs@>=6.4.0 <6.5.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz"
},
"request": {
"version": "2.81.0",
"from": "request@^2.74.0",
"from": "request@>=2.74.0 <3.0.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz"
},
"tough-cookie": {
@ -6105,12 +6105,12 @@
},
"qs": {
"version": "6.4.0",
"from": "qs@~6.4.0",
"from": "qs@>=6.4.0 <6.5.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz"
},
"request": {
"version": "2.81.0",
"from": "request@^2.79.0",
"from": "request@>=2.79.0 <3.0.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz"
},
"tough-cookie": {
@ -6963,12 +6963,12 @@
},
"qs": {
"version": "6.4.0",
"from": "qs@~6.4.0",
"from": "qs@>=6.4.0 <6.5.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz"
},
"request": {
"version": "2.81.0",
"from": "request@^2.72.0",
"from": "request@>=2.72.0 <3.0.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz"
},
"tough-cookie": {
@ -7305,7 +7305,7 @@
},
"readable-stream": {
"version": "2.3.3",
"from": "readable-stream@^2.1.5",
"from": "readable-stream@>=2.1.5 <3.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz"
},
"safe-buffer": {
@ -7781,9 +7781,9 @@
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz"
},
"nan": {
"version": "2.6.2",
"version": "2.7.0",
"from": "nan@>=2.6.1 <3.0.0",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz"
"resolved": "https://registry.npmjs.org/nan/-/nan-2.7.0.tgz"
},
"node-pre-gyp": {
"version": "0.6.36",
@ -9145,9 +9145,9 @@
}
},
"magic-string": {
"version": "0.16.0",
"from": "magic-string@>=0.16.0 <0.17.0",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.16.0.tgz"
"version": "0.19.1",
"from": "magic-string@>=0.19.0 <0.20.0",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.19.1.tgz"
},
"make-dir": {
"version": "1.0.0",
@ -9510,7 +9510,7 @@
},
"qs": {
"version": "6.4.0",
"from": "qs@~6.4.0",
"from": "qs@>=6.4.0 <6.5.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz"
},
"rc": {
@ -9520,7 +9520,7 @@
},
"request": {
"version": "2.81.0",
"from": "request@^2.81.0",
"from": "request@>=2.81.0 <3.0.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz"
},
"rimraf": {
@ -9530,7 +9530,7 @@
},
"semver": {
"version": "5.4.1",
"from": "semver@^5.3.0",
"from": "semver@>=5.3.0 <6.0.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz"
},
"strip-json-comments": {
@ -9920,6 +9920,11 @@
"from": "path-key@>=2.0.0 <3.0.0",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz"
},
"path-parse": {
"version": "1.0.5",
"from": "path-parse@>=1.0.5 <2.0.0",
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz"
},
"path-to-regexp": {
"version": "0.1.7",
"from": "path-to-regexp@0.1.7",
@ -10531,6 +10536,11 @@
"from": "resolve@>=1.1.4 <2.0.0",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.6.tgz"
},
"resolve-url": {
"version": "0.2.1",
"from": "resolve-url@>=0.2.1 <0.3.0",
"resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz"
},
"response-time": {
"version": "2.3.1",
"from": "response-time@>=2.3.1 <2.4.0",
@ -10583,12 +10593,12 @@
},
"qs": {
"version": "6.4.0",
"from": "qs@~6.4.0",
"from": "qs@>=6.4.0 <6.5.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz"
},
"readable-stream": {
"version": "2.3.3",
"from": "readable-stream@^2.1.5",
"from": "readable-stream@>=2.1.5 <3.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz",
"dependencies": {
"safe-buffer": {
@ -10600,7 +10610,7 @@
},
"request": {
"version": "2.81.0",
"from": "request@^2.81.0",
"from": "request@>=2.81.0 <3.0.0",
"resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz"
},
"string_decoder": {
@ -10685,24 +10695,24 @@
"resolved": "https://registry.npmjs.org/roadrunner/-/roadrunner-1.1.0.tgz"
},
"rollup": {
"version": "0.41.6",
"from": "rollup@0.41.6",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-0.41.6.tgz"
"version": "0.47.4",
"from": "rollup@0.47.4",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-0.47.4.tgz"
},
"rollup-plugin-commonjs": {
"version": "5.0.5",
"from": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-5.0.5.tgz",
"resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-5.0.5.tgz",
"version": "8.1.0",
"from": "rollup-plugin-commonjs@8.1.0",
"resolved": "https://registry.npmjs.org/rollup-plugin-commonjs/-/rollup-plugin-commonjs-8.1.0.tgz",
"dependencies": {
"acorn": {
"version": "4.0.3",
"version": "4.0.13",
"from": "acorn@>=4.0.1 <5.0.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.3.tgz"
"resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz"
},
"resolve": {
"version": "1.1.7",
"version": "1.4.0",
"from": "resolve@>=1.1.7 <2.0.0",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz"
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.4.0.tgz"
}
}
},
@ -10711,10 +10721,22 @@
"from": "rollup-plugin-node-resolve@latest",
"resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.0.0.tgz"
},
"rollup-plugin-sourcemaps": {
"version": "0.4.2",
"from": "rollup-plugin-sourcemaps@0.4.2",
"resolved": "https://registry.npmjs.org/rollup-plugin-sourcemaps/-/rollup-plugin-sourcemaps-0.4.2.tgz"
},
"rollup-pluginutils": {
"version": "1.5.2",
"from": "rollup-pluginutils@>=1.5.1 <2.0.0",
"resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-1.5.2.tgz"
"version": "2.0.1",
"from": "rollup-pluginutils@>=2.0.1 <3.0.0",
"resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.0.1.tgz",
"dependencies": {
"micromatch": {
"version": "2.3.11",
"from": "micromatch@>=2.3.11 <3.0.0",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz"
}
}
},
"router": {
"version": "1.3.1",
@ -11052,7 +11074,7 @@
},
"readable-stream": {
"version": "2.3.3",
"from": "readable-stream@^2.0.2",
"from": "readable-stream@>=2.0.2 <3.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz"
},
"safe-buffer": {
@ -11172,6 +11194,11 @@
"from": "source-map@latest",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz"
},
"source-map-resolve": {
"version": "0.5.0",
"from": "source-map-resolve@>=0.5.0 <0.6.0",
"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.0.tgz"
},
"source-map-support": {
"version": "0.4.2",
"from": "source-map-support@latest",
@ -11191,6 +11218,11 @@
}
}
},
"source-map-url": {
"version": "0.4.0",
"from": "source-map-url@>=0.4.0 <0.5.0",
"resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz"
},
"sourcemap-codec": {
"version": "1.3.0",
"from": "sourcemap-codec@>=1.3.0 <2.0.0",
@ -11665,7 +11697,7 @@
},
"readable-stream": {
"version": "2.3.3",
"from": "readable-stream@^2.1.4",
"from": "readable-stream@>=2.1.4 <3.0.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz",
"dependencies": {
"inherits": {
@ -11865,9 +11897,9 @@
}
},
"tsickle": {
"version": "0.23.4",
"from": "tsickle@0.23.4",
"resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.23.4.tgz"
"version": "0.23.6",
"from": "tsickle@0.23.6",
"resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.23.6.tgz"
},
"tslib": {
"version": "1.7.1",
@ -12106,6 +12138,11 @@
"from": "upper-case-first@>=1.1.0 <2.0.0",
"resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-1.1.2.tgz"
},
"urix": {
"version": "0.1.0",
"from": "urix@>=0.1.0 <0.2.0",
"resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz"
},
"url": {
"version": "0.10.3",
"from": "url@>=0.10.1 <0.11.0",

View File

@ -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",

View File

@ -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';

View File

@ -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"
}

View File

@ -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';

View File

@ -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
};

View File

@ -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';

View File

@ -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"
}

View File

@ -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';

View File

@ -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
};

View File

@ -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"
}
}

View File

@ -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,

View File

@ -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": {

View File

@ -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';

View File

@ -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
};

View File

@ -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,

View File

@ -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",

View File

@ -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"
}

View File

@ -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',

View File

@ -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"
}

View File

@ -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
};

View File

@ -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,

View File

@ -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,

View File

@ -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": {

View File

@ -9,7 +9,7 @@
/**
* @module
* @description
* Entry point for all public APIs of the common package.
* Entry point for all public APIs of this package.
*/
export * from './src/common';

View File

@ -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/common/@angular/common.es5.js',
entry: '../../dist/packages-dist/common/esm5/index.js',
dest: '../../dist/packages-dist/common/bundles/common.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.common',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,10 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
/**
* @module
* @description
* Entry point for all public APIs of the core/testing package.
*/
// 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 './src/testing';
export * from './public_api';

View File

@ -1,7 +1,7 @@
{
"name": "@angular/common/testing",
"typings": "../testing.d.ts",
"typings": "./index.d.ts",
"main": "../bundles/common-testing.umd.js",
"module": "../@angular/common/testing.es5.js",
"es2015": "../@angular/common/testing.js"
"module": "../esm5/testing/index.js",
"es2015": "../esm15/testing/index.js"
}

View File

@ -0,0 +1,16 @@
/**
* @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';
// This file only reexports content of the `src` folder. Keep it that way.

View File

@ -7,6 +7,7 @@
*/
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const globals = {
'@angular/core': 'ng.core',
@ -16,12 +17,12 @@ const globals = {
};
export default {
entry: '../../../dist/packages-dist/common/@angular/common/testing.es5.js',
entry: '../../../dist/packages-dist/common/esm5/testing/index.js',
dest: '../../../dist/packages-dist/common/bundles/common-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.common.testing',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -1,17 +1,25 @@
{
"extends": "../tsconfig-build",
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "../",
"paths": {
"@angular/core": ["../../dist/packages/core"],
"@angular/common": ["../../dist/packages/common"]
}
"@angular/core": ["../../../dist/packages/core"],
"@angular/common": ["../../../dist/packages/common"]
},
"outDir": "../../../dist/packages/common"
},
"files": [
"index.ts",
"public_api.ts",
"../../../node_modules/zone.js/dist/zone.js.d.ts"
],
"angularCompilerOptions": {
"strictMetadataEmit": true
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@angular/common/testing"
}
}

View File

@ -1,41 +1,24 @@
{
"extends": "../tsconfig-build.json",
"compilerOptions": {
"rootDir": ".",
"baseUrl": ".",
"paths": {
"@angular/core": ["../../dist/packages/core"]
},
"outDir": "../../dist/packages/common"
},
"files": [
"public_api.ts",
"../../node_modules/zone.js/dist/zone.js.d.ts"
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@angular/common"
},
"compilerOptions": {
"stripInternal": true,
"strictNullChecks": true,
"noImplicitAny": true,
"noFallthroughCasesInSwitch": true,
"module": "es2015",
"moduleResolution": "node",
"target": "es2015",
"skipLibCheck": true,
"lib": [ "es2015", "dom" ],
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
"types": [],
/**
* The rest of the file is configuration that's overridden by bazel.
* It can be removed after we fully migrate.
*/
"baseUrl": ".",
"declaration": true,
"experimentalDecorators": true,
"outDir": "../../dist/packages/common",
"paths": {
"@angular/core": ["../../dist/packages/core"]
},
"rootDir": ".",
"sourceMap": true,
"inlineSources": true
},
"files": [
"public_api.ts",
"../../node_modules/zone.js/dist/zone.js.d.ts"
]
}
}

View File

@ -12,7 +12,7 @@
"@angular/tsc-wrapped": "5.0.0-beta.5",
"reflect-metadata": "^0.1.2",
"minimist": "^1.2.0",
"tsickle": "^0.23.4",
"tsickle": "^0.23.6",
"chokidar": "^1.4.2"
},
"peerDependencies": {

View File

@ -1,29 +1,23 @@
{
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"experimentalDecorators": true,
"noImplicitAny": true,
"strictNullChecks": true,
"module": "commonjs",
"outDir": "../../dist/packages/compiler-cli",
"stripInternal": false,
"target": "es5",
"baseUrl": ".",
"rootDir": ".",
"paths": {
"@angular/compiler": ["../../dist/packages/compiler"],
"@angular/tsc-wrapped": ["../../dist/packages-dist/tsc-wrapped"]
},
"rootDir": ".",
"sourceMap": true,
"inlineSources": true,
"target": "es5",
"lib": [
"es6",
"dom"
],
"skipLibCheck": true
"outDir": "../../dist/packages/compiler-cli"
},
"exclude": [
"integrationtest"
],
"files": [
"index.ts",
"ngtools2.ts",

View File

@ -6,11 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
/**
* @module
* @description
* Entry point for all public APIs of the compiler package.
*/
export * from './src/compiler';
// 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.
// This file only reexports content of the `src` folder. Keep it that way.
export * from './public_api';

View File

@ -3,9 +3,9 @@
"version": "0.0.0-PLACEHOLDER",
"description": "Angular - the compiler library",
"main": "./bundles/compiler.umd.js",
"module": "./@angular/compiler.es5.js",
"es2015": "./@angular/compiler.js",
"typings": "./compiler.d.ts",
"module": "./esm5/index.js",
"es2015": "./esm15/index.js",
"typings": "./index.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {

View File

@ -0,0 +1,16 @@
/**
* @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/compiler';
// This file only reexports content of the `src` folder. Keep it that way.

View File

@ -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/compiler/@angular/compiler.es5.js',
entry: '../../dist/packages-dist/compiler/esm5/index.js',
dest: '../../dist/packages-dist/compiler/bundles/compiler.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.compiler',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,10 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
/**
* @module
* @description
* Entry point for all public APIs of the compiler/testing package.
*/
// 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 './src/testing';
export * from './public_api';

View File

@ -1,7 +1,7 @@
{
"name": "@angular/compiler/testing",
"typings": "../testing.d.ts",
"typings": "./index.d.ts",
"main": "../bundles/compiler-testing.umd.js",
"module": "../@angular/compiler/testing.es5.js",
"es2015": "../@angular/compiler/testing.js"
"module": "../esm5/testing/index.js",
"es2015": "../esm15/testing/index.js"
}

View File

@ -0,0 +1,16 @@
/**
* @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';
// This file only reexports content of the `src` folder. Keep it that way.

View File

@ -7,6 +7,7 @@
*/
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const globals = {
'@angular/core': 'ng.core',
@ -17,12 +18,12 @@ const globals = {
};
export default {
entry: '../../../dist/packages-dist/compiler/@angular/compiler/testing.es5.js',
entry: '../../../dist/packages-dist/compiler/esm5/testing/index.js',
dest: '../../../dist/packages-dist/compiler/bundles/compiler-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.compiler.testing',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -1,15 +1,23 @@
{
"extends": "../tsconfig-build",
"extends": "../tsconfig-build.json",
"compilerOptions": {
// Test that we rely on decorator downleveling
"emitDecoratorMetadata": false,
"baseUrl": ".",
"rootDir": "../",
"paths": {
"@angular/compiler": ["../../dist/packages/compiler"]
}
"@angular/compiler": ["../../../dist/packages/compiler"]
},
"outDir": "../../../dist/packages/compiler"
},
"files": [
"index.ts",
"public_api.ts",
"../../../node_modules/zone.js/dist/zone.js.d.ts"
]
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@angular/compiler/testing"
}
}

View File

@ -3,9 +3,9 @@
"version": "0.0.0-PLACEHOLDER",
"description": "Angular - the core framework",
"main": "./bundles/core.umd.js",
"module": "./@angular/core.es5.js",
"es2015": "./@angular/core.js",
"typings": "./core.d.ts",
"module": "./esm5/index.js",
"es2015": "./esm15/index.js",
"typings": "./index.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {

View File

@ -9,7 +9,7 @@
/**
* @module
* @description
* Entry point for all public APIs of the core package.
* Entry point for all public APIs of this package.
*/
export * from './src/core';

View File

@ -7,6 +7,7 @@
*/
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const globals = {
'rxjs/Observable': 'Rx',
@ -18,12 +19,12 @@ const globals = {
};
export default {
entry: '../../dist/packages-dist/core/@angular/core.es5.js',
entry: '../../dist/packages-dist/core/esm5/index.js',
dest: '../../dist/packages-dist/core/bundles/core.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.core',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,10 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
/**
* @module
* @description
* Entry point for all public APIs of the core/testing package.
*/
// 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 './src/testing';
export * from './public_api';

View File

@ -1,7 +1,7 @@
{
"name": "@angular/core/testing",
"typings": "../testing.d.ts",
"typings": "./index.d.ts",
"main": "../bundles/core-testing.umd.js",
"module": "../@angular/core/testing.es5.js",
"es2015": "../@angular/core/testing.js"
"module": "../esm5/testing/index.js",
"es2015": "../esm15/testing/index.js"
}

View File

@ -0,0 +1,16 @@
/**
* @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';
// This file only reexports content of the `src` folder. Keep it that way.

View File

@ -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/core/@angular/core/testing.es5.js',
entry: '../../../dist/packages-dist/core/esm5/testing/index.js',
dest: '../../../dist/packages-dist/core/bundles/core-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.core.testing',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -1,17 +1,25 @@
{
"extends": "../tsconfig-build",
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "../",
"paths": {
"rxjs/*": ["../../node_modules/rxjs/*"],
"@angular/core": ["../../dist/packages/core"]
}
"rxjs/*": ["../../../node_modules/rxjs/*"],
"@angular/core": ["../../../dist/packages/core"]
},
"outDir": "../../../dist/packages/core"
},
"files": [
"index.ts",
"public_api.ts",
"../../../node_modules/zone.js/dist/zone.js.d.ts",
"../../system.d.ts"
],
"angularCompilerOptions": {
"strictMetadataEmit": true
"strictMetadataEmit": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@angular/core/testing"
}
}

View File

@ -1,40 +1,25 @@
{
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": ".",
"paths": {
"rxjs/*": ["../../node_modules/rxjs/*"]
},
"outDir": "../../dist/packages/core"
},
"files": [
"public_api.ts",
"../../node_modules/zone.js/dist/zone.js.d.ts",
"../system.d.ts"
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@angular/core"
},
"compilerOptions": {
"declaration": true,
"stripInternal": true,
"strictNullChecks": true,
"module": "es2015",
"moduleResolution": "node",
"target": "es2015",
"lib": ["es2015", "dom"],
"skipLibCheck": true,
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
"types": [],
/**
* The rest of the file is configuration that's overridden by bazel.
* It can be removed after we fully migrate.
*/
"baseUrl": ".",
"experimentalDecorators": true,
"outDir": "../../dist/packages/core",
"paths": {
"rxjs/*": ["../../node_modules/rxjs/*"]
},
"rootDir": ".",
"sourceMap": true,
"inlineSources": true
},
"files": [
"public_api.ts",
"../../node_modules/zone.js/dist/zone.js.d.ts",
"../system.d.ts"
]
}
}
}

View File

@ -1,27 +1,19 @@
{
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"stripInternal": true,
"experimentalDecorators": true,
"noImplicitAny": true,
"strictNullChecks": true,
"emitDecoratorMetadata": true,
"module": "commonjs",
"moduleResolution": "node",
"outDir": "../../dist/examples",
"emitDecoratorMetadata": true,
"baseUrl": ".",
"rootDir": ".",
"paths": {
"@angular/*": ["../../dist/packages-dist/*"],
"rxjs/*": ["../../node_modules/rxjs/*"]
},
"rootDir": ".",
"sourceMap": true,
"inlineSources": true,
"target": "es5",
"lib": ["es2015", "dom"],
"skipLibCheck": true,
"outDir": "../../dist/examples",
"types": ["jasmine", "node", "angularjs", "systemjs"]
},
"include": [
"./**/*.ts",
"../../node_modules/zone.js/dist/zone.js.d.ts",

View File

@ -3,9 +3,9 @@
"version": "0.0.0-PLACEHOLDER",
"description": "Angular - directives and services for creating forms",
"main": "./bundles/forms.umd.js",
"module": "./@angular/forms.es5.js",
"es2015": "./@angular/forms.js",
"typings": "./forms.d.ts",
"module": "./esm5/index.js",
"es2015": "./esm15/index.js",
"typings": "./index.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {

View File

@ -9,7 +9,7 @@
/**
* @module
* @description
* Entry point for all public APIs of the forms package.
* Entry point for all public APIs of this package.
*/
export * from './src/forms';

View File

@ -7,6 +7,7 @@
*/
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const globals = {
'@angular/core': 'ng.core',
@ -21,12 +22,12 @@ const globals = {
};
export default {
entry: '../../dist/packages-dist/forms/@angular/forms.es5.js',
entry: '../../dist/packages-dist/forms/esm5/index.js',
dest: '../../dist/packages-dist/forms/bundles/forms.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.forms',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -1,13 +1,9 @@
{
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"stripInternal": true,
"experimentalDecorators": true,
"strictNullChecks": true,
"module": "es2015",
"moduleResolution": "node",
"outDir": "../../dist/packages/forms",
"rootDir": ".",
"paths": {
"@angular/core": ["../../dist/packages/core"],
"@angular/core/testing": ["../../dist/packages/core/testing"],
@ -17,19 +13,14 @@
"@angular/compiler/testing": ["../../dist/packages/compiler/testing"],
"@angular/platform-browser": ["../../dist/packages/platform-browser"]
},
"rootDir": ".",
"sourceMap": true,
"inlineSources": true,
"target": "es2015",
"skipLibCheck": true,
"lib": ["es2015", "dom"],
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
"types": []
"outDir": "../../dist/packages/forms"
},
"files": [
"public_api.ts",
"../../node_modules/zone.js/dist/zone.js.d.ts"
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,

View File

@ -3,9 +3,9 @@
"version": "0.0.0-PLACEHOLDER",
"description": "Angular - the http service",
"main": "./bundles/http.umd.js",
"module": "./@angular/http.es5.js",
"es2015": "./@angular/http.js",
"typings": "./http.d.ts",
"module": "./esm5/index.js",
"es2015": "./esm15/index.js",
"typings": "./index.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {

View File

@ -9,7 +9,7 @@
/**
* @module
* @description
* Entry point for all public APIs of the http package.
* Entry point for all public APIs of this package.
*/
export * from './src/index';

View File

@ -7,6 +7,7 @@
*/
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const globals = {
'@angular/core': 'ng.core',
@ -17,12 +18,12 @@ const globals = {
};
export default {
entry: '../../dist/packages-dist/http/@angular/http.es5.js',
entry: '../../dist/packages-dist/http/esm5/index.js',
dest: '../../dist/packages-dist/http/bundles/http.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.http',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -12,4 +12,4 @@
* Entry point for all public APIs of the http/testing package.
*/
export * from './src/testing';
export * from './public_api';

View File

@ -1,7 +1,7 @@
{
"name": "@angular/http/testing",
"typings": "../testing.d.ts",
"typings": "./index.d.ts",
"main": "../bundles/http-testing.umd.js",
"module": "../@angular/http/testing.es5.js",
"es2015": "../@angular/http/testing.js"
"module": "../esm5/testing/index.js",
"es2015": "../esm15/testing/index.js"
}

View File

@ -9,6 +9,6 @@
/**
* @module
* @description
* Entry point for all public APIs of the http testing package.
* Entry point for all public APIs of this package.
*/
export * from './src/testing';

View File

@ -7,6 +7,7 @@
*/
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const globals = {
'@angular/core': 'ng.core',
@ -20,12 +21,12 @@ const globals = {
};
export default {
entry: '../../../dist/packages-dist/http/@angular/http/testing.es5.js',
entry: '../../../dist/packages-dist/http/esm5/testing/index.js',
dest: '../../../dist/packages-dist/http/bundles/http-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.http.testing',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -1,16 +1,21 @@
{
"extends": "../tsconfig-build",
"extends": "../tsconfig-build.json",
"compilerOptions": {
"strictNullChecks": true,
"baseUrl": ".",
"rootDir": "../",
"paths": {
"@angular/core": ["../../dist/packages/core"],
"@angular/http": ["../../dist/packages/http"],
"rxjs/*": ["../../node_modules/rxjs/*"]
}
"@angular/core": ["../../../dist/packages/core"],
"@angular/http": ["../../../dist/packages/http"],
"rxjs/*": ["../../../node_modules/rxjs/*"]
},
"outDir": "../../../dist/packages/http"
},
"files": [
"public_api.ts"
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,

View File

@ -1,29 +1,22 @@
{
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"stripInternal": true,
"strictNullChecks": true,
"experimentalDecorators": true,
"module": "es2015",
"moduleResolution": "node",
"outDir": "../../dist/packages/http",
"rootDir": ".",
"paths": {
"@angular/core": ["../../dist/packages/core"],
"@angular/common": ["../../dist/packages/common"],
"@angular/platform-browser": ["../../dist/packages/platform-browser"]
},
"rootDir": ".",
"sourceMap": true,
"inlineSources": true,
"target": "es2015",
"skipLibCheck": true,
"lib": ["es2015", "dom"]
"outDir": "../../dist/packages/http"
},
"files": [
"public_api.ts",
"../../node_modules/zone.js/dist/zone.js.d.ts"
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,

View File

@ -3,8 +3,8 @@
"version": "0.0.0-PLACEHOLDER",
"description": "Angular - language services",
"main": "./bundles/language-service.umd.js",
"module": "./@angular/language-service.es5.js",
"typings": "./language-service.d.ts",
"module": "./esm5/index.js",
"typings": "./index.d.ts",
"author": "angular",
"license": "MIT",
"repository": {

View File

@ -7,6 +7,7 @@
*/
import commonjs from 'rollup-plugin-commonjs';
import sourcemaps from 'rollup-plugin-sourcemaps';
import * as path from 'path';
var m = /^\@angular\/((\w|\-)+)(\/(\w|\d|\/|\-)+)?$/;
@ -39,7 +40,8 @@ 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 + '/@angular/' + packageName + '.es5.js';
loc + packageName + '/esm5/' +
'index.js';
// console.log('** ANGULAR MAPPED **: ', r);
return r;
}
@ -69,7 +71,7 @@ module.exports = function(provided) {
`;
export default {
entry: '../../dist/packages-dist/language-service/@angular/language-service.es5.js',
entry: '../../dist/packages-dist/language-service/esm5/index.js',
dest: '../../dist/packages-dist/language-service/bundles/language-service.umd.js',
format: 'amd',
moduleName: 'ng.language_service',
@ -85,5 +87,5 @@ export default {
'fs': 'fs',
},
banner: banner,
plugins: [{resolveId: resolve}, commonjs()]
plugins: [{resolveId: resolve}, commonjs(), sourcemaps()]
}

View File

@ -1,14 +1,10 @@
{
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"stripInternal": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"strictNullChecks": true,
"module": "es2015",
"moduleResolution": "node",
"outDir": "../../dist/packages/language-service",
"baseUrl": ".",
"rootDir": ".",
"paths": {
"@angular/core": ["../../dist/packages/core"],
"@angular/animation": ["../../dist/packages/animation"],
@ -24,13 +20,9 @@
"@angular/tsc-wrapped": ["../../dist/packages-dist/tsc-wrapped"],
"@angular/tsc-wrapped/*": ["../../dist/packages-dist/tsc-wrapped/*"]
},
"rootDir": ".",
"sourceMap": true,
"inlineSources": true,
"target": "es5",
"skipLibCheck": true,
"lib": ["es2015", "dom"]
"outDir": "../../dist/packages/language-service"
},
"files": [
"index.ts",
"../../node_modules/zone.js/dist/zone.js.d.ts",

View File

@ -6,11 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
/**
* @module
* @description
* Entry point for all public APIs of the platform-browser-dynamic package.
*/
export * from './src/platform-browser-dynamic';
// 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.
// This file only reexports content of the `src` folder. Keep it that way.
export * from './public_api';

View File

@ -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": "./@angular/platform-browser-dynamic.es5.js",
"es2015": "./@angular/platform-browser-dynamic.js",
"typings": "./platform-browser-dynamic.d.ts",
"module": "./esm5/index.js",
"es2015": "./esm15/index.js",
"typings": "./index.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {

View File

@ -0,0 +1,16 @@
/**
* @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/platform-browser-dynamic';
// This file only reexports content of the `src` folder. Keep it that way.

View File

@ -7,6 +7,7 @@
*/
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const globals = {
'@angular/core': 'ng.core',
@ -16,13 +17,12 @@ const globals = {
};
export default {
entry:
'../../dist/packages-dist/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js',
entry: '../../dist/packages-dist/platform-browser-dynamic/esm5/index.js',
dest: '../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.platformBrowserDynamic',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -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-dynamic/testing package.
*/
// 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 './src/testing';
export * from './public_api';

View File

@ -1,7 +1,7 @@
{
"name": "@angular/platform-browser-dynamic/testing",
"typings": "../testing.d.ts",
"typings": "./index.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"
"module": "../esm5/testing/index.js",
"es2015": "../esm15/testing/index.js"
}

View File

@ -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';

View File

@ -7,6 +7,7 @@
*/
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const globals = {
'@angular/core': 'ng.core',
@ -20,14 +21,13 @@ const globals = {
};
export default {
entry:
'../../../dist/packages-dist/platform-browser-dynamic/@angular/platform-browser-dynamic/testing.es5.js',
entry: '../../../dist/packages-dist/platform-browser-dynamic/esm5/testing/index.js',
dest:
'../../../dist/packages-dist/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.platformBrowserDynamic.testing',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -1,21 +1,33 @@
{
"extends": "../tsconfig-build",
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "../",
"paths": {
"@angular/core": ["../../dist/packages/core"],
"@angular/core/testing": ["../../dist/packages/core/testing"],
"@angular/common": ["../../dist/packages/common"],
"@angular/common/testing": ["../../dist/packages/common/testing"],
"@angular/compiler": ["../../dist/packages/compiler"],
"@angular/compiler/testing": ["../../dist/packages/compiler/testing"],
"@angular/platform-browser": ["../../dist/packages/platform-browser"],
"@angular/platform-browser/testing": ["../../dist/packages/platform-browser/testing"],
"@angular/platform-browser-dynamic": ["../../dist/packages/platform-browser-dynamic"]
}
"@angular/core": ["../../../dist/packages/core"],
"@angular/core/testing": ["../../../dist/packages/core/testing"],
"@angular/common": ["../../../dist/packages/common"],
"@angular/common/testing": ["../../../dist/packages/common/testing"],
"@angular/compiler": ["../../../dist/packages/compiler"],
"@angular/compiler/testing": ["../../../dist/packages/compiler/testing"],
"@angular/platform-browser": ["../../../dist/packages/platform-browser"],
"@angular/platform-browser/testing": ["../../../dist/packages/platform-browser/testing"],
"@angular/platform-browser-dynamic": ["../../../dist/packages/platform-browser-dynamic"]
},
"outDir": "../../../dist/packages/platform-browser-dynamic"
},
"files": [
"index.ts",
"public_api.ts",
"../../../node_modules/@types/jasmine/index.d.ts",
"../../../node_modules/zone.js/dist/zone.js.d.ts"
]
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@angular/platform-browser-dymamic/testing"
}
}

View File

@ -1,13 +1,9 @@
{
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"stripInternal": true,
"experimentalDecorators": true,
"strictNullChecks": true,
"module": "es2015",
"moduleResolution": "node",
"outDir": "../../dist/packages/platform-browser-dynamic",
"rootDir": ".",
"paths": {
"@angular/core": ["../../dist/packages/core"],
"@angular/core/testing": ["../../dist/packages/core/testing"],
@ -18,18 +14,19 @@
"@angular/platform-browser": ["../../dist/packages/platform-browser"],
"@angular/platform-browser/testing": ["../../dist/packages/platform-browser/testing"]
},
"rootDir": ".",
"sourceMap": true,
"inlineSources": true,
"target": "es2015",
"skipLibCheck": true,
"lib": ["es2015", "dom"],
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
"types": []
"outDir": "../../dist/packages/platform-browser-dynamic"
},
"files": [
"index.ts",
"public_api.ts",
"../../node_modules/@types/jasmine/index.d.ts",
"../../node_modules/zone.js/dist/zone.js.d.ts"
]
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@angular/platform-browser-dynamic"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "@angular/platform-browser/animations",
"typings": "../animations.d.ts",
"typings": "./index.d.ts",
"main": "../bundles/platform-browser-animations.umd.js",
"module": "../@angular/platform-browser/animations.es5.js",
"es2015": "../@angular/platform-browser/animations.js"
"module": "../esm5/animations/index.js",
"es2015": "../esm15/animations/index.js"
}

View File

@ -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';

View File

@ -7,6 +7,7 @@
*/
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const globals = {
'@angular/core': 'ng.core',
@ -17,12 +18,12 @@ const globals = {
};
export default {
entry: '../../../dist/packages-dist/platform-browser/@angular/platform-browser/animations.es5.js',
entry: '../../../dist/packages-dist/platform-browser/esm5/animations/index.js',
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-animations.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.platformBrowser.animations',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -1,21 +1,26 @@
{
"extends": "../tsconfig-build",
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "../",
"paths": {
"rxjs/*": ["../../node_modules/rxjs/*"],
"@angular/core": ["../../dist/packages/core"],
"@angular/core/testing": ["../../dist/packages/core/testing"],
"@angular/animations": ["../../dist/packages/animations"],
"@angular/animations/browser": ["../../dist/packages/animations/browser"],
"@angular/platform-browser": ["../../dist/packages/platform-browser"]
}
"rxjs/*": ["../../../node_modules/rxjs/*"],
"@angular/core": ["../../../dist/packages/core"],
"@angular/core/testing": ["../../../dist/packages/core/testing"],
"@angular/animations": ["../../../dist/packages/animations"],
"@angular/animations/browser": ["../../../dist/packages/animations/browser"],
"@angular/platform-browser": ["../../../dist/packages/platform-browser"]
},
"outDir": "../../../dist/packages/platform-browser"
},
"files": [
"public_api.ts",
"../../../node_modules/zone.js/dist/zone.js.d.ts",
"../../system.d.ts"
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,

View File

@ -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": "./@angular/platform-browser.es5.js",
"es2015": "./@angular/platform-browser.js",
"typings": "./platform-browser.d.ts",
"module": "./esm5/index.js",
"es2015": "./esm15/index.js",
"typings": "./index.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {

View File

@ -9,7 +9,7 @@
/**
* @module
* @description
* Entry point for all public APIs of the platform-browser package.
* Entry point for all public APIs of this package.
*/
export * from './src/platform-browser';
// This file only reexports content of the `src` folder. Keep it that way.

View File

@ -7,6 +7,7 @@
*/
import resolve from 'rollup-plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
const globals = {
'@angular/core': 'ng.core',
@ -14,12 +15,12 @@ const globals = {
};
export default {
entry: '../../dist/packages-dist/platform-browser/@angular/platform-browser.es5.js',
entry: '../../dist/packages-dist/platform-browser/esm5/index.js',
dest: '../../dist/packages-dist/platform-browser/bundles/platform-browser.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.platformBrowser',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -6,10 +6,9 @@
* found in the LICENSE file at https://angular.io/license
*/
/**
* @module
* @description
* Entry point for all public APIs of the core/testing package.
*/
// 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 './src/testing';
export * from './public_api';

View File

@ -1,7 +1,7 @@
{
"name": "@angular/platform-browser/testing",
"typings": "../testing.d.ts",
"typings": "./index.d.ts",
"main": "../bundles/platform-browser-testing.umd.js",
"module": "../@angular/platform-browser/testing.es5.js",
"es2015": "../@angular/platform-browser/testing.js"
"module": "../esm5/testing/index.js",
"es2015": "../esm15/testing/index.js"
}

View File

@ -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';

View File

@ -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/platform-browser/@angular/platform-browser/testing.es5.js',
entry: '../../../dist/packages-dist/platform-browser/esm5/testing/index.js',
dest: '../../../dist/packages-dist/platform-browser/bundles/platform-browser-testing.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'ng.platformBrowser.testing',
plugins: [resolve()],
plugins: [resolve(), sourcemaps()],
external: Object.keys(globals),
globals: globals
};

View File

@ -1,21 +1,30 @@
{
"extends": "../tsconfig-build",
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "../",
"paths": {
"@angular/core": ["../../dist/packages/core"],
"@angular/core/testing": ["../../dist/packages/core/testing"],
"@angular/common": ["../../dist/packages/common"],
"@angular/common/testing": ["../../dist/packages/common/testing"],
"@angular/platform-browser": ["../../dist/packages/platform-browser"]
}
"@angular/core": ["../../../dist/packages/core"],
"@angular/core/testing": ["../../../dist/packages/core/testing"],
"@angular/common": ["../../../dist/packages/common"],
"@angular/common/testing": ["../../../dist/packages/common/testing"],
"@angular/platform-browser": ["../../../dist/packages/platform-browser"]
},
"outDir": "../../../dist/packages/platform-browser"
},
"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/platform-browser/testing"
}
}

View File

@ -1,32 +1,23 @@
{
"extends": "../tsconfig-build.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"stripInternal": true,
"experimentalDecorators": true,
"strictNullChecks": true,
"module": "es2015",
"moduleResolution": "node",
"outDir": "../../dist/packages/platform-browser",
"rootDir": ".",
"paths": {
"@angular/core": ["../../dist/packages/core"],
"@angular/platform-browser/animations": ["../../dist/packages/platform-browser/animations"],
"@angular/common": ["../../dist/packages/common"]
},
"rootDir": ".",
"sourceMap": true,
"inlineSources": true,
"target": "es2015",
"skipLibCheck": true,
"lib": ["es2015", "dom"],
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
"types": []
"outDir": "../../dist/packages/platform-browser"
},
"files": [
"public_api.ts",
"../../node_modules/@types/hammerjs/index.d.ts",
"../../node_modules/zone.js/dist/zone.js.d.ts"
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,

View File

@ -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": "./@angular/platform-server.es5.js",
"es2015": "./@angular/platform-server.js",
"typings": "./platform-server.d.ts",
"module": "./esm5/index.js",
"es2015": "./esm15/index.js",
"typings": "./index.d.ts",
"author": "angular",
"license": "MIT",
"peerDependencies": {

View File

@ -9,7 +9,7 @@
/**
* @module
* @description
* Entry point for all public APIs of the platform-server package.
* Entry point for all public APIs of this package.
*/
export * from './src/platform-server';

Some files were not shown because too many files have changed in this diff Show More