Keen Yee Liau
c53e875df0
fix(@angular/cli): ng-add should resolve package.json
...
ng-add checks if a specified collection is installed, and if not it'd
proceed to install the package. However, `isPackageInstalled` would, by
default, resolve the main field or the index of the package. Not all NPM
packages specify the main field or provide an index file. It should
be sufficient to just check the presence of `package.json` to detect
whether a package is installed or not.
For example, `ng add @angular/bazel` should not install the package if
it's already installed locally. `@angular/bazel` does not specify a main
field not an index file in its `package.json`.
2019-01-29 14:13:44 -08:00
Charles Lyding
b956db6262
fix(@angular/cli): 'ng add' selects supported version via peer dependencies
...
If no version specifier is supplied `ng add` will now try to find the most recent version of the package that has peer dependencies that match the package versions supplied in the project's package.json
2019-01-21 20:27:20 -08:00
Judy Bogart
21894b714b
docs: add multi-app technique to ng new description
2019-01-18 12:06:59 -08:00
Charles Lyding
f066e99e3a
feat(@angular/cli): initial minimal BEP support
2018-12-11 11:58:05 -08:00
Alan Agius
bc76d0c273
refactor(@angular/cli): move project name being linted logic to builder
2018-12-06 11:24:27 -08:00
Carlo Dapor
fddd71009b
docs: remove spurious Unicode character at the end of update-long.md
...
There is an extra character (\u200c) at the end of the line starting with "ng add".
2018-11-26 10:22:50 -08:00
Judy Bogart
b626ca7c5e
docs: add v7 instructions to ng update cmd
2018-11-16 15:15:29 -08:00
Judy Bogart
268ce42933
docs: fix typos
2018-11-16 15:15:29 -08:00
Alan Agius
26245c0c53
docs: update long descriptions for test, e2e and lint
...
Closes #12930
2018-11-14 12:40:01 -08:00
clydin
43aabb4be6
fix(@schematics/update): improve npmrc discovery ( #12871 )
...
* fix(@schematics/update): improve npmrc discovery
* feat(@angular/cli): support yarnrc options during update when using yarn
2018-11-14 10:30:00 -08:00
Judy Bogart
9da4bdca81
docs: copy edit
...
Closes #12837 .
Closes #12898 .
2018-11-13 13:10:20 -08:00
Judy Bogart
7029eee980
docs: add links to workspace-config page
2018-11-13 13:09:51 -08:00
Judy Bogart
deadbaf392
docs: fix run syntax
2018-11-13 13:09:51 -08:00
Judy Bogart
f454b7cd17
docs: remove uglify reference
2018-11-13 13:09:51 -08:00
Judy Bogart
c695c3ab27
docs: edit build description
2018-11-13 13:09:50 -08:00
Judy Bogart
1c39f54a24
docs: edit run description
2018-11-13 13:09:50 -08:00
Judy Bogart
b07fbee0b1
docs: edit run terminology
2018-11-13 13:09:50 -08:00
Judy Bogart
8f7fe87fd2
docs: edit and expand command docs
2018-11-13 13:09:50 -08:00
clydin
5e354d17f1
feat(@angular/cli): autodetect default package manager ( #12753 )
2018-11-06 22:00:40 -08:00
Filipe Silva
eef66f0f65
fix(@angular/cli): error out when command json is invalid
2018-11-01 08:26:28 -07:00
Alex Eagle
21956ca25f
docs: minor updates to command reference
...
Don't mention Architect
We don't inline resources anymore
Minor grammar tweaks
Split out a couple more long descriptions so the short description is plain text
2018-10-16 11:18:16 -07:00
Judy Bogart
3ad551c2ff
docs: correct json syntax
2018-10-16 11:18:16 -07:00
Judy Bogart
6ea5c1f566
docs: mention prompts
2018-10-16 11:18:16 -07:00
Judy Bogart
0ae37346b1
docs: expand doc for initial cmds
2018-10-16 11:18:16 -07:00
clydin
0ae84755c7
docs(@angular/cli): correct e2e long description field ( #12561 )
2018-10-11 10:40:41 -07:00
Judy Bogart
f48a1630ba
docs: cli command docs ( #12520 )
2018-10-10 14:50:06 -07:00
clydin
d45bce2e8b
refactor(@angular/cli): update eject command message ( #12525 )
2018-10-10 12:11:26 -07:00
Hans
4493d885da
docs: start rewriting docs
2018-10-05 12:02:45 -07:00
Alan Agius
80163ce0da
fix(@angular/cli): ng update --help
shows --packages
twice ( #12470 )
...
* refactor: add a better `description` for `packages`
* fix(@angular/cli): `ng update --help` shows `--packages` twice
Closes #12468
2018-10-04 13:34:17 -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
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
Charles Lyding
91cf2d7b9f
fix(@angular/cli): allow global config command outside project
...
Fixes #12296
2018-09-25 17:05:15 -04: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
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
Charles Lyding
c12d3ee329
refactor(@angular/cli): correct implicit returns
2018-09-19 11:32:39 -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 Larsen
30b0cbda0d
refactor(@angular/cli): automated JSON schema interface generation
2018-09-13 16:44:17 -07:00
Hans
66fbc59767
feat(@angular/cli): add long description and suboption option type
2018-09-06 07:37:48 -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
75d682b271
refactor(@angular/cli): use smart default instead of overwriting args
2018-09-06 07:37:48 -07:00
Hans
189563d277
refactor(@angular/cli): rename getset command to deprecated
2018-09-06 07:37:48 -07:00
Charles Lyding
fd6bba38a0
fix(@angular/cli): properly type config command value option
2018-08-29 09:25:56 -07:00
Charles Lyding
e177849f44
fix(@angular/cli): correct update command packages option type
2018-08-29 09:25:56 -07:00
Charles Lyding
489f0e9055
feat(@angular/cli): initialize a console prompt provider for schematics
2018-08-29 09:25:56 -07:00