feat(language-service): add script to rebuild, refresh Angular dist (#32515)

The Language Service integration tests should reinstall the Angular
distribution every time it is built. Adds a `yarn build-dist`
convinience script so building the distribution doesn't have to
happen on the repo root. This new script also refreshes the installed
modules. Building is expesnive, so it is not bundled with testing
scripts.

PR Close #32515
This commit is contained in:
ayazhafiz 2019-09-06 15:12:58 -05:00 committed by Matias Niemelä
parent 8ae7f14252
commit 1716b91334
2 changed files with 4 additions and 3 deletions

View File

@ -7,9 +7,9 @@ To use the tests:
- Use `yarn install` to install all dependencies in this directory and in the Angular repo root
directory.
- From the Angular repo root directory, build Angular in the `dist/packages-dist` folder with
`./scripts/build-packages-dist.sh`.
- In this directory, run the tests with `yarn test`.
- Build an Angular distribution with `yarn build-dist`. This needs to be done after changes to
Angular, but not after changes to integration tests. This is an expensive build.
- In this directory, run the integration tests with `yarn test`.
## Update golden files

View File

@ -12,6 +12,7 @@
},
"scripts": {
"build": "tsc -p tsconfig.json",
"build-dist": "../../scripts/build-packages-dist.sh && 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"