108 Commits

Author SHA1 Message Date
Hans
198d27a88e fix(@angular/cli): cache config by file path. (#4902)
On some commands we create multiple configs; this will cache them and reuse the ones that exist already.
2017-02-22 11:50:01 +00:00
Sumit Arora
ba30cc1de3 fix(@angular/cli): fixing the help command aliases (#4880) 2017-02-21 16:56:41 -08:00
Hans
9a2e35d5ef refactor: use typescript 2.1 for the CLI project itself. (#4890)
And use extends for its tsconfigs. Nothing of this changes whats published in npm.
2017-02-21 16:16:54 -08:00
Hans
2abbce29db fix(@angular/cli): put aliases for local config too (#4886) 2017-02-21 16:16:27 -08:00
Bram Borggreve
432c0a28e9 feat(@angular/cli): update ascii art to Angular CLI (#4785) 2017-02-21 14:31:02 -08:00
William KOZA
c792c9f8b8 feat(@angular/cli): add async method in Jasmine Tests blueprints (#4775) 2017-02-21 14:29:11 -08: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
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
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
d2bef98bb9 feat(@angular/cli): ng e2e defaults to random port (#4753)
BREAKING CHANGE: `ng e2e` will use a random port for serving by default
instead of using 4200.
2017-02-17 19:53:22 +00:00
Filipe Silva
b6d851140d fix(@angular/cli): show help on just ng command (#4780)
Fix #4776
2017-02-17 11:15:36 -08:00
Filipe Silva
53994ce1bb refactor(@angular/cli): remove version from schema.json (#4796)
Followup from #4795
2017-02-17 11:12:39 -08: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
Filipe Silva
6d5dfa01c0 test: add license test (#4561)
* test: add license test

* only check prod dependencies

* remove findup dep

* also check dev deps

* add map-stream to ignore list

* remove license-checker

* add comment

* use logger

* fix lint errors
2017-02-17 14:49:04 +00:00
Filipe Silva
ab06196150 fix(@angular/cli): add $schema as a schema prop (#4779)
Fixes "Property $schema is not allowed" error on editors.
2017-02-17 05:52:29 -08:00
Hans Larsen
3ad2856b27
v1.0.0-beta.32 2017-02-16 18:27:54 -08:00
Hans Larsen
50170b9c22
fix(@angular/cli): bug fixes on version and global config 2017-02-16 18:27:45 -08: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
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
Sumit Arora
121c3907dc fix(@angular/cli): fixing the help command (#4726) 2017-02-16 17:03:56 -08:00
Filipe Silva
78313b3148 fix(@angular/cli): use default .map filename (#4742)
Fix #4741

BREAKING CHANGE: sourcemaps now are always [filename].map (e.g `main.bundle.js.map` instead of `main.bundle.map`).
2017-02-16 17:01:43 -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
6b53cd05da
feat(@angular/cli): version shows ejected app or not
And show the CLI config version if its different.
2017-02-16 16:52:02 -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
e0edccf3ee
feat(@ngtools/webpack): add an option to redirect files
It takes multiple paths and not the content, which is cleaner in a configuration.
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
Hans Larsen
f3c3874a47
refactor: removed unused import 2017-02-16 16:52:02 -08:00
Sumit Arora
74573bab3b refactor: rebranding changes (#4602) 2017-02-16 14:58:28 -08:00
Filipe Silva
a22474e0ce refactor(@angular/cli): move stats-json to build only (#4746)
Other commands (like serve) do not support this option, so it should only be in build.
2017-02-16 15:48:54 +00: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
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
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
Filipe Silva
e0aa9868cd build(@angular/cli): fix @angular dep warnings (#4592)
We still need these dependencies as they are peerDeps of @ngtools/webpack.

Partially revert #4473
Fix #4575
2017-02-15 20:02:53 +00: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
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
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
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
Filipe Silva
ca29eabd19 fix(@angular/cli): include polyfills before scripts in ng test
Fix #4545
Close #4656
2017-02-15 12:23:13 +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
dd5dda64f8 refactor(@angular/cli): remove compression plugin (#4702)
Followup from #4618
2017-02-14 22:58:25 +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
Carlo Dapor
26b1ee434a fix(@angular/cli): show blueprints in completion script
Close #4571
2017-02-14 19:59:56 +00:00
Filipe Silva
e55cb8237a feat(@angular/cli): allow component css imports (#4667)
Fix #4285
2017-02-14 11:29:47 -08: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
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
Grant Elliott
98a343016d fix(@angular/cli): don't load old ember config
Close #4057
2017-02-14 18:37:10 +00:00