43 Commits

Author SHA1 Message Date
Charles Lyding
a40e801a95 fix(@angular/cli): avoid defaulting base-href to an empty string 2018-01-29 13:56:56 +00:00
Charles Lyding
fc1e08deaa feat(@angular/cli): hide error/warning build output stacktraces 2018-01-25 15:57:35 +00:00
Adam Lee
b6b8acc1bf feat(@angular/cli): load deployUrl and baseHref from app config for ng serve 2018-01-10 09:54:55 -05:00
Thiago Almeida
5c60744127 fix(@angular/cli): fix old webpack's website links 2018-01-02 13:17:58 +00:00
Charles Lyding
90e2e805aa feat(@angular/cli): can disable unsupported serve path warning 2017-12-19 09:30:55 -08:00
Charles Lyding
78e1395009 fix(@angular/cli): honor project's hmr warning option 2017-11-27 17:52:23 +00:00
Mathou54
43921060fd fix(@angular/cli): typo console output
Fix the typo in `DON'T USE IT FOR PRODUCTION USE!`.
It is now `DON'T USE IT FOR PRODUCTION!`.
2017-11-20 09:13:33 -08:00
Filipe Silva
fd82e1870e build: update chalk to 2.2
`chalk@2.2` is incompatible with `@types/chalk`.
2017-10-24 12:03:55 -07:00
Charles Lyding
e786895863 feat(@angular/cli): automatically detect the live-reload client connection address 2017-09-27 12:30:06 +01:00
Suguru
128b92adb5 fix(@angular/cli): open app with servePath 2017-09-27 12:25:31 +01:00
Amit Moryossef
a9f670223c fix(@angular/cli): increase keepAliveTimeout for all Node 8 versions 2017-09-26 11:10:26 +01:00
mtraynham
c9c964497a fix(@angular/cli): Increase keepAliveTimeout for Webpack Dev Server 2017-09-05 11:15:54 +01:00
Charles Lyding
2c6dde1941 feat(@angular/cli): add option to set dev server's base serve path 2017-08-17 14:45:45 -04:00
Filipe Silva
138f2b8cd3 fix(@angular/cli): show warnings on serve
Errors and warnings neet to be printed separately.

Followup to #6989
Fix #7213
2017-07-31 21:17:19 +01:00
Hans Larsen
61b4e2202f feat(@angular/cli): rewrite stats output to properly show the asset size
This is a feature in principle; the output is changed. The stats themselves dont though.
2017-07-21 14:42:55 -04:00
FrozenPandaz
6f23636323 feat(@angular/cli): add ability to build bundle for node and export lazy route map 2017-07-20 15:01:25 -07:00
Charles Lyding
3dbd3ad88e refactor(@angular/cli): remove unneeded rimraf dependency 2017-06-29 15:49:59 +01:00
Bram Borggreve
b989e80626 feat(@angular/cli): allow disabling warning when --hmr flag is enabled 2017-06-19 15:29:54 -04:00
Sumit Arora
2be0bf2d53 fix(@angular/cli): fix delete path check 2017-06-07 11:22:25 -07:00
Charles Lyding
d437afbfae fix(@angular/cli): allow public host option to accept only hostname 2017-06-07 18:44:34 +01:00
Radoslav Kirilov
0e1f65c815 fix(@angular/cli): prefix historyApiFallback.index with deployUrl (#6279)
when implementing i18n following https://angular.io/docs/ts/latest/cookbook/i18n.html
and https://medium.com/@feloy/deploying-an-i18n-angular-app-with-angular-cli-fc788f17e358

when running in `development` to be consistent with `production` I am using

```
ng serve --deploy-url /en/ --base-href /en/ \
--aot --locale en --i18n-file ./src/locale/messages.en.xlf
```

running the app this way, on routes other than `http://localhost:4200/en/`
the `webpack-dev-server` was always saying that the route is not found,
so this commit fixes that
2017-05-15 10:43:21 -04:00
Filipe Silva
a54a991b2f feat(@angular/cli): add host check flags to ng serve
Two new flags are added to `ng serve`:
- `--public-host` (aliased by `--live-reload-client): Specify the URL that the browser client will use.
- `--disable-host-check`: Don't verify connected clients are part of allowed hosts.

Setting `--disable-host-check` will output a warning:
```
WARNING Running a server with --disable-host-check is a security risk. See https://medium.com/webpack/webpack-dev-server-middleware-security-issues-1489d950874a for more information.
```

See #6070 for more context about this change.

Fix #6070
2017-05-09 21:04:58 +01:00
Ricardo Varanda
23c039d9f4 fix(@angular/cli): open option in serve command should open localhost when host is 0.0.0.0
Close #5743
2017-05-09 07:17:22 -07:00
Filipe Silva
8bf040b7e3 feat(@angular/cli): add flag to not delete output path
Fix #5925
Fix #6193
2017-05-08 14:27:59 +01:00
Septimiu Criste
8c78fb98ef feat(@angular/cli): add publicPath support via command and angular-cli.json for webpack-dev-server
This adds support for publicPath to webpack-dev-server via ng serve
The server would have to be started like ng serve --deploy-url /deploypath --base-href /deploypath.
The app will be served from http://localhost:4200/deploypath

Should fix #2727
2017-05-04 20:32:33 +01:00
Charles Lyding
b07f631773 feat(@angular/cli): always use named webpack modules in dev builds 2017-05-04 19:52:48 +01:00
Charles Lyding
f73a9e40a7 fix(@angular/cli): explicitly disable warning overlays 2017-05-03 12:45:48 -07:00
Charles Lyding
1bc174b0de fix(@angular/cli): ensure only in-memory output is served 2017-03-30 09:31:18 +01:00
Mike Brocchi
1609554c4d refactor(@angular/cli): consolidate config reading logic (#5023) 2017-02-27 21:22:19 -08:00
Sumit Arora
ade2236a9b feat(@angular/cli): adding the --app command option (#4754) 2017-02-22 14:19:29 -08:00
Filipe Silva
3bba4cb4da feat(@angular/cli): use same webpack config for karma
Close #4851
Fix #3605
Fix #4850
Fix #4876
2017-02-22 11:54:06 +00:00
Filipe Silva
d1e13ace0b build: use noUnusedParameters, noUnusedLocals (#4882) 2017-02-21 10:53:34 -08:00
Filipe Silva
a4b43a59e4 fix(serve): allow relevant live-reload options to function (#4744)
This provides implementations for the following serve command options:

live-reload [boolean; default: true] -- flag to control the browser live reload capability
live-reload-client [URL; default: ssl/host/port command options] -- specify the URL that the live reload browser client will use

Closes #3361
2017-02-21 09:01:40 +00:00
Filipe Silva
9d29cbca0f feat(@angular/cli): add watch flag to serve/e2e (#4749)
This is useful when you don't want the server to rebuild in the middle of something.

A good example is when running e2e tests. Especially on larger suites, one would prefer to continue working while the build is tested without compromising tests.

This will break tests on #4744. They should be adjusted to add the `--watch` flag since they depend on the live reload behaviour during `ng e2e`.
2017-02-16 17:17:15 -08:00
Hans Larsen
6402a27ee5
feat(@angular/cli): disable invalid commands on ejected apps
Closes #4680
2017-02-16 16:52:13 -08:00
Charles Lyding
57ef508895 feat(build): add --poll option to build/serve/test commands
Close #4268
Close #4715
2017-02-16 09:04:49 +00:00
Mike Brocchi
809340a8f0 refactor(@angular/cli): rename config file from angular-cli.json to .angular-cli.json (#4681)
BREAKING CHANGE: The configuration file angular-cli.json has been renamed to .angular-cli.json
2017-02-15 23:14:18 -05:00
Filipe Silva
9e91d8646b feat(@angular/cli): allow assets from outside of app root.
Fix #3555
Close #4691

BREAKING CHANGE: 'assets' as a string in angular-cli.json is no longer allowed, use an array instead.
2017-02-15 12:23:59 +00:00
Charles Lyding
7ea80135a3 feat(@angular/cli): add in-browser development error overlay
Close #4513
2017-02-15 12:22:40 +00:00
Filipe Silva
8d2d93a7a2 feat(e2e): use protractor api (#4527)
Uses existing Protractor API to run it directly instead of using `npm run
e2e`.

Also adds support for the following flags: `--serve`, `--config`,
`--specs`, `--element-explorer`, `--webdriver-update`.

Fix #4256
Fix #4478

BREAKING CHANGE: `ng e2e` no longer needs `ng serve` to be running.
2017-02-09 15:14:29 -08:00
Filipe Silva
b8328dca55 refactor(commands): turn .run commands into tasks (#4251) 2017-02-08 11:49:05 +00:00
Carlo Dapor
22f4bea077 fix(@angular/cli): Bail out if output path is the root folder (#4490)
`ng serve` --output-path=. would wipe out the entire root folder.
2017-02-07 11:22:52 -08:00
Hans
601f9b38f8 feat(@angular/cli): move angular-cli to @angular/cli (#4328)
This release is otherwise identical to beta.28.
2017-02-01 18:19:50 -08:00