2017-01-25 06:04:30 -05:00
|
|
|
{
|
|
|
|
"name": "angular.io",
|
|
|
|
"version": "0.0.0",
|
2017-01-25 12:39:01 -05:00
|
|
|
"main": "index.js",
|
|
|
|
"repository": "git@github.com:angular/angular.git",
|
|
|
|
"author": "Angular",
|
2017-01-25 06:04:30 -05:00
|
|
|
"license": "MIT",
|
2017-01-27 03:20:51 -05:00
|
|
|
"scripts": {
|
2018-11-23 14:03:21 -05:00
|
|
|
"postinstall": "node tools/cli-patches/patch.js",
|
2019-08-03 11:14:40 -04:00
|
|
|
"aio-use-local": "node tools/ng-packages-installer overwrite . --debug --force --build-packages",
|
2017-10-24 06:43:52 -04:00
|
|
|
"aio-use-npm": "node tools/ng-packages-installer restore .",
|
2017-10-06 08:37:56 -04:00
|
|
|
"aio-check-local": "node tools/ng-packages-installer check .",
|
2017-03-03 06:18:15 -05:00
|
|
|
"ng": "yarn check-env && ng",
|
2018-04-27 07:42:01 -04:00
|
|
|
"start": "yarn check-env && ng serve --configuration=fast",
|
2019-01-09 07:52:26 -05:00
|
|
|
"prebuild": "yarn setup",
|
|
|
|
"build": "yarn ~~build",
|
2017-08-15 20:34:53 -04:00
|
|
|
"prebuild-local": "yarn setup-local",
|
2019-01-09 07:52:26 -05:00
|
|
|
"build-local": "yarn ~~build",
|
build(docs-infra): ensure `setup-local` and similar scripts build local packages (#33206)
The `setup-local` scripts (and others that are based on it, such as
`setup-local-viewengine`), mainly does two things: Replace the Angular
packages with the locally built ones for `aio/` and the docs examples
(`aio/tools/examples/shared/`). It does this by calling two other npm
scripts: `aio-use-local` and `example-use-local` respectively.
For these scripts to work, the local Angular packages must be already
built (via `scripts/build-packages-dist.sh`). In order to make it easier
for people to test against local packages, the scripts support a
`--build-packages` option, that (if passed) will result in building the
local packages as well.
Given that the same local packages are used for both `aio/` and the
examples, we only need to build the packages once. Also, to speed up
execution on CI, we do not need to build the packages there, because the
packages would have been built already in a previous CI job.
However, the various setup npm scripts were not implemented correctly to
meet these requirements. Specifically, when running locally,
`aio-use-local` would build the packages, while `example-use-local`
would not (it was supposed to use the already built packages from
`aio-use-local`). The `example-use-local` script, though, was configured
to run before `aio-use-local`. As a result, the packages were not built,
by the time `example-use-local` needed them, which would cause an error.
This commit fixes it by ensuring that `aio-use-local` (which builds the
local Angular packages) runs before `example-use-local`, so that the
latter can use the same packages already built by the former.
PR Close #33206
2019-10-16 16:15:40 -04:00
|
|
|
"prebuild-local-ci": "yarn setup-local-ci",
|
2019-08-03 11:14:40 -04:00
|
|
|
"build-local-ci": "yarn ~~build --progress=false",
|
2021-05-19 07:05:15 -04:00
|
|
|
"extract-cli-command-docs": "node tools/transforms/cli-docs-package/extract-cli-commands.js 9cbb4059f",
|
2018-01-25 05:13:30 -05:00
|
|
|
"lint": "yarn check-env && yarn docs-lint && ng lint && yarn example-lint && yarn tools-lint",
|
2017-04-21 15:20:02 -04:00
|
|
|
"test": "yarn check-env && ng test",
|
2018-02-27 18:24:07 -05:00
|
|
|
"pree2e": "yarn check-env && yarn update-webdriver",
|
2017-06-14 11:34:13 -04:00
|
|
|
"e2e": "ng e2e --no-webdriver-update",
|
2018-09-06 05:54:53 -04:00
|
|
|
"presetup": "yarn --cwd .. install && yarn install --frozen-lockfile && yarn ~~check-env && yarn ~~clean-generated && yarn boilerplate:remove",
|
2019-08-03 11:14:40 -04:00
|
|
|
"setup": "yarn example-use-npm && yarn aio-use-npm",
|
2019-04-24 08:27:23 -04:00
|
|
|
"postsetup": "yarn boilerplate:add && yarn extract-cli-command-docs && yarn docs",
|
2017-08-15 20:34:53 -04:00
|
|
|
"presetup-local": "yarn presetup",
|
build(docs-infra): ensure `setup-local` and similar scripts build local packages (#33206)
The `setup-local` scripts (and others that are based on it, such as
`setup-local-viewengine`), mainly does two things: Replace the Angular
packages with the locally built ones for `aio/` and the docs examples
(`aio/tools/examples/shared/`). It does this by calling two other npm
scripts: `aio-use-local` and `example-use-local` respectively.
For these scripts to work, the local Angular packages must be already
built (via `scripts/build-packages-dist.sh`). In order to make it easier
for people to test against local packages, the scripts support a
`--build-packages` option, that (if passed) will result in building the
local packages as well.
Given that the same local packages are used for both `aio/` and the
examples, we only need to build the packages once. Also, to speed up
execution on CI, we do not need to build the packages there, because the
packages would have been built already in a previous CI job.
However, the various setup npm scripts were not implemented correctly to
meet these requirements. Specifically, when running locally,
`aio-use-local` would build the packages, while `example-use-local`
would not (it was supposed to use the already built packages from
`aio-use-local`). The `example-use-local` script, though, was configured
to run before `aio-use-local`. As a result, the packages were not built,
by the time `example-use-local` needed them, which would cause an error.
This commit fixes it by ensuring that `aio-use-local` (which builds the
local Angular packages) runs before `example-use-local`, so that the
latter can use the same packages already built by the former.
PR Close #33206
2019-10-16 16:15:40 -04:00
|
|
|
"setup-local": "yarn aio-use-local && yarn example-use-local",
|
2017-08-15 20:34:53 -04:00
|
|
|
"postsetup-local": "yarn postsetup",
|
build(docs-infra): ensure `setup-local` and similar scripts build local packages (#33206)
The `setup-local` scripts (and others that are based on it, such as
`setup-local-viewengine`), mainly does two things: Replace the Angular
packages with the locally built ones for `aio/` and the docs examples
(`aio/tools/examples/shared/`). It does this by calling two other npm
scripts: `aio-use-local` and `example-use-local` respectively.
For these scripts to work, the local Angular packages must be already
built (via `scripts/build-packages-dist.sh`). In order to make it easier
for people to test against local packages, the scripts support a
`--build-packages` option, that (if passed) will result in building the
local packages as well.
Given that the same local packages are used for both `aio/` and the
examples, we only need to build the packages once. Also, to speed up
execution on CI, we do not need to build the packages there, because the
packages would have been built already in a previous CI job.
However, the various setup npm scripts were not implemented correctly to
meet these requirements. Specifically, when running locally,
`aio-use-local` would build the packages, while `example-use-local`
would not (it was supposed to use the already built packages from
`aio-use-local`). The `example-use-local` script, though, was configured
to run before `aio-use-local`. As a result, the packages were not built,
by the time `example-use-local` needed them, which would cause an error.
This commit fixes it by ensuring that `aio-use-local` (which builds the
local Angular packages) runs before `example-use-local`, so that the
latter can use the same packages already built by the former.
PR Close #33206
2019-10-16 16:15:40 -04:00
|
|
|
"presetup-local-ci": "yarn presetup-local",
|
|
|
|
"setup-local-ci": "yarn aio-use-local --no-build-packages && yarn example-use-local",
|
|
|
|
"postsetup-local-ci": "yarn postsetup-local",
|
2018-08-30 12:32:32 -04:00
|
|
|
"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');\"",
|
2018-10-22 08:33:40 -04:00
|
|
|
"presmoke-tests": "yarn update-webdriver",
|
|
|
|
"smoke-tests": "protractor tests/deployment/e2e/protractor.conf.js --suite smoke --baseUrl",
|
2019-07-03 19:34:32 -04:00
|
|
|
"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\" --",
|
2019-07-03 17:43:50 -04:00
|
|
|
"test-pwa-score": "run-s \"~~audit-web-app {1} all:0,pwa:{2} {3}\" --",
|
2019-07-03 19:34:32 -04:00
|
|
|
"test-pwa-score-localhost": "run-p --race \"~~light-server -s dist -p 4200 --quiet\" \"test-pwa-score http://localhost:4200 {1} {2}\" --",
|
2017-10-06 08:37:56 -04:00
|
|
|
"example-e2e": "yarn example-check-local && node ./tools/examples/run-example-e2e",
|
2019-04-24 08:27:24 -04:00
|
|
|
"example-lint": "tslint --config \"content/examples/tslint.json\" \"content/examples/**/*.ts\" --exclude \"content/examples/styleguide/**/*.avoid.ts\"",
|
2019-08-03 11:14:40 -04:00
|
|
|
"example-use-local": "node tools/ng-packages-installer overwrite ./tools/examples/shared --debug --force",
|
2017-10-06 08:37:56 -04:00
|
|
|
"example-use-npm": "node tools/ng-packages-installer restore ./tools/examples/shared",
|
|
|
|
"example-check-local": "node tools/ng-packages-installer check ./tools/examples/shared",
|
2020-10-28 06:23:51 -04:00
|
|
|
"deploy-production": "node scripts/deploy-to-firebase",
|
2017-08-15 20:34:53 -04:00
|
|
|
"check-env": "yarn ~~check-env",
|
2017-10-06 08:37:56 -04:00
|
|
|
"postcheck-env": "yarn aio-check-local",
|
2017-05-23 20:20:56 -04:00
|
|
|
"payload-size": "scripts/payload.sh",
|
2021-01-11 01:34:58 -05:00
|
|
|
"predocs": "node scripts/contributors/validate-data && yarn generate-stackblitz && yarn generate-zips",
|
2018-09-14 05:04:39 -04:00
|
|
|
"docs": "yarn docs-only",
|
|
|
|
"docs-only": "dgeni ./tools/transforms/angular.io-package",
|
2017-04-16 16:31:21 -04:00
|
|
|
"docs-watch": "node tools/transforms/authors-package/watchr.js",
|
|
|
|
"docs-lint": "eslint --ignore-path=\"tools/transforms/.eslintignore\" tools/transforms",
|
2017-06-21 09:18:26 -04:00
|
|
|
"docs-test": "node tools/transforms/test.js",
|
2019-10-03 05:39:43 -04:00
|
|
|
"redirects-test": "node tests/deployment/unit/test",
|
|
|
|
"firebase-utils-test": "node tools/firebase-test-utils/test",
|
2021-04-05 12:05:54 -04:00
|
|
|
"tools-lint": "tslint --config \"tools/tslint.json\" --project \"tools/firebase-test-utils\" && eslint tools/ng-packages-installer",
|
2020-10-28 06:23:51 -04:00
|
|
|
"tools-test": "yarn docs-test && yarn boilerplate:test && jasmine tools/ng-packages-installer/index.spec.js && jasmine scripts/deploy-to-firebase.spec.js && yarn firebase-utils-test",
|
2018-01-26 11:05:52 -05:00
|
|
|
"preserve-and-sync": "yarn docs",
|
2020-10-09 14:04:43 -04:00
|
|
|
"serve-and-sync": "run-p \"docs-watch --watch-only\" \"start {@}\" --",
|
2017-07-27 03:29:17 -04:00
|
|
|
"boilerplate:add": "node ./tools/examples/example-boilerplate add",
|
|
|
|
"boilerplate:remove": "node ./tools/examples/example-boilerplate remove",
|
|
|
|
"boilerplate:test": "node tools/examples/test.js",
|
2017-11-03 13:08:28 -04:00
|
|
|
"generate-stackblitz": "node ./tools/stackblitz-builder/generateStackblitz",
|
2017-05-11 16:21:27 -04:00
|
|
|
"generate-zips": "node ./tools/example-zipper/generateZips",
|
2020-10-15 07:05:14 -04:00
|
|
|
"create-example": "node ./tools/examples/create-example.js",
|
2018-04-05 07:24:37 -04:00
|
|
|
"build-404-page": "node scripts/build-404-page",
|
2020-02-07 06:38:58 -05:00
|
|
|
"update-webdriver": "node ../scripts/webdriver-manager-update.js",
|
2019-07-03 17:43:50 -04:00
|
|
|
"~~audit-web-app": "node scripts/audit-web-app",
|
2017-08-15 20:34:53 -04:00
|
|
|
"~~check-env": "node scripts/check-environment",
|
2018-09-06 05:54:53 -04:00
|
|
|
"~~clean-generated": "node --eval \"require('shelljs').rm('-rf', 'src/generated')\"",
|
2021-03-11 06:42:35 -05:00
|
|
|
"pre~~build": "yarn ~~build-ce-es5-polyfills",
|
2019-01-09 07:52:26 -05:00
|
|
|
"~~build": "ng build --configuration=stable",
|
2018-09-27 09:35:05 -04:00
|
|
|
"post~~build": "yarn build-404-page",
|
2021-03-11 06:42:35 -05:00
|
|
|
"~~build-ce-es5-polyfills": "esbuild src/custom-elements-es5-polyfills.js --bundle --minify | swc --config=minify=true --filename=custom-elements-es5-polyfills.js --out-file=src/generated/js/custom-elements-es5-polyfills.js --no-swcrc",
|
2019-07-03 19:34:32 -04:00
|
|
|
"~~light-server": "light-server --bind=localhost --historyindex=/index.html --no-reload"
|
2017-01-27 03:20:51 -05:00
|
|
|
},
|
2019-12-04 15:05:53 -05:00
|
|
|
"//engines-comment": "Keep this in sync with /package.json and /aio/tools/examples/shared/package.json",
|
2017-06-14 11:34:13 -04:00
|
|
|
"engines": {
|
2021-05-26 16:27:43 -04:00
|
|
|
"node": ">=14.0.0",
|
2021-04-06 18:51:45 -04:00
|
|
|
"yarn": ">=1.22.4 <2",
|
|
|
|
"npm": "Please use yarn instead of NPM to install dependencies"
|
2017-06-14 11:34:13 -04:00
|
|
|
},
|
2017-01-27 03:20:51 -05:00
|
|
|
"private": true,
|
|
|
|
"dependencies": {
|
2021-05-27 01:23:04 -04:00
|
|
|
"@angular/animations": "12.0.2",
|
|
|
|
"@angular/cdk": "12.0.2",
|
|
|
|
"@angular/common": "12.0.2",
|
|
|
|
"@angular/compiler": "12.0.2",
|
|
|
|
"@angular/core": "12.0.2",
|
|
|
|
"@angular/elements": "12.0.2",
|
|
|
|
"@angular/forms": "12.0.2",
|
|
|
|
"@angular/material": "12.0.2",
|
|
|
|
"@angular/platform-browser": "12.0.2",
|
|
|
|
"@angular/platform-browser-dynamic": "12.0.2",
|
|
|
|
"@angular/router": "12.0.2",
|
|
|
|
"@angular/service-worker": "12.0.2",
|
2021-04-05 05:57:24 -04:00
|
|
|
"@webcomponents/custom-elements": "1.4.3",
|
|
|
|
"rxjs": "^6.6.7",
|
2021-03-16 15:10:32 -04:00
|
|
|
"tslib": "^2.1.0",
|
2021-02-15 04:08:30 -05:00
|
|
|
"zone.js": "~0.11.4"
|
2017-01-27 03:20:51 -05:00
|
|
|
},
|
2017-01-25 06:04:30 -05:00
|
|
|
"devDependencies": {
|
2021-05-27 01:23:04 -04:00
|
|
|
"@angular-devkit/build-angular": "12.0.2",
|
|
|
|
"@angular/cli": "12.0.2",
|
|
|
|
"@angular/compiler-cli": "12.0.2",
|
2021-04-05 05:57:24 -04:00
|
|
|
"@swc/cli": "^0.1.36",
|
|
|
|
"@swc/core": "^1.2.51",
|
2021-05-07 01:05:02 -04:00
|
|
|
"@types/jasmine": "~3.7.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"@types/lunr": "^2.3.3",
|
2019-10-03 05:39:43 -04:00
|
|
|
"@types/node": "^12.7.9",
|
2021-03-28 15:34:09 -04:00
|
|
|
"@types/stemmer": "^1.0.2",
|
2021-04-05 05:57:24 -04:00
|
|
|
"@types/xregexp": "^4.3.0",
|
2019-02-04 09:45:45 -05:00
|
|
|
"@yarnpkg/lockfile": "^1.1.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"archiver": "^5.3.0",
|
2021-04-22 07:16:46 -04:00
|
|
|
"assert": "^2.0.0",
|
2018-10-24 08:24:14 -04:00
|
|
|
"canonical-path": "1.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"chalk": "^4.1.0",
|
2018-01-25 05:13:30 -05:00
|
|
|
"cjson": "^0.5.0",
|
2020-09-27 08:20:48 -04:00
|
|
|
"codelyzer": "^6.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"cross-spawn": "^7.0.3",
|
|
|
|
"css-selector-parser": "^1.4.1",
|
|
|
|
"dgeni": "^0.4.14",
|
2021-04-27 05:02:37 -04:00
|
|
|
"dgeni-packages": "^0.29.1",
|
2021-04-05 05:57:24 -04:00
|
|
|
"entities": "^2.2.0",
|
2021-05-18 04:00:38 -04:00
|
|
|
"esbuild": "^0.12.0",
|
2021-04-05 12:05:54 -04:00
|
|
|
"eslint": "^7.23.0",
|
|
|
|
"eslint-plugin-jasmine": "^4.1.2",
|
2019-03-04 14:33:25 -05:00
|
|
|
"find-free-port": "^2.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"firebase-tools": "^9.8.0",
|
2021-05-06 02:52:10 -04:00
|
|
|
"fs-extra": "^10.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"globby": "^11.0.3",
|
|
|
|
"hast-util-is-element": "^1.1.0",
|
|
|
|
"hast-util-to-string": "^1.0.4",
|
2017-04-01 14:32:48 -04:00
|
|
|
"html": "^1.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"ignore": "^5.1.8",
|
2021-04-15 03:22:10 -04:00
|
|
|
"image-size": "^1.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"jasmine": "~3.7.0",
|
|
|
|
"jasmine-core": "~3.7.1",
|
2021-04-14 03:35:12 -04:00
|
|
|
"jasmine-spec-reporter": "~7.0.0",
|
2021-04-19 11:49:42 -04:00
|
|
|
"jsdom": "^16.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"json-schema-traverse": "^1.0.0",
|
|
|
|
"json5": "^2.2.0",
|
|
|
|
"karma": "~6.3.2",
|
2020-11-18 10:24:35 -05:00
|
|
|
"karma-chrome-launcher": "~3.1.0",
|
2020-11-18 05:36:06 -05:00
|
|
|
"karma-coverage": "~2.0.3",
|
2020-09-27 08:20:48 -04:00
|
|
|
"karma-jasmine": "~4.0.0",
|
2020-11-18 10:24:35 -05:00
|
|
|
"karma-jasmine-html-reporter": "^1.5.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"light-server": "^2.9.1",
|
2021-06-03 01:29:08 -04:00
|
|
|
"lighthouse": "^8.0.0",
|
2019-04-15 08:46:14 -04:00
|
|
|
"lighthouse-logger": "^1.2.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"lodash": "^4.17.21",
|
|
|
|
"lunr": "^2.3.9",
|
2018-11-26 15:01:46 -05:00
|
|
|
"npm-run-all": "^4.1.5",
|
2020-11-18 05:36:06 -05:00
|
|
|
"protractor": "~7.0.0",
|
2021-04-22 09:50:45 -04:00
|
|
|
"puppeteer": "9.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"rehype": "^11.0.0",
|
|
|
|
"rehype-slug": "^4.0.1",
|
2021-04-28 09:23:42 -04:00
|
|
|
"remark": "^12.0.0",
|
|
|
|
"remark-html": "^13.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"rimraf": "^3.0.2",
|
|
|
|
"semver": "^7.3.5",
|
2020-10-28 06:23:51 -04:00
|
|
|
"shelljs": "^0.8.4",
|
2021-04-24 04:18:01 -04:00
|
|
|
"stemmer": "^2.0.0",
|
2021-03-02 11:57:26 -05:00
|
|
|
"timezone-mock": "^1.1.3",
|
2017-04-13 17:35:13 -04:00
|
|
|
"tree-kill": "^1.1.0",
|
2021-06-01 15:17:00 -04:00
|
|
|
"ts-node": "^10.0.0",
|
2021-04-05 05:57:24 -04:00
|
|
|
"tslint": "~6.1.3",
|
|
|
|
"typescript": "~4.2.4",
|
|
|
|
"uglify-js": "^3.13.3",
|
|
|
|
"unist-util-filter": "^2.0.3",
|
|
|
|
"unist-util-source": "^3.0.0",
|
|
|
|
"unist-util-visit": "^2.0.3",
|
|
|
|
"unist-util-visit-parents": "^3.1.1",
|
2021-04-30 13:52:59 -04:00
|
|
|
"watchr": "^3.0.1",
|
2021-04-05 05:57:24 -04:00
|
|
|
"xregexp": "^5.0.2",
|
2021-05-04 02:39:44 -04:00
|
|
|
"yargs": "^17.0.0"
|
2017-01-25 06:04:30 -05:00
|
|
|
}
|
2021-04-22 07:16:46 -04:00
|
|
|
}
|