13 Commits

Author SHA1 Message Date
Charles Lyding
ceeb292a29 refactor(@angular/cli): remove chalk dependency 2018-05-01 10:24:36 -07:00
Filipe Silva
7d27bf7b55 feat(@angular/cli): use devkit/build-webpack in projects 2018-03-28 21:38:25 +01:00
Hans
33a6823df1 feat(@angular/cli): move ng update to using the proper schematic 2018-03-28 10:17:19 +01:00
Charles Lyding
804472d284 refactor(@angular/cli): remove denodeify dependency 2018-02-20 10:27:20 -08:00
Mike Brocchi
ac9c5995d2 feat(@angular/cli): Add update cmd to update angular versions. 2018-01-24 07:46:58 -08:00
Alex Rickabaugh
7b4b2c78d4 feat(@angular/cli): support 5.0.0+ builds of @angular/service-worker 2017-11-06 17:30:38 +00:00
Filipe Silva
6984cc2b68 ci: ignore typescript as an excessive root dep 2017-10-25 10:32:57 -07:00
Hans Larsen
d928c1c8d4 tool(publish): adding a new tool infrastructure with a publish tool. 2017-03-27 17:34:39 -07:00
Hans Larsen
fe69b5b110 ci: add option to ignore imports/requires from dependencies
It needs to be in the file itself where the require/import is made.
2017-03-20 09:20:03 -07:00
Filipe Silva
1e476577c1 fix(@angular/cli): don't fail install due to node-sass (#5282)
This change should reduce the amount of problems on npm installs.

It makes the `node-sass` dependency optional, and so install will not fail when it cannot be installed.

For projects that do not use sass, there is no side-effect of an failed node-sass install.

For projects that do use node-sass and the install failed, they should see the following self-explanatory error message:

```
ERROR in ./src/app/app.component.scss
Module build failed: Error: Missing binding D:\sandbox\master-project\node_modules\node-sass\vendor\win32-x64-51\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 7.x

Found bindings for the following environments:

This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to build the binding for your current environment.
    at module.exports (D:\sandbox\master-project\node_modules\node-sass\lib\binding.js:15:13)
    at Object.<anonymous> (D:\sandbox\master-project\node_modules\node-sass\lib\index.js:14:35)
```

Fix #4429
2017-03-16 20:02:51 +00: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
clydin
0c1c3910dc chore(deps): validate root package.json (#3521) 2016-12-12 13:20:21 -08:00
Hans
901a64f547 fix(dependencies): reduce the dependencies further. (#3488)
Added a script that tells you if you are missing dependencies and if any dependencies are not needed.
2016-12-08 17:24:29 -08:00