82 Commits

Author SHA1 Message Date
Mike Brocchi
329e23088c fix(@angular/cli): Update project detection logic and rename global config file
fixes #10453
2018-04-27 10:53:53 -07:00
Filipe Silva
3ca350fba7 fix(@angular/cli): use workspace.getProjectByPath 2018-04-26 15:21:54 -07:00
Charles Lyding
f5c014ba52 refactor(@angular/cli): detect current project via CWD 2018-04-12 10:28:08 -04:00
Charles Lyding
bda0dd724b refactor(@angular/cli): remove lodash and ember-cli-string-utils usage 2018-04-09 16:19:12 -07:00
Charles Lyding
9d845297bd refactor(@angular/cli): remove common-tags usage 2018-04-04 19:38:40 +01:00
Mike Brocchi
645e0c5f81 fix(@angular/cli): Move update check to inProject command logic
fixes #10145
2018-04-04 10:26:43 -07:00
Charles Lyding
cbc824a20c refactor(@angular/cli): cleanup config schematic defaults 2018-03-29 12:15:50 -04:00
Hans Larsen
9a9bc00a45 feat: remove ngtools entirely from this repository 2018-03-29 08:15:03 -07:00
Charles Lyding
c34db58cee fix(@angular/cli): honor global config command option 2018-03-28 20:38:21 -07:00
Filipe Silva
7d27bf7b55 feat(@angular/cli): use devkit/build-webpack in projects 2018-03-28 21:38:25 +01:00
Charles Lyding
64ebf9cf63 feat(@angular/cli): update cli config with workspace support 2018-03-27 21:03:18 -07:00
Filipe Silva
41320bf8fd feat(@angular/cli): use workspace for architect commands 2018-03-19 11:26:38 -07:00
Filipe Silva
b75b21f13c test: re-enable disabled architect build tests 2018-03-16 10:59:05 -07:00
Filipe Silva
38c8463280 feat(@angular/cli): use architect 2018-03-16 10:59:05 -07:00
Hans Larsen
093e4ea55c feat(@angular/cli): add the add command 2018-03-09 00:00:58 -05:00
Charles Lyding
56b5a971e5 refactor(@angular/cli): remove unneeded production webpack config partial 2018-02-26 19:47:06 +00:00
Charles Lyding
c787091881 feat(@angular/cli): add index html plugin 2018-02-23 21:20:36 +00:00
Charles Lyding
167f6fb958 feat: update to webpack 4 2018-02-23 21:20:36 +00:00
Charles Lyding
804472d284 refactor(@angular/cli): remove denodeify dependency 2018-02-20 10:27:20 -08:00
cexbrayat
7f9931d28b feat(@angular/cli): better budget error messages
Improves error messages for budgets.

Before:

     ERROR in budgets, maximum exceeded for total scripts.

After:

    ERROR in budgets, maximum exceeded for total scripts. Budget 500 kB was exceeded by 83.9 kB.
2018-01-31 19:21:43 -05:00
Alex Rickabaugh
935389997e feat(@angular/cli): copy safety SW from NPM on SW build
Deploying apps with service workers can be tricky. This commit has
the CLI copy the safety-worker.js file from @angular/service-worker
(if it's present) into the dist/ directory of the bundled app, both
providing a quick option for developers who need to deactivate an
already installed worker. It also copies the file into the path
dist/worker-basic.min.js, used by apps built on the previous SW.
Once a SW path is deployed on the web, it needs to be served until
all users have migrated off of that path.
2018-01-30 09:10:32 +00:00
Bram Gotink
4a8f5bdc65 fix(@angular/cli): Allow service-workers package to be installed in parent node_modules
The checks on existence of @angular/service-worker used the node_modules relative to the
project root directly, but those don't exist when using yarn workspaces or lerna. Use
resolve.sync instead, which looks up the tree to parent node_modules folders.

A similar change is required when loading the service worker script from the
@angular/service-worker package. Switch to require.resolve here as well.

Fixes #8300
2018-01-25 15:53:49 +00:00
Mike Brocchi
5a736bd90b refactor: Update rxjs operators to be lettable
Fixes #8912
2018-01-23 09:55:02 -08:00
Tobias Schulte
aa8b80c051 fix(@angular/cli): replaced bullet character due to unwanted beeping sounds on windows systems 2018-01-23 09:53:36 -08:00
Mike Brocchi
9c871b003a feat(@angular/cli): Ability to specify budgets for your apps
Closes #7139
2018-01-18 11:34:29 -08:00
Filipe Silva
93e5d460b4 feat(@angular/cli): use devkit core formats for schematics
Followup to https://github.com/angular/devkit/pull/334
2018-01-18 13:03:19 -05:00
Filipe Silva
788c8f9081 fix(@angular/cli): show only changed chunks on build
For projects with a lot of lazy modules the rebuild messages can easily fill the whole console window.

This PR shows only chunks that changed instead of showing all chunks.

Before:
```
$ ng serve
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
Date: 2017-12-14T14:56:13.707Z
Hash: 7490b2942c48ffcf0f0f
Time: 7317ms
chunk {inline} inline.bundle.js (inline) 5.79 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 725 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 577 kB [initial] [rendered]
chunk {styles} styles.bundle.js (styles) 35 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 6.45 MB [initial] [rendered]

webpack: Compiled successfully.
webpack: Compiling...
Date: 2017-12-14T14:56:17.054Z
Hash: dbb03cc0994e8bf69e76
Time: 310ms
chunk {inline} inline.bundle.js (inline) 5.79 kB [entry]
chunk {main} main.bundle.js (main) 725 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 577 kB [initial]
chunk {styles} styles.bundle.js (styles) 35 kB [initial]
chunk {vendor} vendor.bundle.js (vendor) 6.45 MB [initial]

webpack: Compiled successfully.
webpack: Compiling...
Date: 2017-12-14T14:56:20.290Z
Hash: fe53cbcd529dd2508cfc
Time: 267ms
chunk {inline} inline.bundle.js (inline) 5.79 kB [entry]
chunk {main} main.bundle.js (main) 725 kB [initial]
chunk {polyfills} polyfills.bundle.js (polyfills) 577 kB [initial] [rendered]
chunk {styles} styles.bundle.js (styles) 35 kB [initial]
chunk {vendor} vendor.bundle.js (vendor) 6.45 MB [initial]

webpack: Compiled successfully.
```

After:
```
$ ng serve
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
Date: 2017-12-14T14:53:40.216Z
Hash: 44065f5ec5c4c8cf884a
Time: 7312ms
chunk {inline} inline.bundle.js (inline) 5.79 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 724 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 576 kB [initial] [rendered]
chunk {styles} styles.bundle.js (styles) 35 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 6.45 MB [initial] [rendered]

webpack: Compiled successfully.
webpack: Compiling...
Date: 2017-12-14T14:53:42.089Z
Hash: 492a7350b12ec1557b61
Time: 241ms
chunk {main} main.bundle.js (main) 725 kB [initial] [rendered]
4 unchanged chunks

webpack: Compiled successfully.
webpack: Compiling...
Date: 2017-12-14T14:53:49.762Z
Hash: 7490b2942c48ffcf0f0f
Time: 296ms
chunk {polyfills} polyfills.bundle.js (polyfills) 577 kB [initial] [rendered]
4 unchanged chunks

webpack: Compiled successfully.
```

Fix #8621
2018-01-09 10:19:27 -05:00
Charles Lyding
8cea8ffdc2 refactor(@angular/cli): add webpack integrated scripts plugin 2017-12-13 17:09:17 -05:00
bryanrideshark
00bc1f090c fix(@angular/cli): Fix replace('/') to work using Regex. 2017-12-11 14:56:47 -05:00
cexbrayat
f9d8c7aefe fix(@angular/cli): allow RCs and betas for @angular/service-worker
It was not possible to use `5.1.0-rc.1` previously,
because of how `semver.satisfies()` works (see https://github.com/npm/node-semver#prerelease-tags).
This relaxes the check by using `semver.gte()`.
2017-12-04 15:25:15 -05:00
Mike Brocchi
233338f170 fix(@angular/cli): Correct service worker error message
Fixes #8490
2017-11-22 17:02:37 -08:00
Filipe Silva
a2c416614d fix(@angular/cli): fix generate app root in windows
Fix #7960
2017-11-20 09:12:15 -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
99e1b5ac5c fix(@angular/cli): don't show chunk parents on stats
It wasn't shown before and is quite spammy now.

Fix #8144
2017-10-31 12:29:23 -07:00
Filipe Silva
fd1fefef8c fix(@ngtools/webpack): enforce typescript dep without peerDep 2017-10-25 10:32:57 -07:00
Filipe Silva
a28a967309 fix(@angular/cli): remove typescript dependency 2017-10-25 10:32:57 -07:00
Filipe Silva
fd82e1870e build: update chalk to 2.2
`chalk@2.2` is incompatible with `@types/chalk`.
2017-10-24 12:03:55 -07:00
Hans Larsen
aa0cfc84c3 refactor: the schematics engine is really a singleton
Using different engines in Schematics is dangerous.
2017-10-16 18:37:25 +01:00
vsavkin
b6dfa8d52c feat(@angular/cli): make appRoot customizable 2017-10-04 14:33:43 -04:00
Filipe Silva
dea04b1d57 feat(@angular/cli): support ES2015 target 2017-09-13 12:26:00 -07:00
Filipe Silva
38a7ab47c6 fix(@angular/cli): fix asset watching
https://github.com/kevlened/copy-webpack-plugin is now used instead of the custom plugin, it has since implemented the features we needed.

Fix #7521
2017-09-05 21:45:19 +01:00
Filipe Silva
aa1decff10 fix(@angular/cli): fix colors on git bash (#7569)
Fix #7239
2017-09-04 09:50:03 +01:00
Filipe Silva
e8f27f029a feat(@angular/cli): support sourcemaps and minification in scripts
Adds sourcemap and minification to javascript added via the `scripts` array in `.angular-cli.json`.

`script-loader` is no longer used, which should help with CSP since it used `eval`.

Scripts will no longer appear in the console output for `ng build`, as they are now assets instead of webpack entry points.

It's no longer possible to have the `output` property of both a `scripts` and a `styles` entry pointing to the same file. This wasn't officially supported or listed in the docs, but used to be possible.

Fix #2796
Fix #7226
Fix #7290

Related to #6872
2017-08-17 16:38:35 -04:00
Charles Lyding
0ea05eb906 refactor(@angular/cli): additional unused code removal 2017-08-17 15:02:09 -04:00
Charles Lyding
4b58204b3b refactor(@angular/cli): remove unneeded ember-cli blueprint files 2017-08-17 09:54:58 -04:00
Mike Brocchi
128187e4c1 feat(@angular/cli): Update generate & new to use schematics
This feature is related to #6593
2017-08-16 18:24:43 -04:00
Filipe Silva
138f2b8cd3 fix(@angular/cli): show warnings on serve
Errors and warnings neet to be printed separately.

Followup to #6989
Fix #7213
2017-07-31 21:17:19 +01:00
Hans Larsen
61b4e2202f feat(@angular/cli): rewrite stats output to properly show the asset size
This is a feature in principle; the output is changed. The stats themselves dont though.
2017-07-21 14:42:55 -04:00
Filipe Silva
aebf4c89b1 fix(@angular/cli): wait for install to finish before exiting 2017-07-18 10:21:41 -04:00
Alexandr Marchenko
b0576d6d05 fix(@angular/cli): check package manager existance before installing packages 2017-07-05 16:47:47 -07:00