37 Commits

Author SHA1 Message Date
Thomas Kruse
07e93c0210 fix(@angular/cli): enforce loglevel warn for npm-install
The npm call uses the node exec() call which has a default limit
of 200kb after which the process is terminated.
When the user has set the info loglevel ng new terminates without
any helpful error message. When using --quiet the loglevel is
set to warning in any case resulting in a successful build.
This is especially important for users of docker since the current
node base image sets the loglevel to info.

Close #5010
2017-03-03 16:09:10 +00:00
John Papa
e31413558f fix(@angular/cli): rephrased warning message
Rephrasing the warning message to read more fluently

"needs to not contain" ---> "must not contain"

Close #5006
2017-03-03 16:09:10 +00:00
Meligy
3b39843513 fix(@angular/cli): fix e2e after eject
Start webpack-dev-server with e2e & sync its port with protractor default config port.

Close #4957
2017-03-03 16:08:00 +00:00
Olivier Combe
d52d290c80 feat(@angular/cli): add new xi18n parameters --locale and --outFile (#5154)
Fixes #5145
2017-03-02 11:54:01 -08:00
Mike Brocchi
1609554c4d refactor(@angular/cli): consolidate config reading logic (#5023) 2017-02-27 21:22:19 -08:00
Hans
211270d85f fix(@angular/cli): fix access to sections of package.json that dont exist (#5074)
Fixes #5070.
2017-02-27 16:36:19 -08:00
Filipe Silva
97bfb1253c fix(@angular/cli): fix webdriver deep import on yarn (#5057)
Followup from https://github.com/angular/angular-cli/pull/4597

Following @Meligy suggestion in https://github.com/angular/angular-cli/pull/4597#issuecomment-282561038

Fix #4596
2017-02-27 15:32:43 +00:00
moritz-h
0d8799ee32 fix(@angular/cli): fix ng lint formatted output (#4917)
Print linting result only for human-readable formats, to not mess up xml, json, ... output.
2017-02-22 14:31:03 -08:00
Sumit Arora
ade2236a9b feat(@angular/cli): adding the --app command option (#4754) 2017-02-22 14:19:29 -08:00
Meligy
7567f5c092
fix(eject): set ejected project to run webdriver-manager update as part of e2e npm script
Closes #4920
2017-02-22 14:15:01 -08:00
Stephen Cavaliere
b15d1f37b6 refactor(@angular/cli): move ng2 blueprint to ng (#4932) 2017-02-22 14:01:55 -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
Charles Lyding
26d1e41eb8 fix(@angular/cli): stabilize webpack module identifiers
This provides increased viability for long-term caching by limiting the
changes to the content of output files due to webpack module identifier
changes.

Close #4733
2017-02-22 11:52:22 +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
a2e819a8dd fix(@angular/cli): fix css url processing (#4803)
Fixing component css in #4667 uncovered errors in CSS url processing.

This PR correctly composes absolute urls when using `--base-href` and/or `--deploy-url`.

It also fixes asset output on `--aot` mode.

Fix #4778
Fix #4782
Fix #4806
2017-02-20 13:18:21 +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
Hans Larsen
7ac0d05626
feat(@angular/cli): eject command
The command will generate a webpack.config.js and will add scripts to the package.json.
2017-02-16 16:52:02 -08:00
Hans Larsen
351f6b16d4
fix(@angular/cli): lint now works with excluded files. 2017-02-16 16:52:02 -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
Varun Vachhar
469ca912dc feat(@angular/cli): add --stats-json flag to build (#4189)
Allows you to run ng build --json which generates dist/stats.json. This can then be used with things like the webpack-bundle-analyzer or https://webpack.github.io/analyse/

Fix #3179
2017-02-15 15:39:29 +00: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
Bram Borggreve
fd4cf4768b feat(new): read GIT_AUTHOR_NAME/_EMAIL from process.ENV for initial commit message
Close #4012
2017-02-14 18:37:39 +00:00
ruffiem
b9295e08e7 feat(@angular/cli): added argument for karma configuration file (#4564)
Fix #183
2017-02-10 12:32:02 +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
Stephen Cavaliere
6e3186d62c feat(@angular/cli): add ability to exclude files and directories (#4437)
Fixes #4350
2017-02-09 14:11:40 -08:00
Sumit Arora
d2849c713b feat(@angular/cli): Add options for third party package manager (#4321)
BREAKING CHANGE: `--skip-npm` flag is now named `--skip-install`
2017-02-09 10:35:19 -08:00
Filipe Silva
488185b4a8 fix(@angular/cli): Bail out if output path is the root folder pt2 (#4518)
Followup from #4490
2017-02-09 10:26:02 +00:00
Hans
c096afb00b feat(@angular/cli): add ng4 option to ng new (#4507)
This allows to create a project with Angular 4 in the template.
Also fixes a few issues with ng4.
2017-02-08 16:41:41 -08:00
Filipe Silva
b8328dca55 refactor(commands): turn .run commands into tasks (#4251) 2017-02-08 11:49:05 +00:00
Carlos Galan Cladera
86025369ad feature(i18n): implement xi18n command (#3340)
Implement i18n messages extractor. Contrary to @angular/complier-cli's command it will not throw an error if a resource is not found.
2017-02-07 19:19:04 -08: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
Mike Brocchi
0f8689b42a refactor(@angular/cli): removed the github pages deploy command (#4385)
BREAKING CHANGE: This command is being removed from the core of the CLI
There are several options for deploying CLI-based applications outside the scope of this project.
One of which being https://github.com/angular-buch/angular-cli-ghpages
This functionality is likely to return in the form of an addon/plugin in the future
2017-02-02 21:08:00 -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