108 Commits

Author SHA1 Message Date
Alan
70a4cbe306 style: enable no-debugger and no-console tslint rules 2019-06-27 09:28:35 -07:00
Alan
d7460517cf fix(@angular/cli): log file path normalization
In windows the logfile path in the console will be printed with both back and forward slashes if not normalized.
2019-06-25 13:28:47 -07:00
Charles Lyding
c4313f55e4 refactor(@angular/cli): unify color handling and support 2019-06-24 17:27:59 -07:00
Charles Lyding
3dced5491b feat(@angular/cli): log unhandled exceptions
Whenever an unhandled exception during command processing occurs, the message and stack trace will be saved to a debug log located in a temporary directory.  The user will be informed of the log location as well as the exception message and instructions to file a bug report at the GitHub repository.
2019-06-17 12:14:20 -07:00
Charles Lyding
a70932b1ac refactor(@angular/cli): standardize color handling and support checking
Node.js 10+ provides built-in functionality to test for color support based on chalk's `supports-color` package as well as several others. This alleviates the need for custom code or third-party packages to determine color support.  In addition for this PR, the `ansi-colors` package is added to the CLI which provides color, cross-platform symbol, and style/color removal support.  The package is light-weight, contains typings, and has no dependencies. The removal support is leveraged to remove all styling from logger messages when color is not supported.  This removes a current defect in which color/styling is still displayed if generated manually or via methods that do not perform supportability checks.  Finally, the typically used console functions are overriden to leverage the logger to ensure that the color processing is applied to third-party code (e.g., webpack internally as well as some of its loaders and plugins) which output to the console directly.
2019-06-17 11:03:21 -07:00
Matt Lewis
ef981d63b7 fix(@angular/cli): add analytics option to options schema 2019-06-06 14:16:23 -07:00
Filipe Silva
0f9de92dcb feat(@angular-devkit/build-angular): remove experimentalImportFactories option
It will just be always be used when applicable.

Fix #14218
2019-04-22 16:16:58 -07:00
Filipe Silva
92913e46b1 fix(@angular/cli): add missing experimentalImportFactories to schema 2019-04-12 12:21:13 -07:00
Filipe Silva
e6bba9eaf9 fix(@angular/cli): update config schema for karma webworker 2019-04-10 08:43:14 -07:00
Filipe Silva
ed0e6aab57 feat(@angular-devkit/build-angular): support TS web workers 2019-04-02 04:49:34 -07:00
Jason Miller
c630d5f811 feat(@angular-devkit/build-angular): support module web workers.
Supports new Worker(...,{type:module}) using github.com/googlechromelabs/worker-plugin
2019-04-02 04:49:34 -07:00
Charles Lyding
cfa1649fdd refactor(@angular/cli): use standard node resolution methods where possible 2019-03-30 18:36:22 -07:00
Charles Lyding
be5e2fbfe5 fix(@angular/cli): remove redundant typescript/compiler-cli compatibility check
Angular 5.0+ has a full peer dependencies setup (with 6.0+ also having a configurable runtime error check) to ensure that an appropriate version of typescript is available for compilation.  Angular CLI 8.0+ does not support Angular versions prior to these and therefore the warning is redundant.  For the case where the developer wishes to use an unsupported TypeScript version, the developer would need to adjust two similar but differently name settings in two different configuration files.
2019-02-20 10:36:52 -08:00
Charles Lyding
94b087c9e1 fix(@angular-devkit/build-angular): disable by default stylesheet root relative URL rebasing
BREAKING CHANGE:
Root relative URLs are a standardized method to reference a resource path from the root of a host.  The previous behavior of the Angular CLI prevented this from occuring and resulted in an inability to reference stylesheet assets in this manner.  The initial reason for this behavior is no longer present in the internal implementation of the Angular CLI.  Therefore, this now unnecessary and non-standard behavior is being phased out.  If an application currently relies on this behavior, a compatibility option `rebaseRootRelativeCssUrls` has been provided for the 8.x release cycle to facilitate transition away from this non-standard and limiting behavior.  The recommended method to transition is to use relative paths within the source stylesheet.  This allows the build system to process and generate a full URL for the asset.
2019-02-19 10:14:46 -08:00
Charles Lyding
c4376d067f fix(@angular/cli): explicitly define console color logging 2019-02-15 08:01:41 -08:00
Alan
daab547731 docs: remove analyse link from statsJson description
https://webpack.github.io/analyse has been broken for over a year and it seems that it is no longer maintained.

See  https://github.com/webpack/analyse/issues/30

Closes #10589
2019-02-13 15:26:12 -08:00
Charles Lyding
a6f51f566e feat(@angular/cli): support pnpm as a package manager option 2019-02-08 16:06:11 -08:00
Alan
4718de4dae feat(@schematics/angular): only support known style extentions
Fixes #13149
2019-01-18 11:56:19 -08:00
Charles Lyding
e3a148a74b feat(@angular-devkit/build-angular): conditional ES2015 polyfill loading 2019-01-15 14:17:55 -08:00
Judy Bogart
4729397a68 docs: dev server 2018-12-26 12:31:49 -08:00
Judy Bogart
019a4df631 docs: clarify public-host option 2018-12-26 12:31:49 -08:00
Judy Bogart
d6c0e6fdef docs: edit ng serve option doc 2018-12-26 12:31:49 -08:00
Alan Agius
a12a4e02a4 feat(@schematics/angular): consistent naming of options and arguments that do the same thing
This aligns options that do the same thing:
1) `skipSpecs` and `spec` has been deprecated in favor of `skipTests`.
2) `styleext` has been deprecated in favor of `style` since the latest is two words.

Fixes #12784
2018-12-11 11:55:54 -08:00
Alan Agius
a613a9759e style: add spacing to error message 2018-12-06 11:49:20 -08:00
Alan Agius
6b65e4cbc3 feat(@angular/cli): update optimization options 2018-12-06 11:44:27 -08:00
Alan Agius
8516d68213 feat(@angular-devkit/build-angular): fine grain settings for sourceMaps (#13062)
* feat(@angular/cli): update schema to match new `sourceMap`

* feat(@angular-devkit/build-angular): fine grain settings for sourceMaps

This PR add more control over which sourceMaps you want, Now you can enable sourceMaps for scripts only, styles only or both. Also we added another functionality which are hidden sourcemaps. These are normaly used for error reporting tools.

Fixes #7527
2018-11-30 13:11:52 -08:00
Mathou54
81670ae13b docs(@angular/cli): change default test watch flag (#13051) 2018-11-30 12:02:58 -08:00
Alan Agius
1d5d5153f3 feat(@angular/cli): add resourcesOutputPath to schema 2018-11-15 17:09:43 -08:00
Alan Agius
b659f1eef6 fix(@angular/cli): add missing ngswConfigPath to schema 2018-11-14 12:48:24 -08:00
Alan Agius
bd4dc38359 refactor: use createConsoleLogger and remove duplicate code (#12787) 2018-11-08 10:30:41 -08:00
Alan Agius
6e0b60df32 fix(@angular/cli): errors and warnings are hard to read in windows cmd (#12767)
* fix(@angular-devkit/core): errors and warnings are hard to read in windows cmd

Closes #12755

* fix(@angular/cli): errors and warnings are hard to read in windows cmd

Closes #12755
2018-10-31 21:03:03 -07:00
Charles Lyding
5af69ba43b refactor(@angular/cli): remove rxjs direct dependency 2018-10-31 14:53:56 -07:00
Alan Agius
f52f043e4f docs: update descriptions 2018-10-24 13:11:55 -07:00
Charles Lyding
9ebf280697 fix(@angular/cli): use stderr for all diagnostic related log messages 2018-10-16 10:53:19 -07:00
Noel Mace
317602e40d refactor(@angular/cli): remove v8-profiler typings
Remove dependency to the @types/v8-profiler Profiler type as we don't want to depend on it.

See https://github.com/angular/angular-cli/pull/12411#discussion_r221688065
2018-10-03 16:35:54 -07:00
Noel Mace
93ccb82341 style: disable no-implicit-dependency v8-profiler
We only use @types/v8-profiler, which is a repository dev dependency, and v8-profiler-node8
is a "when needed" dependency.
2018-10-03 16:35:54 -07:00
Noel Mace
42f827ba36 build: add v8-profiler typings
After some refactoring on the angular/cli init, v8-profiler typing is required
in order to fix a no-any lint error.
2018-10-03 16:35:54 -07:00
Noel Mace
3de49db38e fix(@angular/cli): capture CPU profile
Replace the v8-profiler dependency with v8-profiler-node8 as the first one
doesn't support node 8 and 10, and that @angular/cli support only node 8
and 10.
2018-10-03 16:35:54 -07:00
Hans Larsen
3fd6afc7f8 feat(@angular-devkit/build-angular): add --reporters option to test
It was a regression, and used by enough people on CI. No reason it should be
omitted and karma.conf.js only.

Fixes #11376
2018-10-01 07:44:06 -07:00
Hans Larsen
a13d74cd98 docs(@angular/cli): add progress to extractI18n workspace schema 2018-09-27 12:45:42 -04:00
Alan Agius
64927e8e17 feat(@angular/cli): add support for ShadowDom as a viewEncapsulation value 2018-09-26 08:53:43 -04:00
Alan Agius
e6f9ae98f5 fix(@angular/cli): fix schema error Property targets is not allowed
Closes #12192
2018-09-19 11:40:02 -07:00
Charles Lyding
b502847c73 build: remove unneeded gitignore file 2018-09-19 11:33:10 -07:00
Hans
ec41e6c828 fix(@angular/cli): chunk log so output is piped properly
Previously the output of some commands with long one-line log would not be
drained properly when piping it, causing it to be truncated.
2018-09-14 21:29:31 -07:00
Charles Lyding
57a32c2ef5 fix(@angular/cli): show an error if invalid global config file found
Fixes #12198
2018-09-12 16:00:04 -07:00
Alan Agius
bdebc9e0cb feat(@angular-devkit/build-angular): add ignore option to assets object
You can now provide an array of globs to `ignore` from copying

Closes #11850
2018-09-06 08:36:16 -07:00
Hans
7ffd3b3033 refactor(@angular/cli): rename project to workspace and clean up
Removed unnecessary fields in interfaces, added some comments. Overall QoL.
2018-09-06 07:37:48 -07:00
Hans
de7ec84872 feat(@angular/cli): add --helpJson (or --help-json) too all commands
And other refactors.

The interface for the JSON is available in command.ts (the CommandDescription).
2018-09-06 07:37:48 -07:00
Hans Larsen
20b5d916d2 feat(@angular/cli): use STDERR to report warnings 2018-08-21 09:57:34 -07:00
Alan Agius
9107f3cc4e docs: update optimization description (#11862)
At the moment, the definition might suggest that `optimization` takes some values other than `true` and `false`

Close: #11856
2018-08-15 15:58:22 -07:00