Skip to content
Permalink
Browse files

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
  • Loading branch information...
ayazhafiz authored and matsko committed Sep 6, 2019
1 parent 8ae7f14 commit 1716b913348d00aba535222fda01dccca52a0152
@@ -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"

0 comments on commit 1716b91

Please sign in to comment.
You can’t perform that action at this time.