26 Commits

Author SHA1 Message Date
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
Hans Larsen
50170b9c22
fix(@angular/cli): bug fixes on version and global config 2017-02-16 18:27:45 -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
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
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
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
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
6febf5c091 refactor(@angular/cli): simplify default arguments in angular-cli.json (#4389)
Fixes #4137
2017-02-15 17:06:40 -08:00
Filipe Silva
dd5dda64f8 refactor(@angular/cli): remove compression plugin (#4702)
Followup from #4618
2017-02-14 22:58:25 +00:00
Filipe Silva
e55cb8237a feat(@angular/cli): allow component css imports (#4667)
Fix #4285
2017-02-14 11:29:47 -08:00
Alex Rickabaugh
cb2e418d58
feat: add support for @angular/service-worker and manifest generation
Adds the flag 'serviceWorker' to angular-cli.json that enables support for @angular/service-worker.

When this flag is true, production builds will be set up with a service worker. A ngsw-manifest.json file
will be generated (or augmented) in the dist/ root, and the service worker script will be copied there.
A short script will be added to index.html to register the service worker.

@angular/service-worker is a dependency of @angular/cli, but not of generated projects. It is desirable
for users to be able to update the version of @angular/service-worker used in their apps independently
of the CLI version. Thus, the CLI will error if serviceWorker=true but @angular/service-worker is not
installed in the application's node_modules, as it pulls all the service worker scripts from there.

If the flag is false the effect on the CLI is minimal - the webpack plugins associated with the SW are
not even require()'d.

Closes #4544
2017-02-09 15:16:48 -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
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
Sumit Arora
aa87de70e3 fix(config): tsconfig should support other formats too (#4469) 2017-02-07 19:09:40 -08:00
Vyacheslav Chub
85bc88a603
fixed(webpack): support for cur and ani cursor files
Closes #2733
Closes #4305
2017-02-07 17:48:29 -08:00
Hans
2797a8965c fix(@angular/cli): add environment file to compilerHost (#4475)
Fixes #4375
2017-02-07 17:46:39 -08:00
clydin
cbab6f8c5f refactor(test): remove unused remap-istanbul dependency (#4407) 2017-02-06 19:41:40 -08:00
Bram Borggreve
73d562868e fix(webpack): remove usage of fallbackLoader and loader (#4435) 2017-02-06 10:11:59 +00: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
0dc2200004 docs: get rid of remaining angular-cli references (#4398)
This commit changes 2 things:
1. Changes remaining angular-cli package references to @angular/cli.
2. Where angular-cli was mentioned as a project name, it's been changed
   to Angular CLI.

Where angular-cli was meant to mean the repository name, it's been left
unchanged.
2017-02-03 11:49:52 +00: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