Title: Build with --watch flag does not work with a lib project · Issue #11100 · angular/angular-cli · GitHub
Open Graph Title: Build with --watch flag does not work with a lib project · Issue #11100 · angular/angular-cli
X Title: Build with --watch flag does not work with a lib project · Issue #11100 · angular/angular-cli
Description: Versions Angular CLI: 6.0.7 Node: 9.6.1 OS: darwin x64 Angular: 6.0.3 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router Package Version ---------...
Open Graph Description: Versions Angular CLI: 6.0.7 Node: 9.6.1 OS: darwin x64 Angular: 6.0.3 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-d...
X Description: Versions Angular CLI: 6.0.7 Node: 9.6.1 OS: darwin x64 Angular: 6.0.3 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-d...
Opengraph URL: https://github.com/angular/angular-cli/issues/11100
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build with --watch flag does not work with a lib project","articleBody":"\u003c!--\r\nWe will close this issue if you don't provide the needed information.\r\nFor feature requests, delete the form below and describe the requirements and use case.\r\n--\u003e\r\n\r\n### Versions\r\n```\r\nAngular CLI: 6.0.7\r\nNode: 9.6.1\r\nOS: darwin x64\r\nAngular: 6.0.3\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\nPackage Version\r\n------------------------------------------------------------\r\n@angular-devkit/architect 0.6.5\r\n@angular-devkit/build-angular 0.6.5\r\n@angular-devkit/build-ng-packagr 0.6.5\r\n@angular-devkit/build-optimizer 0.6.5\r\n@angular-devkit/core 0.6.5\r\n@angular-devkit/schematics 0.6.5\r\n@angular/cdk 6.1.0\r\n@angular/cli 6.0.7\r\n@angular/material 6.1.0\r\n@ngtools/json-schema 1.1.0\r\n@ngtools/webpack 6.0.5\r\n@schematics/angular 0.6.5\r\n@schematics/update 0.6.7\r\nng-packagr 3.0.0\r\nrxjs 6.2.0\r\ntypescript 2.7.2\r\nwebpack 4.8.3\r\n```\r\n\r\n### Observed behavior\r\n\r\nRunning `ng build --watch` works perfectly fine on the default app in a monorepo with the default app. \r\n\r\nHowever, running `ng build mylib --watch` or `ng build --watch mylib` after generating a lib with the CLI gives `Unknown option: '--watch'`\r\n\r\n### Desired behavior\r\n\r\nCan build any of the apps or libs in an Angular cli monorepo in --watch mode.\r\n\r\n### Mention any other details that might be useful (optional)\r\n\r\nHave tried various combinations of ordering the arguments as well as `--watch=true` and `-w`. None seem to work. ","author":{"url":"https://github.com/zbarbuto","@type":"Person","name":"zbarbuto"},"datePublished":"2018-06-04T06:43:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/11100/angular-cli/issues/11100"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d9bf47bd-21f7-f261-f8c2-8e6db8e7af16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE84:2C338B:38525B3:4E09AA1:6977D37D |
| html-safe-nonce | 6d94b6290a794996883ba47ab3d729e7132a6b7034eae1c9ed212a26aa6ca288 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTg0OjJDMzM4QjozODUyNUIzOjRFMDlBQTE6Njk3N0QzN0QiLCJ2aXNpdG9yX2lkIjoiNjExNDc0NDE4NTE3MDQxNjUwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 19d4e2835e617c2faa86ec15393084355931b27050556a34d6a3eb013de74d98 |
| hovercard-subject-tag | issue:328927124 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/11100/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a6750bc8035002801c0b14ad80de4aac4890b96d2fb1e1240aa4d1f6324b53d/angular/angular-cli/issues/11100 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a6750bc8035002801c0b14ad80de4aac4890b96d2fb1e1240aa4d1f6324b53d/angular/angular-cli/issues/11100 |
| og:image:alt | Versions Angular CLI: 6.0.7 Node: 9.6.1 OS: darwin x64 Angular: 6.0.3 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zbarbuto |
| hostname | github.com |
| expected-hostname | github.com |
| None | b39e6c26c0326ac7510f4f58f7248053edc1a743c844376b8155c71ef8138521 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9db2400e2405e5e571d97a25e1e140cfec8da1a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width