build: move build scripts to dedicated directory (#35780)
This commit moves the build-related scripts (`build-ivy-npm-packages.js`, `build-packages-dist.js` and `package-builder.js`) to a dedicated directory to keep the `scripts/` directory cleaner. It also moves the logic for building the `zone.js` package to a separate script, `zone-js-builder.js`, to make it re-usable. A subsequent commit will use it to build the `zone.js` package when building the Ivy Angular packages as well. PR Close #35780
This commit is contained in:
@@ -4,7 +4,7 @@ This directory contains end-to-end tests for Angular. Each directory is a self-c
|
||||
that exactly mimics how a user might expect Angular to work, so they allow high-fidelity
|
||||
reproductions of real-world issues.
|
||||
|
||||
For this to work, we first build the Angular distribution via `./scripts/build-packages-dist.js`, then
|
||||
For this to work, we first build the Angular distribution via `./scripts/build/build-packages-dist.js`, then
|
||||
install the distribution into each app.
|
||||
|
||||
To test Angular CLI applications, we use the `cli-hello-world-*` integration tests.
|
||||
|
||||
@@ -11,7 +11,7 @@ set -u -e -o pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
node $(pwd)/../../scripts/build-packages-dist.js
|
||||
node $(pwd)/../../scripts/build/build-packages-dist.js
|
||||
|
||||
# Workaround https://github.com/yarnpkg/yarn/issues/2165
|
||||
# Yarn will cache file://dist URIs and not update Angular code
|
||||
|
||||
@@ -11,7 +11,7 @@ set -u -e -o pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
node $(pwd)/../../scripts/build-packages-dist.js
|
||||
node $(pwd)/../../scripts/build/build-packages-dist.js
|
||||
|
||||
# Workaround https://github.com/yarnpkg/yarn/issues/2165
|
||||
# Yarn will cache file://dist URIs and not update Angular code
|
||||
|
||||
@@ -11,7 +11,7 @@ set -u -e -o pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
node $(pwd)/../../scripts/build-packages-dist.js
|
||||
node $(pwd)/../../scripts/build/build-packages-dist.js
|
||||
|
||||
# Workaround https://github.com/yarnpkg/yarn/issues/2165
|
||||
# Yarn will cache file://dist URIs and not update Angular code
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"build-dist": "node ../../scripts/build-packages-dist.js && yarn install --check-files",
|
||||
"build-dist": "node ../../scripts/build/build-packages-dist.js && yarn install --check-files",
|
||||
"cleanup": "rm -rf ti-*.log tsserver.log",
|
||||
"golden": "yarn build && node generate.js",
|
||||
"test": "yarn cleanup && yarn build && jasmine test.js"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"build-dist": "node ../../scripts/build-packages-dist.js && yarn install --check-files",
|
||||
"build-dist": "node ../../scripts/build/build-packages-dist.js && yarn install --check-files",
|
||||
"test": "yarn build && node test.js"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ set -u -e -o pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
node $(pwd)/../../scripts/build-packages-dist.js
|
||||
node $(pwd)/../../scripts/build/build-packages-dist.js
|
||||
|
||||
# Workaround https://github.com/yarnpkg/yarn/issues/2165
|
||||
# Yarn will cache file://dist URIs and not update Angular code
|
||||
|
||||
@@ -34,7 +34,7 @@ if $CI; then
|
||||
else
|
||||
# Not on CircleCI so let's build the packages-dist directory.
|
||||
# This should be fast on incremental re-build.
|
||||
node ${basedir}/scripts/build-packages-dist.js
|
||||
node ${basedir}/scripts/build/build-packages-dist.js
|
||||
|
||||
# If we aren't running on CircleCI, we do not shard tests because this would be the job of
|
||||
# Bazel eventually. For now, we just run all tests sequentially when running locally.
|
||||
|
||||
Reference in New Issue
Block a user