58f080a325
This task is suitable for day to day docs authoring. This task cuts corners, which makes it much faster than a full `yarn docs` run but it does not produce completely valid output. In general this isgood enough for authors to see their changes as they make them. The task is triggered by a call to ``` yarn docs-watch ``` This sets up watchers on the `aio/contents` and `packages` folders. Any changes to files below these folders new doc generation run to start. The input to the generation is confined to a collection of files related to the changed file. For example: * a change to a file in `aio/content/marketing` will generate all the marketing files. * a change to a file in `aio/content/tutorial` or `aio/examples/toh-*` will generate all the tutorial files (and their embedded examples). * a change to a file in `aio/guide` or `aio/examples` (but not a `toh-` example) will generate the appropriate guide and its embedded examples * a change to a file in `packages` or `packages/examples` will generate the appropriate API doc and its embedded examples. Be aware that the mapping between docs and its examples are based on doc file and example folder structure being equivalent. Sometimes a doc will reference an example in a different folder, in which case the generated doc will be inaccurate. Mostly this is not a big problem.
92 lines
3.3 KiB
JSON
92 lines
3.3 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",
|
|
"build": "yarn check-env && yarn docs && ng build -prod -sm",
|
|
"lint": "yarn check-env && yarn docs-lint && ng lint",
|
|
"test": "yarn check-env && ng test --sourcemap=false",
|
|
"pree2e": "yarn ~~update-webdriver",
|
|
"e2e": "yarn check-env && ng e2e --no-webdriver-update",
|
|
"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",
|
|
"deploy-preview": "scripts/deploy-preview.sh",
|
|
"deploy-staging": "scripts/deploy-staging.sh",
|
|
"check-env": "node ../tools/check-environment.js",
|
|
"predocs": "rimraf src/content",
|
|
"docs": "dgeni ./transforms/angular.io-package",
|
|
"docs-watch": "node transforms/authors-package/watchr.js",
|
|
"docs-lint": "eslint --ignore-path=\"transforms/.eslintignore\" transforms",
|
|
"docs-test": "node ../dist/tools/cjs-jasmine/index-tools ../../transforms/**/*.spec.js",
|
|
"~~update-webdriver": "webdriver-manager update --standalone false --gecko false",
|
|
"boilerplate:add": "node ./tools/examples/add-example-boilerplate add",
|
|
"boilerplate:remove": "node ./tools/examples/add-example-boilerplate remove",
|
|
"generate-plunkers": "node ./tools/plunker-builder/generatePlunkers"
|
|
},
|
|
"private": true,
|
|
"dependencies": {
|
|
"@angular/animations": "next",
|
|
"@angular/common": "next",
|
|
"@angular/compiler": "next",
|
|
"@angular/core": "next",
|
|
"@angular/forms": "next",
|
|
"@angular/http": "next",
|
|
"@angular/material": "^2.0.0-beta.3",
|
|
"@angular/platform-browser": "next",
|
|
"@angular/platform-browser-dynamic": "next",
|
|
"@angular/platform-server": "next",
|
|
"@angular/router": "next",
|
|
"@angular/service-worker": "^1.0.0-beta.8",
|
|
"core-js": "^2.4.1",
|
|
"rxjs": "^5.2.0",
|
|
"zone.js": "^0.8.4"
|
|
},
|
|
"devDependencies": {
|
|
"@angular/cli": "^1.0.0",
|
|
"@angular/compiler-cli": "next",
|
|
"@types/jasmine": "2.5.38",
|
|
"@types/node": "~6.0.60",
|
|
"canonical-path": "^0.0.2",
|
|
"codelyzer": "~2.0.0",
|
|
"concurrently": "^3.4.0",
|
|
"dgeni": "^0.4.7",
|
|
"dgeni-packages": "0.17.0",
|
|
"entities": "^1.1.1",
|
|
"eslint": "^3.19.0",
|
|
"eslint-plugin-jasmine": "^2.2.0",
|
|
"firebase-tools": "^3.2.1",
|
|
"fs-extra": "^2.1.1",
|
|
"globby": "^6.1.0",
|
|
"html": "^1.0.0",
|
|
"http-server": "^0.9.0",
|
|
"jasmine-core": "~2.5.2",
|
|
"jasmine-spec-reporter": "~3.2.0",
|
|
"jsdom": "^9.12.0",
|
|
"karma": "~1.4.1",
|
|
"karma-chrome-launcher": "~2.0.0",
|
|
"karma-cli": "~1.0.1",
|
|
"karma-coverage-istanbul-reporter": "^0.2.0",
|
|
"karma-jasmine": "~1.1.0",
|
|
"karma-jasmine-html-reporter": "^0.2.2",
|
|
"lighthouse": "^1.6.3",
|
|
"lodash": "^4.17.4",
|
|
"protractor": "~5.1.0",
|
|
"remark": "^7.0.0",
|
|
"remark-html": "^6.0.0",
|
|
"rho": "https://github.com/petebacondarwin/rho#master",
|
|
"rimraf": "^2.6.1",
|
|
"shelljs": "^0.7.7",
|
|
"ts-node": "~2.0.0",
|
|
"tslint": "~4.5.0",
|
|
"typescript": "2.2.0",
|
|
"vrsource-tslint-rules": "^4.0.1",
|
|
"watchr": "^3.0.1"
|
|
}
|
|
}
|