126 Commits

Author SHA1 Message Date
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
774f6d61f3 docs(@angular/cli): how to capture a CPU profile
Add documentation on how to generate a CPU profile capture.
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
Alan Agius
eab4c2e630 fix(@angular/cli): ng update remove duplicate dryRun in help
Closes #12423
2018-10-03 16:34:31 -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
Alan Agius
91e5fc0bfa build: update to TypeScript 3.1 2018-10-01 07:39:59 -07:00
Hans Larsen
aa25a33448 feat(@angular/cli): show project being linted
Fixes #11231
2018-09-27 13:20:19 -04:00
Charles Lyding
5d8af57112 feat(@angular/cli): add --defaults option to ng new
Any option with a default value will not be prompted (if a prompt is defined) and the default will be used instead.

Closes #12084
2018-09-27 12:58:43 -04:00
Hans Larsen
5faf0cb535 fix(@angular/cli): numerical flags should not give 0 if empty
And numerical positional flags will be ignored.

If the value is an empty string, a number conversion would give 0. It is unexpected
from the user standpoint ("--num=" has the user expect a string value).
2018-09-27 12:46:15 -04:00
Hans Larsen
4daa299558 fix(@angular/cli): allow -a=value arguments
If a flag is followed by an equal sign, just treat it as a long name. So
the example above would translate to --a=value, while -abc=123 would be
"-a -b -c=123".

Fixes #12308
2018-09-27 12:46:15 -04:00
Hans Larsen
78a6fabb4a fix(@angular/cli): allow empty string arguments 2018-09-27 12:46:15 -04:00
Hans Larsen
a13d74cd98 docs(@angular/cli): add progress to extractI18n workspace schema 2018-09-27 12:45:42 -04:00
Charles Lyding
9a793494dc build: update rxjs to 6.3 2018-09-26 12:57:56 -04:00
Alan Agius
64927e8e17 feat(@angular/cli): add support for ShadowDom as a viewEncapsulation value 2018-09-26 08:53:43 -04:00
Charles Lyding
d24db32c40 fix(@angular/cli): relax compatible angular check package location 2018-09-26 08:53:14 -04:00
danielhelfand
2397920ff3 docs: npx install information 2018-09-26 08:50:51 -04:00
danielhelfand
feb295d9c1 docs: touching up local installation instructions 2018-09-26 08:50:51 -04:00
danielhelfand
830ba8f5e6 docs: add local installation and specific version installation instructions 2018-09-26 08:50:51 -04:00
Charles Lyding
91cf2d7b9f fix(@angular/cli): allow global config command outside project
Fixes #12296
2018-09-25 17:05:15 -04:00
Alireza Mirian
daf0ec8de8 fix(@angular/cli): suggest windows-compatible typescript install command
Specifying version range in single quote doesn't work in windows CMD and it returns:
> The system cannot find the file specified.
2018-09-25 16:35:03 -04:00
Alan Agius
43fff130a5 fix(@angular/cli): cannot use same target name in when having multiple projects (#12327)
Closes #12320
2018-09-21 12:27:11 -07:00
Hans
0b959d1233 * fix(@angular/cli): remove helpJson and help-json mentions (#12331)
* fix(@angular/cli): remove helpJson and help-json mentions

* ci: use proper --help=json for creating snapshot
2018-09-20 14:45:09 -07:00
Hans
97576ecd13 fix(@angular/cli): do not show stack on argument parse error 2018-09-19 13:02:40 -07:00
Hans
f7f5b28dae feat(@angular/cli): if parsing comes accross an obvious error throw it
We accumulate errors this way, and throw only once at the end, with messages for
all errors.
2018-09-19 13:02:40 -07:00
Hans
b02a7e5f9b fix(@angular/cli): on error finding files, show warning
This should not prevent execution, but is useful to know.
2018-09-19 13:02:40 -07:00
Hans
fcbc7db54f feat(@angular/cli): remove --help-json and add format to help
--help now accepts a value which can be a boolean or a string. If the value
is not understood we simply show a message to the user that it was invalid.
2018-09-19 13:02:40 -07:00
Hans
7d782a3f5e feat(@angular/cli): add support for parsing enums
Options can now contain enumerations of values.
2018-09-19 13:02:40 -07:00
Hans
34818b0346 feat(@angular/cli): add subcommand to options
SubCommands are not tied to the option that triggers them. They
contain a subset of a CommandDescription interface, with at least
a short and long description and usage notes. These are generated
from the subcommand schema (e.g. schematics in case of generate).
2018-09-19 13:02:40 -07:00
Hans
6622aa9d1a refactor(@angular/cli): remove command type
It was really unused.
2018-09-19 13:02:40 -07:00
Hans
86d803e80a docs(@angular/cli): add comments for Command interface 2018-09-19 13:02:40 -07:00
Hans
3bb6548d15 feat(@angular/cli): add usage notes to help JSON 2018-09-19 13:02:40 -07: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
Charles Lyding
c12d3ee329 refactor(@angular/cli): correct implicit returns 2018-09-19 11:32:39 -07:00
Charles Lyding
6cfb72acc2 fix(@angular/cli): support --version option 2018-09-19 09:31:13 -07:00
Hans
af96ccfb65 fix(@angular/cli): fix support for hidden options
They were showing when they should have been hidden.
2018-09-14 21:29:31 -07:00
Hans
d10c9e3104 fix(@angular/cli): fix support for default values in options 2018-09-14 21:29:31 -07:00
Hans
b5fc50fa1c fix(@angular/cli): add support for all variant of alias field name 2018-09-14 21:29:31 -07:00
Hans
afa71a1471 feat(@angular/cli): add help for ng-new schematics
Before it was missing because we need to load the schematics engine for it.
I moved the ng update logic that did this to SchematicCommand.
2018-09-14 21:29:31 -07:00
Hans
06d332ba23 feat(@angular/cli): generate --helpJson will remove collection name
For the default collection.
2018-09-14 21:29:31 -07:00
Hans
3b5dbad5c8 feat(@angular/cli): sort schematics by name in --help-json 2018-09-14 21:29:31 -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
Hans
84e4e8d7d8 fix(@angular/cli): run --help-json now returns a basic help
It was throwing an exception about some targets not being available.
2018-09-14 21:29:31 -07:00
Filipe Silva
b6793bd521 build: use specific engines for built packages 2018-09-14 13:56:43 -07:00
Hans Larsen
30b0cbda0d refactor(@angular/cli): automated JSON schema interface generation 2018-09-13 16:44:17 -07:00
Hans Larsen
0b3d9964a6 refactor(@angular/pwa): automated JSON Schema generation 2018-09-13 16:44:17 -07:00
Charles Lyding
9e7391c685 fix(@angular/cli): warn if targets is present when using a schematic 2018-09-13 16:43:31 -07:00
Charles Lyding
57c049e507 test: update to support targets & architect fields 2018-09-13 16:43:31 -07:00