a574e462c9
The `setup-local` npm script uses `NgPackagesInstaller` to replace the Angular packages with the locally built ones. Previously, it would (a) assume that the packages were built and (b) it would do anything if the currently installed versions already correspond to locally built packages (even if not the latest version). This could lead to all sorts of errors, such as: - Confusing error messages, `dist/packages-dist/` was missing. - Using outdated build artifacts from `dist/packages-dist/` without a warning. - Not installing the latest locally built packages, because the ones installed already corresponded to locally built (but older) ones. This commit fixes these issues by ensuring that: - The local packages are always built before being used by `NgPackagesInstaller`. - The local packages are installed, even if the ones install already correspond to local packages. NOTE: Special `*-ci` scripts are introduced (for use on CI) that skip building the local packages, since that step would have been taken care of (in a more efficient way) in a previous CI step. PR Close #31985
177 lines
8.1 KiB
JSON
177 lines
8.1 KiB
JSON
{
|
|
"name": "angular.io",
|
|
"version": "0.0.0",
|
|
"main": "index.js",
|
|
"repository": "git@github.com:angular/angular.git",
|
|
"author": "Angular",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"preinstall": "node ../tools/yarn/check-yarn.js",
|
|
"postinstall": "node tools/cli-patches/patch.js",
|
|
"aio-use-local": "node tools/ng-packages-installer overwrite . --debug --force --build-packages",
|
|
"aio-use-npm": "node tools/ng-packages-installer restore .",
|
|
"aio-check-local": "node tools/ng-packages-installer check .",
|
|
"ng": "yarn check-env && ng",
|
|
"start": "yarn check-env && ng serve --configuration=fast",
|
|
"prebuild": "yarn setup",
|
|
"build": "yarn ~~build",
|
|
"prebuild-local": "yarn setup-local",
|
|
"build-local": "yarn ~~build",
|
|
"prebuild-local-ci": "yarn setup-local --no-build-packages",
|
|
"build-local-ci": "yarn ~~build --progress=false",
|
|
"prebuild-with-ivy": "yarn setup-local && node scripts/switch-to-ivy",
|
|
"build-with-ivy": "yarn ~~build",
|
|
"prebuild-with-ivy-ci": "yarn setup-local --no-build-packages && node scripts/switch-to-ivy",
|
|
"build-with-ivy-ci": "yarn ~~build --progress=false",
|
|
"extract-cli-command-docs": "node tools/transforms/cli-docs-package/extract-cli-commands.js 403bcb01c",
|
|
"lint": "yarn check-env && yarn docs-lint && ng lint && yarn example-lint && yarn tools-lint",
|
|
"test": "yarn check-env && ng test",
|
|
"pree2e": "yarn check-env && yarn update-webdriver",
|
|
"e2e": "ng e2e --no-webdriver-update",
|
|
"presetup": "yarn --cwd .. install && yarn install --frozen-lockfile && yarn ~~check-env && yarn ~~clean-generated && yarn boilerplate:remove",
|
|
"setup": "yarn example-use-npm && yarn aio-use-npm",
|
|
"postsetup": "yarn boilerplate:add && yarn extract-cli-command-docs && yarn docs",
|
|
"presetup-local": "yarn presetup",
|
|
"setup-local": "yarn example-use-local && yarn aio-use-local",
|
|
"postsetup-local": "yarn postsetup",
|
|
"set-opensearch-url": "node --eval \"const sh = require('shelljs'); sh.set('-e'); sh.sed('-i', /PLACEHOLDER_URL/g, process.argv[1], 'dist/assets/opensearch.xml');\"",
|
|
"presmoke-tests": "yarn update-webdriver",
|
|
"smoke-tests": "protractor tests/deployment/e2e/protractor.conf.js --suite smoke --baseUrl",
|
|
"test-a11y-score": "node scripts/test-aio-a11y",
|
|
"test-a11y-score-localhost": "run-p --race \"~~light-server -s dist -p 4200 --quiet\" \"test-a11y-score http://localhost:4200\" --",
|
|
"test-pwa-score": "run-s \"~~audit-web-app {1} all:0,pwa:{2} {3}\" --",
|
|
"test-pwa-score-localhost": "run-p --race \"~~light-server -s dist -p 4200 --quiet\" \"test-pwa-score http://localhost:4200 {1} {2}\" --",
|
|
"example-e2e": "yarn example-check-local && node ./tools/examples/run-example-e2e",
|
|
"example-lint": "tslint --config \"content/examples/tslint.json\" \"content/examples/**/*.ts\" --exclude \"content/examples/styleguide/**/*.avoid.ts\"",
|
|
"example-use-local": "node tools/ng-packages-installer overwrite ./tools/examples/shared --debug --force",
|
|
"example-use-npm": "node tools/ng-packages-installer restore ./tools/examples/shared",
|
|
"example-check-local": "node tools/ng-packages-installer check ./tools/examples/shared",
|
|
"deploy-production": "scripts/deploy-to-firebase.sh",
|
|
"check-env": "yarn ~~check-env",
|
|
"postcheck-env": "yarn aio-check-local",
|
|
"payload-size": "scripts/payload.sh",
|
|
"predocs": "node scripts/contributors/check-pictures && yarn generate-stackblitz && yarn generate-zips",
|
|
"docs": "yarn docs-only",
|
|
"docs-only": "dgeni ./tools/transforms/angular.io-package",
|
|
"docs-watch": "node tools/transforms/authors-package/watchr.js",
|
|
"docs-lint": "eslint --ignore-path=\"tools/transforms/.eslintignore\" tools/transforms",
|
|
"docs-test": "node tools/transforms/test.js",
|
|
"redirects-test": "jasmine-ts --project=tests/deployment/unit tests/deployment/unit/**/*.spec.ts",
|
|
"firebase-utils-test": "jasmine-ts --project=tools/firebase-test-utils tools/firebase-test-utils/*.spec.ts",
|
|
"tools-lint": "tslint --config \"tools/tslint.json\" --project \"tools/firebase-test-utils\"",
|
|
"tools-test": "./scripts/deploy-to-firebase.test.sh && yarn docs-test && yarn boilerplate:test && jasmine tools/ng-packages-installer/index.spec.js && yarn firebase-utils-test",
|
|
"preserve-and-sync": "yarn docs",
|
|
"serve-and-sync": "run-p \"start\" \"docs-watch --watch-only\"",
|
|
"boilerplate:add": "node ./tools/examples/example-boilerplate add",
|
|
"boilerplate:add:ivy": "yarn boilerplate:add --ivy",
|
|
"boilerplate:remove": "node ./tools/examples/example-boilerplate remove",
|
|
"boilerplate:test": "node tools/examples/test.js",
|
|
"generate-stackblitz": "node ./tools/stackblitz-builder/generateStackblitz",
|
|
"generate-zips": "node ./tools/example-zipper/generateZips",
|
|
"build-404-page": "node scripts/build-404-page",
|
|
"update-webdriver": "webdriver-manager update --standalone false --gecko false $CI_CHROMEDRIVER_VERSION_ARG",
|
|
"~~audit-web-app": "node scripts/audit-web-app",
|
|
"~~check-env": "node scripts/check-environment",
|
|
"~~clean-generated": "node --eval \"require('shelljs').rm('-rf', 'src/generated')\"",
|
|
"~~build": "ng build --configuration=stable",
|
|
"post~~build": "yarn build-404-page",
|
|
"~~light-server": "light-server --bind=localhost --historyindex=/index.html --no-reload"
|
|
},
|
|
"engines": {
|
|
"node": ">=10.9.0 <11.0.0",
|
|
"yarn": ">=1.12.1 <=1.16.0"
|
|
},
|
|
"private": true,
|
|
"dependencies": {
|
|
"@angular/animations": "^8.1.0-next.1",
|
|
"@angular/cdk": "8.0.0",
|
|
"@angular/common": "^8.1.0-next.1",
|
|
"@angular/core": "^8.1.0-next.1",
|
|
"@angular/elements": "^8.1.0-next.1",
|
|
"@angular/forms": "^8.1.0-next.1",
|
|
"@angular/material": "8.0.0",
|
|
"@angular/platform-browser": "^8.1.0-next.1",
|
|
"@angular/platform-browser-dynamic": "^8.1.0-next.1",
|
|
"@angular/router": "^8.1.0-next.1",
|
|
"@angular/service-worker": "^8.1.0-next.1",
|
|
"@types/lunr": "^2.3.2",
|
|
"@webcomponents/custom-elements": "^1.2.0",
|
|
"rxjs": "^6.5.2",
|
|
"zone.js": "^0.9.1"
|
|
},
|
|
"devDependencies": {
|
|
"@angular-devkit/build-angular": "0.801.0-beta.2",
|
|
"@angular/cli": "8.1.0-beta.2",
|
|
"@angular/compiler": "^8.1.0-next.1",
|
|
"@angular/compiler-cli": "^8.1.0-next.1",
|
|
"@angular/language-service": "^8.1.0-next.1",
|
|
"@types/jasmine": "^2.5.52",
|
|
"@types/jasminewd2": "^2.0.4",
|
|
"@types/node": "~6.0.60",
|
|
"@types/xregexp": "^3.0.29",
|
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
"archiver": "^1.3.0",
|
|
"canonical-path": "1.0.0",
|
|
"chalk": "^2.1.0",
|
|
"chrome-launcher": "^0.10.7",
|
|
"cjson": "^0.5.0",
|
|
"codelyzer": "^5.0.0",
|
|
"cross-spawn": "^5.1.0",
|
|
"css-selector-parser": "^1.3.0",
|
|
"dgeni": "^0.4.11",
|
|
"dgeni-packages": "^0.27.5",
|
|
"entities": "^1.1.1",
|
|
"eslint": "^3.19.0",
|
|
"eslint-plugin-jasmine": "^2.2.0",
|
|
"find-free-port": "^2.0.0",
|
|
"firebase-tools": "^5.1.1",
|
|
"fs-extra": "^2.1.2",
|
|
"globby": "^6.1.0",
|
|
"hast-util-is-element": "^1.0.0",
|
|
"hast-util-to-string": "^1.0.0",
|
|
"html": "^1.0.0",
|
|
"ignore": "^3.3.3",
|
|
"image-size": "^0.5.1",
|
|
"jasmine": "^3.4.0",
|
|
"jasmine-core": "^3.4.0",
|
|
"jasmine-spec-reporter": "^4.2.1",
|
|
"jasmine-ts": "^0.2.1",
|
|
"jsdom": "^9.12.0",
|
|
"json-schema-traverse": "^0.4.1",
|
|
"json5": "^1.0.1",
|
|
"karma": "^4.1.0",
|
|
"karma-chrome-launcher": "^2.2.0",
|
|
"karma-cli": "^2.0.0",
|
|
"karma-coverage-istanbul-reporter": "^2.0.5",
|
|
"karma-jasmine": "^2.0.1",
|
|
"karma-jasmine-html-reporter": "^1.4.2",
|
|
"light-server": "^2.6.2",
|
|
"lighthouse": "^5.1.0",
|
|
"lighthouse-logger": "^1.2.0",
|
|
"lodash": "^4.17.4",
|
|
"lunr": "^2.1.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"protractor": "^5.2.0",
|
|
"rehype": "^6.0.0",
|
|
"rehype-slug": "^2.0.0",
|
|
"remark": "^9.0.0",
|
|
"remark-html": "^8.0.0",
|
|
"rimraf": "^2.6.1",
|
|
"semver": "^5.3.0",
|
|
"shelljs": "^0.7.7",
|
|
"tree-kill": "^1.1.0",
|
|
"ts-node": "^3.3.0",
|
|
"tslib": "^1.9.0",
|
|
"tslint": "~5.15.0",
|
|
"typescript": "~3.4.5",
|
|
"uglify-js": "^3.0.15",
|
|
"unist-util-filter": "^0.2.1",
|
|
"unist-util-source": "^1.0.1",
|
|
"unist-util-visit": "^1.1.1",
|
|
"unist-util-visit-parents": "^1.1.1",
|
|
"watchr": "^3.0.1",
|
|
"xregexp": "^4.0.0",
|
|
"yargs": "^7.0.2"
|
|
}
|
|
}
|