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:
parent
8ae7f14252
commit
1716b91334
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue