From 70981c601e12bfedf6eb7b39e844cd7fad7fbdf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Rodr=C3=ADguez?= Date: Thu, 6 Jul 2017 20:51:58 +0200 Subject: [PATCH] feat(aio): serve-and-sync command (#17850) --- aio/README.md | 1 + aio/package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/aio/README.md b/aio/README.md index 0a880a19df..b00ed4b115 100644 --- a/aio/README.md +++ b/aio/README.md @@ -16,6 +16,7 @@ Here are the most important tasks you might need to use: * `yarn setup` - Install all the dependencies, boilerplate, plunkers, zips and runs dgeni on the docs. * `yarn start` - run a development web server that watches the files; then builds the doc-viewer and reloads the page, as necessary. +* `yarn serve-and-sync` - run both the `docs-watch` and `start` in the same console. * `yarn lint` - check that the doc-viewer code follows our style rules. * `yarn test` - watch all the source files, for the doc-viewer, and run all the unit tests when any change. * `yarn e2e` - run all the e2e tests for the doc-viewer. diff --git a/aio/package.json b/aio/package.json index 7c91911367..d5ab496fc3 100644 --- a/aio/package.json +++ b/aio/package.json @@ -31,6 +31,7 @@ "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/add-example-boilerplate add", "boilerplate:remove": "node ./tools/examples/add-example-boilerplate remove",