Mike Brocchi
db39ccf789
refactor: Refactor help output
2017-11-01 10:02:30 -07:00
Mike Brocchi
f3e84184ea
fix(@angular/cli): Show detailed help for generate
...
Fixes #7723
2017-10-27 15:36:35 -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
Filipe Silva
28e66f352d
fix(@angular/cli): improve rebundling speed
...
Forcing TypeScript to output commonjs modules instead of es2015 modules drastically improves rebuild speeds, especially for AOT.
This PR forces this option on the following modes:
- `ng build --watch --target=development`
- `ng serve --target=development`
- `ng test --code-coverage=false`
Please note that `--target=development` and `--code-coverage=false` are the defaults.
See https://github.com/webpack/webpack/issues/5863 for the webpack issue.
2017-10-20 11:00:51 -07:00
Hans Larsen
0d6aaf81ef
refactor: simplify the schematic-run task a bit
2017-10-16 18:37:25 +01:00
Hans Larsen
9b3f2cd97f
fix(@angular/cli): do not limit arguments of schematics
...
The schema of a Schematic can be any valid schema. The CLI was erroring if
it included anything else than strings or booleans.
2017-10-16 18:37:25 +01:00
Hans Larsen
5b0af09fc3
revert: "refactor: move all CLI-specific exceptions to different options ( #7981 )"
...
This reverts commit ae47b46563e2bcaf31aab9f992691e42d3e04eae.
2017-10-09 22:33:11 -07:00
Hans
ae47b46563
refactor: move all CLI-specific exceptions to different options ( #7981 )
...
We made too many shortcuts for passing data in and custom schematics could not
work properly.
This is temporary as we will likely move some more logic into schematics tooling
to be able to pass only the raw args and the CLI config, but for now this is
enough to unblock AngularMix.
2017-10-09 22:28:29 -07:00
Filipe Silva
d430abe9e3
feat(@angular/cli): always use new compiler with Angular 5
2017-10-02 12:52:02 -04:00
Filipe Silva
335bd04be4
feat(@angular/cli): support xi18n with Angular 5
2017-09-28 21:12:31 +01:00
Filipe Silva
ecb91bed8f
feat(@ngtools/webpack): add JIT support to AngularCompilerPlugin
2017-09-28 21:12:31 +01:00
Charles Lyding
977be3fa0c
fix(@angular/cli): use relative paths within ejected config
2017-09-28 18:21:01 +01:00
Charles Lyding
e786895863
feat(@angular/cli): automatically detect the live-reload client connection address
2017-09-27 12:30:06 +01:00
Suguru
128b92adb5
fix(@angular/cli): open app with servePath
2017-09-27 12:25:31 +01:00
Charles Lyding
afe228ebbf
feat(@angular/cli): always use lint project option if present
2017-09-27 09:29:32 +01:00
Charles Lyding
8f73714a3a
feat(@angular/cli): support subresource integrity validation
2017-09-26 16:27:30 +01:00
Amit Moryossef
a9f670223c
fix(@angular/cli): increase keepAliveTimeout for all Node 8 versions
2017-09-26 11:10:26 +01:00
vsavkin
5421e69eb6
feat(@angular/cli): improve error messages for apps that do not have 'main' defined
2017-09-25 09:56:17 -07:00
Ahsan Ayaz
fa42645861
fix(@angular/cli): Generating component considers default style extension for project now
2017-09-19 21:21:50 -04:00
Filipe Silva
939cd6c02d
feat(@ngtools/webpack): add AngularCompilerPlugin
2017-09-13 16:21:16 -07:00
Filipe Silva
b0fd35ee37
feat(@angular/cli): add --preserve-symlinks to ng test
...
Fix #7081
2017-09-13 12:32:23 -07:00
Filipe Silva
dea04b1d57
feat(@angular/cli): support ES2015 target
2017-09-13 12:26:00 -07:00
Hans Larsen
bf3c519d9f
fix(@angular/cli): use an empty host for ng new
...
Creating the host means listing all files and directory. On large directories
it can be quite expensive. On ng new however we do not need to list everything,
only detect conflicts, so using an empty tree as the host of the schematics
makes sense.
2017-09-06 09:55:57 +01: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
mtraynham
c9c964497a
fix(@angular/cli): Increase keepAliveTimeout for Webpack Dev Server
2017-09-05 11:15:54 +01:00
Mike Brocchi
d6c07c7a81
fix(@angular/cli): New project now respect default styleExt ( #7430 )
...
Fixes #5599
2017-08-22 15:14:21 -07:00
Charles Lyding
9edb30cf2c
fix(@angular/cli): only install packages once for a new project
2017-08-18 10:15:44 -07:00
Charles Lyding
36ceacc375
fix(@angular/cli): ensure new projects have a CLI package version
2017-08-18 10:13:56 -07: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
2c6dde1941
feat(@angular/cli): add option to set dev server's base serve path
2017-08-17 14:45:45 -04:00
Filipe Silva
505d69a13c
feat(@angular/cli): update license-webpack-plugin
...
See https://github.com/xz64/license-webpack-plugin/issues/14 , https://github.com/xz64/license-webpack-plugin/issues/13 .
Fix #7203
2017-08-17 13:43:51 -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
Charles Lyding
bae9d06c7d
fix(@angular/cli): sync webpack stats file content options
2017-08-03 18:05:15 +01:00
christian.scharr
70cf514a28
fix(@angular/cli): exclude node_modules while take account for os specific path separators ( #6870 )
2017-07-31 22:51:41 +01:00
Christian Scharr
b32064f5d5
fix(@angular/cli): use relative path instead of regex to exclude node_modules ( #6870 )
2017-07-31 22:51:41 +01: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
Mike Brocchi
1c7e7bc66b
fix(@angular/cli): Include missing dependency when ejecting
2017-07-31 14:40:27 +01:00
Charles Lyding
bf55bfd044
fix(@angular/cli): remove deprecated json-loader
2017-07-26 21:10:57 +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
FrozenPandaz
6f23636323
feat(@angular/cli): add ability to build bundle for node and export lazy route map
2017-07-20 15:01:25 -07:00
Michael Kühnel
35c89a5647
refactor: Change ejection message
2017-07-19 16:02:30 -04:00
jnizet
6ca6a5e92b
fix(@angular/cli): fix doc command to work with new angular.io
...
- change the URL for the API search
- use google search when --search option is true, since angular.io doesn't have a search page anymore
- improve the help and doc of the doc command
2017-07-19 15:57:15 -04:00
Filipe Silva
aebf4c89b1
fix(@angular/cli): wait for install to finish before exiting
2017-07-18 10:21:41 -04:00
Filipe Silva
fe85750cb7
feat(@angular/cli): add scope hoisting via webpack 3
...
This should result in significant bundle size reduction. For best results, build for production with `--vendor-chunk=false`.
See https://medium.com/webpack/webpack-3-official-release-15fd2dd8f07b for details.
2017-07-10 16:59:08 -07:00
Alexandr Marchenko
b0576d6d05
fix(@angular/cli): check package manager existance before installing packages
2017-07-05 16:47:47 -07:00
Filipe Silva
5a0e80ffd3
feat(@angular/cli): name lazy chunks
...
Before:
```
$ ng build --no-progress
Hash: ff03df269349b817eef4
Time: 11202ms
chunk {0} 0.chunk.js, 0.chunk.js.map 1.61 kB {1} {3} [rendered]
chunk {1} 1.chunk.js, 1.chunk.js.map 1.46 kB {0} {3} [rendered]
chunk {2} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 160 kB {6} [initial] [rendered]
chunk {3} main.bundle.js, main.bundle.js.map (main) 6.38 kB {5} [initial] [rendered]
chunk {4} styles.bundle.js, styles.bundle.js.map (styles) 10.5 kB {6} [initial] [rendered]
chunk {5} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.16 MB [initial] [rendered]
chunk {6} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
```
After:
```
$ ng build --no-progress
Hash: 2bc12a89f40f3b4818b5
Time: 9613ms
chunk {feature.module} feature.module.chunk.js, feature.module.chunk.js.map 1.46 kB {lazy.module} {main} [rendered]
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
chunk {lazy.module} lazy.module.chunk.js, lazy.module.chunk.js.map 1.61 kB {feature.module} {main} [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 6.38 kB {vendor} [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 160 kB {inline} [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 10.5 kB {inline} [initial] [rendered]
chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.16 MB [initial] [rendered]
```
Fix #6700
2017-07-05 14:50:52 -07:00
Filipe Silva
28e4114785
feat(@angular/cli): followup changes to circular dependency detection
...
Flag is now positive instead of negative and shorter, and can now be set on commands as well (`--show-circular-dependencies`).
Dependency was also added to eject as per https://github.com/angular/angular-cli/pull/6813#issuecomment-311567074 .
2017-06-29 11:18:39 -07:00
Charles Lyding
3dbd3ad88e
refactor(@angular/cli): remove unneeded rimraf dependency
2017-06-29 15:49:59 +01:00
Yaroslav Admin
70713bf076
feat(@angular/cli): add flag to specify environment for ng test command
2017-06-29 14:28:11 +01:00