There are now 3 modes for deployment: next, stable, archive. We compute which mode (and other deployment properties) from the `TRAVIS_BRANCH` and the `STABLE_BRANCH`. If the TRAVIS_BRANCH is master we deploy as "next". Otherwise if the branch is the highest of its minor versions we deploy as "stable" if the `TRAVIS_BRANCH` matches the `STABLE_BRANCH` or else "archive". For "archive" deployments we compute the firebase project and deployment url based on the major version of the `TRAVIS_BRANCH`. As well as choosing where to deploy the build, we also use this to select the environment file for the AIO Angular app. This will enable the app to change its rendering and behaviour based on its mode. See #18287
131 lines
5.1 KiB
JSON
131 lines
5.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": {
|
|
"ng": "yarn check-env && ng",
|
|
"start": "yarn check-env && ng serve",
|
|
"prebuild": "yarn check-env && yarn setup",
|
|
"build": "ng build --target=production --environment=stable -sm -bo",
|
|
"postbuild": "yarn sw-manifest && yarn sw-copy",
|
|
"lint": "yarn check-env && yarn docs-lint && ng lint && yarn example-lint",
|
|
"test": "yarn check-env && ng test",
|
|
"pree2e": "yarn check-env && yarn ~~update-webdriver",
|
|
"e2e": "ng e2e --no-webdriver-update",
|
|
"setup": "yarn && yarn build-ie-polyfills && yarn boilerplate:remove && yarn boilerplate:add && yarn generate-plunkers && yarn generate-zips && yarn docs",
|
|
"pretest-pwa-score-local": "yarn build",
|
|
"test-pwa-score-local": "concurrently --kill-others --success first \"http-server dist -p 4200 --silent\" \"yarn test-pwa-score -- http://localhost:4200 90\"",
|
|
"test-pwa-score": "node scripts/test-pwa-score",
|
|
"example-e2e": "node ./tools/examples/run-example-e2e",
|
|
"example-lint": "tslint -c \"content/examples/tslint.json\" \"content/examples/**/*.ts\" -e \"content/examples/styleguide/**/*.avoid.ts\"",
|
|
"deploy-preview": "scripts/deploy-preview.sh",
|
|
"deploy-production": "scripts/deploy-to-firebase.sh",
|
|
"check-env": "node scripts/check-environment",
|
|
"payload-size": "scripts/payload.sh",
|
|
"predocs": "rimraf src/generated/{docs,*.json}",
|
|
"docs": "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",
|
|
"serve-and-sync": "concurrently --kill-others \"yarn docs-watch\" \"yarn start\"",
|
|
"~~update-webdriver": "webdriver-manager update --standalone false --gecko false",
|
|
"boilerplate:add": "node ./tools/examples/example-boilerplate add",
|
|
"boilerplate:remove": "node ./tools/examples/example-boilerplate remove",
|
|
"boilerplate:test": "node tools/examples/test.js",
|
|
"generate-plunkers": "node ./tools/plunker-builder/generatePlunkers",
|
|
"generate-zips": "node ./tools/example-zipper/generateZips",
|
|
"sw-manifest": "ngu-sw-manifest --dist dist --in ngsw-manifest.json --out dist/ngsw-manifest.json",
|
|
"sw-copy": "cp node_modules/@angular/service-worker/bundles/worker-basic.min.js dist/",
|
|
"postinstall": "uglifyjs node_modules/lunr/lunr.js -c -m -o src/assets/js/lunr.min.js --source-map",
|
|
"build-ie-polyfills": "node node_modules/webpack/bin/webpack.js -p src/ie-polyfills.js src/generated/ie-polyfills.min.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.9.5 <7.0.0",
|
|
"yarn": ">=0.21.3 <1.0.0"
|
|
},
|
|
"private": true,
|
|
"dependencies": {
|
|
"@angular/animations": "^4.3.1",
|
|
"@angular/cdk": "^2.0.0-beta.8",
|
|
"@angular/common": "^4.3.1",
|
|
"@angular/compiler": "^4.3.1",
|
|
"@angular/core": "^4.3.1",
|
|
"@angular/forms": "^4.3.1",
|
|
"@angular/http": "^4.3.1",
|
|
"@angular/material": "^2.0.0-beta.8",
|
|
"@angular/platform-browser": "^4.3.1",
|
|
"@angular/platform-browser-dynamic": "^4.3.1",
|
|
"@angular/platform-server": "^4.3.1",
|
|
"@angular/router": "^4.3.1",
|
|
"@angular/service-worker": "^1.0.0-beta.16",
|
|
"classlist.js": "^1.1.20150312",
|
|
"core-js": "^2.4.1",
|
|
"jasmine": "^2.6.0",
|
|
"ng-pwa-tools": "^0.0.10",
|
|
"rxjs": "^5.2.0",
|
|
"tslib": "^1.7.1",
|
|
"web-animations-js": "^2.2.5",
|
|
"zone.js": "^0.8.12"
|
|
},
|
|
"devDependencies": {
|
|
"@angular/cli": "1.3.0-rc.3",
|
|
"@angular/compiler-cli": "^4.3.1",
|
|
"@types/jasmine": "^2.5.52",
|
|
"@types/node": "~6.0.60",
|
|
"archiver": "^1.3.0",
|
|
"canonical-path": "^0.0.2",
|
|
"codelyzer": "~2.0.0",
|
|
"concurrently": "^3.4.0",
|
|
"cross-spawn": "^5.1.0",
|
|
"dgeni": "^0.4.7",
|
|
"dgeni-packages": "^0.20.0",
|
|
"entities": "^1.1.1",
|
|
"eslint": "^3.19.0",
|
|
"eslint-plugin-jasmine": "^2.2.0",
|
|
"firebase-tools": "^3.2.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",
|
|
"http-server": "^0.9.0",
|
|
"ignore": "^3.3.3",
|
|
"image-size": "^0.5.1",
|
|
"jasmine-core": "^2.6.4",
|
|
"jasmine-spec-reporter": "^4.1.0",
|
|
"jsdom": "^9.12.0",
|
|
"karma": "^1.7.0",
|
|
"karma-chrome-launcher": "^2.1.1",
|
|
"karma-cli": "^1.0.1",
|
|
"karma-coverage-istanbul-reporter": "^1.3.0",
|
|
"karma-jasmine": "^1.1.0",
|
|
"karma-jasmine-html-reporter": "^0.2.2",
|
|
"lighthouse": "^2.1.0",
|
|
"lodash": "^4.17.4",
|
|
"lunr": "^2.1.0",
|
|
"protractor": "~5.1.0",
|
|
"rehype": "^4.0.0",
|
|
"rehype-autolink-headings": "^2.0.0",
|
|
"rehype-slug": "^2.0.0",
|
|
"remark": "^7.0.0",
|
|
"remark-html": "^6.0.0",
|
|
"rimraf": "^2.6.1",
|
|
"semver": "^5.3.0",
|
|
"shelljs": "^0.7.7",
|
|
"tree-kill": "^1.1.0",
|
|
"ts-node": "~2.0.0",
|
|
"tslint": "~4.5.0",
|
|
"typescript": "2.3.2",
|
|
"uglify-js": "^3.0.15",
|
|
"unist-util-filter": "^0.2.1",
|
|
"unist-util-source": "^1.0.1",
|
|
"unist-util-visit": "^1.1.1",
|
|
"vrsource-tslint-rules": "^4.0.1",
|
|
"watchr": "^3.0.1",
|
|
"yargs": "^7.0.2"
|
|
}
|
|
}
|