56 Commits

Author SHA1 Message Date
Charles Lyding
f73a9e40a7 fix(@angular/cli): explicitly disable warning overlays 2017-05-03 12:45:48 -07:00
Hans Larsen
7a6cb21524
Revert "feat(@angular/cli): adding skip e2e test option"
This reverts commit fdea2df02719be9fabdc25fdc3a88835afe5b286.
2017-04-24 19:41:41 -07:00
Matt Martz
2a903d26fd fix(@angular/cli): enable dev server history fallback in ejected config 2017-04-11 16:33:50 -07:00
Sumit Arora
81403e85c5 fix(@angular/cli): fix baseUrl when running e2e with no-serve 2017-03-31 17:00:16 -07:00
Sumit Arora
fdea2df027 feat(@angular/cli): adding skip e2e test option 2017-03-31 16:57:16 -07:00
Charles Lyding
1bc174b0de fix(@angular/cli): ensure only in-memory output is served 2017-03-30 09:31:18 +01:00
Charles Lyding
4563ec583a refactor(@angular/cli): modernize webpack style config
Close #5672
2017-03-29 11:04:09 +01:00
Filipe Silva
16171b93d7 fix(@angular/cli): fix sourcemap toggle in ng test
Followup to #5422
Fix #5666
Close #5668
2017-03-29 11:03:31 +01:00
Abdulhaq Emhemmed
f6ca2d76f3 fix(@angular/cli): Use appropriate packageManager for linking
When creating a new project using the --link-cli option, the
linking command was hard-coded to use npm link @angular/cli.
This commit replicates the behaviour of npm-install where the
package manager is obtained from the global config and is then
used for linking.

Close #5524
2017-03-29 10:58:37 +01:00
Charles Lyding
b3e3734c35 refactor(@angular/cli): convert additional files to typescript
Close #4996
2017-03-29 10:52:55 +01:00
Filipe Silva
baf0c7d2bc feat(@angular/cli): always use ng4 in ng new
Fix #5566
2017-03-23 17:58:34 -07:00
Sumit Arora
bab9a56551 fix(@angular/cli): fixing lint error issue added flag --type-check 2017-03-23 17:55:41 -07:00
Charles Lyding
be0762b2ca fix(@angular/cli): remove mention of 'ng update' from lint warning 2017-03-23 17:24:29 -07:00
Sumit Arora
b25aef2da5 fix(@angular/cli): fixing empty prefix issue when creating new app (#5597) 2017-03-24 00:23:57 +00:00
Hans Larsen
d94040b2de fix(@angular/cli): sourcemaps should be the main option, sourcemap an alias 2017-03-14 15:32:00 -07:00
Hans
7461528b5f fix(@angular/cli): eject command removes EOF
Notably `package.json` and `tsconfig.json`.

Fixed #5387.
2017-03-13 09:00:00 -07:00
Charles Lyding
c99cf96e49 fix(@angular/cli): ensure lint generates well-formed machine output
For machine readable output formats, ng lint was concatenating multiple documents into a single file. This resulted in invalid JSON, XML, etc. The lint results are now aggregated and one full output is generated.

Fix #5259
Close #5224
2017-03-09 10:43:46 +00:00
Carles Galan Cladera
a54115c280 fix(@angular/cli): Log xi18n errors
Log i18n extraction errors

Fixes #5129
Close #5223
2017-03-09 10:43:15 +00:00
Mike Brocchi
5e54a01e28 fix(@angular/cli): yarn install does not support --quiet (#5310) 2017-03-08 20:45:46 +00:00
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