53 Commits

Author SHA1 Message Date
cexbrayat
7c3ce6ba2c fix(@angular/cli): use inheritance for ng4
Close #5111
2017-03-03 16:09:21 +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
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 Larsen
41cd35ee2d
v1.0.0-rc.0 2017-02-24 23:40:49 -08: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
Hans
c57ce2a3a0 fix(@angular/cli): apps fixes (#4942)
We dont have ngConfig on projects anymore.
2017-02-23 10:03:42 +00:00
Sumit Arora
7ebe4f0d4e fix(@angular/cli): adding help descriptions 2017-02-22 18:43:34 -05:00
Sumit Arora
ade2236a9b feat(@angular/cli): adding the --app command option (#4754) 2017-02-22 14:19:29 -08:00
Stephen Cavaliere
b15d1f37b6 refactor(@angular/cli): move ng2 blueprint to ng (#4932) 2017-02-22 14:01:55 -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
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
028bdd810b build(@angular/cli): update to codelyzer 2.0
Close #4798
2017-02-22 11:53:03 +00:00
William KOZA
c792c9f8b8 feat(@angular/cli): add async method in Jasmine Tests blueprints (#4775) 2017-02-21 14:29:11 -08:00
Mike Brocchi
cd1aa18f25 bug(@angular/cli): Show module file update during dry run (#4836)
Fixes #4801
2017-02-20 09:57:25 -05:00
Filipe Silva
3c3f74c060 feat(@angular/cli): don't use config file version (#4795)
We're not updating this number anymore since ng init/update is gone, so at
best it's useless and at worst it's confusing since it appears on ng
version.
2017-02-17 17:57:13 +00:00
Mike Brocchi
bac6e75416 docs(@angular/cli): document available options & JSON schema (#4767) 2017-02-17 10:39:21 -05:00
Stephen Cavaliere
9c25f746d2 fix(@angular/cli): generate command now ignores duplicate component symbol (#4446)
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist.

Closes #4323
2017-02-16 17:20:32 -08:00
Sumit Arora
74573bab3b refactor: rebranding changes (#4602) 2017-02-16 14:58:28 -08:00
Filipe Silva
16bfdf0123 feat(@angular/cli): use environmentSource key for environments (#4705)
Heavily based on @jsanchezgarcia work in #4476.

Fix #3857

BREAKING CHANGE:

A new environmentSource entry replaces the previous source entry inside environments.

To migrate the code follow the example below:

Before:
```
"environments": {
  "source": "environments/environment.ts",
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```

After:
```
"environmentSource": "environments/environment.ts",
  "environments": {
  "dev": "environments/environment.ts",
  "prod": "environments/environment.prod.ts"
}
```
2017-02-16 12:09:28 +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
Mike Brocchi
9db71d870f fix(@angular/cli): remove component generation from module generation (#4706)
Fixes #4209

BREAKING CHANGE: Generating a module with routing will no longer generate an associated component.
2017-02-15 22:26:49 -05:00
Mike Brocchi
6febf5c091 refactor(@angular/cli): simplify default arguments in angular-cli.json (#4389)
Fixes #4137
2017-02-15 17:06:40 -08:00
Lars Juel Nielsen
f8b5c94047 feat(@angular/cli): added *.sublime-workspace to gitignore blueprint (#4698)
According to https://www.sublimetext.com/docs/3/projects.html :
"Projects in Sublime Text are made up of two files: the .sublime-project
file, which contains the project definition, and the .sublime-workspace
file, which contains user specific data, such as the open files and the
modifications to each.

As a general rule, the .sublime-project file would be checked into
version control, while the .sublime-workspace file would not."
2017-02-15 10:09:17 -08:00
Filipe Silva
82b9715f7b fix(@angular/cli): remove inexistent tslint override
`no-unused-variable` doesn't exist anymore, so these disables aren't doing anything.

Close #4696
2017-02-15 12:27:42 +00:00
Ward Bell
4543be9e7b feat(@angular/cli): extend karma.conf.js w/ kjhtml reporter
karma-jasmine-html-reporter (kjhtml) displays Jasmine test runner in the test browser.

Close #4567
2017-02-14 20:06:55 +00:00
andrei
815b8f4d80 refactor(@angular/cli): update main.ts imports to respect Style 03-06
Consider leaving one empty line between third party imports and application imports.
Consider listing import lines alphabetized by the module.
https://angular.io/styleguide#!#03-06

Close #3863
2017-02-14 18:43:56 +00:00
Bram Borggreve
04c2f44e5a build: update dependencies in ng2 blueprint
Close #4151
2017-02-14 18:34:45 +00:00
Yen-cheng Chen, 陳彥澄
ef1a7733a7 build(@angular/cli): update jasmine-spec-reporter (#4690) 2017-02-14 17:01:33 +00:00
Filipe Silva
16bceee86e fix(@angular/cli): use correct tslint rule args (#4662)
Fix #4648
2017-02-13 17:12:19 +00:00
Yen-cheng Chen, 陳彥澄
aa5f07f24d chore: use arrow function (#4599) 2017-02-10 11:27:00 -08:00
Hans
c617c21173 feat: support TS 2.1 (#4572)
This requires Angular 4.
2017-02-09 15:14:43 -08: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
Carlo Dapor
0f7a35f871 fix(@angular/cli): create app.component.styl for Stylus. (#4540) 2017-02-09 10:59:37 -08:00
Filipe Silva
15b6d9c1a7 build(@angular/cli): update sourcemap-istanbul-instrumenter-loader (#4560)
Thanks to @deepsweet for the license update!

Followup from deepsweet/istanbul-instrumenter-loader#39
Partially address #3884
2017-02-09 10:57:12 -08:00
Mike Brocchi
4e066127ef fix(@angular/cli): update dependency to remove install warning (#4562)
Related to #3889
2017-02-09 15:29:44 +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
Hans
137a0dea18 docs: add more documentation for polyfills (#4512)
cc @stephenfluin @robwormald
2017-02-08 11:57:07 -08:00
Hans
1ce50fa02c refactor: publish es6 instead of es5 (#4502)
ES5 is necessary in projects because Uglify does not support ES6.
2017-02-07 15:39:56 -08:00
Hans
186d50d6ad feat(@angular/cli): add schema to the config (#4504)
So IDEs can actually use auto-completion, for example. This uses the installed
@angular/cli in node_modules, so versions are updated correctly.
2017-02-07 13:05:11 -08:00
Stephen Cavaliere
8c6cb07b0a chore: update generated app tsconfig to enable es2016 apis (#4474) 2017-02-06 17:25:37 -08:00
Stephen Cavaliere
63151d53a8 chore: update all tsconfig libs to enable es2016 apis (#4458) 2017-02-06 16:36:50 -08:00
Mike Brocchi
570f016d0d test: update to the latest version of protractor (#4312) 2017-02-06 11:53:16 -08:00
Hans
c889dd8e94 refactor(@angular-cli): get rid of ast-tools and base-href-webpack (#4411)
Those 2 packages were still using the wrong scope (@angular-cli) and were not used by anyone outside the CLI. Just moving the code in the main package is enough.
2017-02-03 22:57:42 -08:00
Michał Gołębiowski
20484598dd chore: change all Angular-CLI occurrences to Angular CLI (#4402)
* chore: change all Angular-CLI occurrences to Angular CLI

* docs: remove one remaining angular-cli reference
2017-02-03 15:50:24 +00:00