262 Commits

Author SHA1 Message Date
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
John Papa
e9372d3c11 fix(@angular/cli): Align tsconfig output dir to out-tsc. Add out-tsc to .gitignore
Added /out-tsc to the .gitignore blueprint. If someone runs tsc -p src/tsconfig.spec.json it outputs to the ../out-tsc folder. These should
be ignored.

Also changed
https://github.com/angular/angular-cli/blob/master/packages/%40angular/cli/blueprints/ng/files/e2e/tsconfig.e2e.json#L13 to ../out-tsc/e2e so that they all match.

cc @filipesilva

fixing due to issue with CLA from #5062

Close #5220
2017-03-09 10:41:58 +00:00
cexbrayat
a78a7279b6 feat(@angular/cli): bump to tslint 4.5.0
Close #5099
2017-03-09 10:40:09 +00:00
Takatsugu Shigeta
cf14a15299 fix(@angular/cli): Fix filtering files on completion
Fix #4664
Close #4972
2017-03-09 10:36:08 +00:00
Mike Brocchi
5e54a01e28 fix(@angular/cli): yarn install does not support --quiet (#5310) 2017-03-08 20:45:46 +00:00
Stephen Cavaliere
3515c3b472 fix(@angular/cli): fix issue with console prompt bailing early (#5218)
* fix(@angular/cli): fix issue with console prompt bailing early

fixes #4614

* fix(@angular/cli): fix declarable types not finding closest module

fixes #5127
2017-03-07 22:12:18 -05:00
Filipe Silva
5c9c653f79 feat(@angular/cli): use standard stackTraceLimit (#5284)
Sometime very long ago we set infinite stack traces and never took them out.

This PR sets infinite stack traces only on dev setups.
2017-03-07 21:59:06 +00:00
Filipe Silva
1c2f361e8e fix(@angular/cli): fix TS2.1 typeroots (#5251)
TS-Node with TypeScript 2.1+ does not infer `typeRoots`, so we need to list them explicitely in the root tsconfig.

Issue for TS-Node: https://github.com/TypeStrong/ts-node/issues/283

Fix #5082
2017-03-07 14:08:18 +00:00
Roy Ling
c2a85694e1 fix(@angular/cli): karma config is default for test command (#5263)
`ng help test` says _protractor_ config is used by default, but it should be karma config instead.
2017-03-06 21:32:03 -05:00
Mike Brocchi
e0aeccbfab test(@angular/cli): output test compilation to es5 (#5255)
Fixes #5185
2017-03-06 16:23:31 -05:00
cexbrayat
7c3ce6ba2c fix(@angular/cli): use inheritance for ng4
Close #5111
2017-03-03 16:09:21 +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
Hans Larsen
214be993c4
v1.0.0-rc.1 2017-03-02 19:21:20 -08:00
Mike Brocchi
21d776fa96 fix(@angular/cli): add typing for module.id for SystemJS usage 2017-03-02 18:41:51 -08:00
Alex Rickabaugh
f3644a939c fix(@angular/cli): pass the base href through to the sw plugin 2017-03-02 13:49:18 -08:00
Alex Rickabaugh
7f03b5a31e fix(@angular/cli): look for existing manifest in src/ as well 2017-03-02 13:49:18 -08: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
Sumit Arora
0fc2190eb8 fix(@angular/cli): Fixing duplicate aliases issue (#4987) 2017-03-02 11:50:46 -08:00
Danny Blue
dd9eb17d41 fix(@angular/cli): add dom to lib array (#5060)
fixes #5046
2017-02-28 15:24:05 +00: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
Hans Larsen
41cd35ee2d
v1.0.0-rc.0 2017-02-24 23:40:49 -08:00
Hans
d2d788b200 fix(@angular/cli): improve matching range to match beta/rc (#4989) 2017-02-24 14:47:39 -08:00
Hans
a537dce3a9 fix(@angular/cli): allow flat modules from Angular RC (#4969)
The resource of context modules is in a different path.
2017-02-23 12:51:23 -08:00
Filipe Silva
b6893d0b7f feat(@angular/cli): allow code coverage excludes (#4966)
A new CLI config entry under `test` allows you to list exclude globs for code coverage:

```
  "test": {
    "codeCoverage": {
      "exclude": [
        "src/polyfills.ts",
        "**/test.ts"
      ]
    },
    "karma": {
      "config": "./karma.conf.js"
    }
  },
```
2017-02-23 20:42:52 +00:00
Filipe Silva
00f21d3a12 refactor: removed unused lint comment (#4950) 2017-02-23 15:46:12 +00:00
Filipe Silva
c3dd28a23d fix(@angular/cli): conform to style-guide import line spacing (#4954)
Some blueprints didn't have an empty line between third party imports and application imports, as recommended in the Style Guide at https://angular.io/docs/ts/latest/guide/style-guide.html#!#03-06
2017-02-23 15:15:15 +00:00
Filipe Silva
e661f55572 feat(@angular/cli): add npm build script (#4949) 2017-02-23 14:41:22 +00:00
Filipe Silva
958bee3de1 feat(@angular/cli): don't add empty assets to karma (#4952)
Removes the warning that would appear on new projects when running `ng test` due to there being no files inside `src/assets/`:

```
23 02 2017 10:45:33.751:WARN [watcher]: Pattern "D:\sandbox\master-project\src\assets/**" does not match any file.
```
2017-02-23 14:10:26 +00:00
Hans
c57ce2a3a0 fix(@angular/cli): apps fixes (#4942)
We dont have ngConfig on projects anymore.
2017-02-23 10:03:42 +00:00
Hans Larsen
dd4f177a88
ci: fix travis 2017-02-22 20:21:25 -08:00
Bram Borggreve
ae89fdec64
feat(@angular/cli): add warning when angular-cli is detected locally
Closes #4466
2017-02-22 19:57:25 -08:00
Hans Larsen
d4b56e4b83
fix(@angular/cli): remove ng from blueprints help, simplify blueprints logic
Closes #4887
2017-02-22 17:24:30 -08:00
Hans Larsen
b4594bac33
fix(@angular/cli): add more description 2017-02-22 17:20:17 -08:00
Sumit Arora
7ebe4f0d4e fix(@angular/cli): adding help descriptions 2017-02-22 18:43:34 -05: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
Felipe Ceotto
4af7a42920 fix(@angular/cli): Headless win32 now works as expected (#4871)
When running in a headless process in win32 the lack of process.stdin throws an error.

Fixes #4870
2017-02-22 14:23:33 -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
Lenny
b4985498c9 feat(@angular/cli): allow setting ssl certificate in angular-cli.json (#4730)
Currently users must use the --ssl, -ssl-cert, -ssl-key flags to run the
server using an ssl certificate. This update allows users to set
those options in default.serve so they can just run `ng serve` without any
flags.
2017-02-22 14:01:29 -08:00
Hans Larsen
00f913c8cd fix(@angular/cli): fix angular-cli logic
The old logic was failing if the global angular-cli config was .angular-cli.json.
2017-02-22 13:23:45 -08:00
Filipe Silva
69e6c717fd feat(@angular/cli): use separate tsconfigs
This PR adds tsconfigs for each separate application:
- `src/tsconfig.app.json`: configuration for the Angular app.
- `src/tsconfig.spec.json`: configuration for the unit tests. Defaults to the Angular app config.
- `e2e/tsconfig.e2e.json`: configuration for the e2e tests.

There is an additional root-level `tsconfig.json` that is used for editor integration.

For Angular version 4 projects, these tsconfigs will use inheritance since it's available with TypeScript 2.1.

This is not a breaking change. Existing projects should not be affected.
2017-02-22 19:32:00 +00:00
Stephen Cavaliere
2c1e8778d6 feat(generate): add guard generation (#4055) 2017-02-22 18:21:36 +00:00
Filipe Silva
1655e51e7e feat(@angular/cli): hash loaded media by default (#4878)
Currently dev builds use `--output-hashing=none` by default.

This can cause image resources to be overwritten in dev if they have the same same.

This wasn't much of a problem before when only images in global CSS would be treated as resources, but now component css also does that.

Production builds are unaffected since they already use `--output-hashing=all`.

BREAKING CHANGE: dev builds will hash relative resources from CSS (images, etc).
2017-02-22 15:52:11 +00:00
Hans Larsen
e4fc2947db feat(@angular/cli): allow to create new projects in existing directory
Unless the directory is already under an Angular CLI project.

Fixes #4762
Close #4901
2017-02-22 12:00:59 +00:00