173 Commits

Author SHA1 Message Date
Hans
3a28d4c142 feat(@angular-devkit/core): add a new JsonSchema type
A Schema is either an Object or a boolean. We could reduce JsonSchema scope further
by adding properties, but a schema is a really complex type so its not worth the
effort.
2018-12-14 10:55:04 -08:00
cexbrayat
3684df8aca fix(@angular/cli): remove redundant period in deprecation warning
As `parser.ts` currently always adds a period at the end of the warning message and the `x-deprecated` messages also have one, this removes the always added one to avoid a double period in the warning message.

Fixes:

    Option "styleext" is deprecated: Use "style" instead..

to:

    Option "styleext" is deprecated: Use "style" instead.
2018-12-14 10:43:40 -08:00
Charles Lyding
f066e99e3a feat(@angular/cli): initial minimal BEP support 2018-12-11 11:58:05 -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
31783140b8 fix(@angular/cli): show full path to project definition when already exists
Fixes #13138
2018-12-06 11:50:08 -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
45b6df511f fix(@angular-devkit/build-angular): lint non human readable formatters produces invalid output
fixes #12674
2018-12-06 11:24:27 -08:00
Alan Agius
bc76d0c273 refactor(@angular/cli): move project name being linted logic to builder 2018-12-06 11:24:27 -08:00
Michael Nahkies
7d88182935 fix(@angular/cli): pass arguments to all targets
When running a command with args against multiple targets, all targets
should be given the args. As parseArguments was mutating the passed args
array this wasn't the case. Fix by not mutating the array.

This was especially noticeable when using the `ng lint --fix` command
on a newly generated project, as files in the app target would be fixed,
but e2e target would be only be linted (with no fix)

Possibly closes #10657, #10656, #11005
2018-12-06 11:21:23 -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
Michael O'Keefe
db0fc7759b feat(@angular/cli): Added support for multiselect list prompt (#13031)
* feat(@angular/cli): Added support for multiselect list prompt

* If multiselect option is true use the checkbox
   inquirer prompt type, otherwise use list.

* feat(@angular-devkit/core): Added support for multiselect list prompt

* Added multiselect to PromptDefinition interface and usages
2018-11-30 12:01:57 -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
Hans Larsen
3e9705f31b feat(@angular/cli): add warning for overriding flags in arguments
Fixes #12948
2018-11-19 17:20:34 -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
d2a29afd48 fix(@angular/cli): handle case senstive aliases
Closes #12780
2018-11-15 17:09:54 -08:00
Alan Agius
1d5d5153f3 feat(@angular/cli): add resourcesOutputPath to schema 2018-11-15 17:09:43 -08:00
Charles Lyding
5e7f995001 fix(@angular/cli): improve architect command project parsing 2018-11-15 17:09:30 -08:00
Alan Agius
b659f1eef6 fix(@angular/cli): add missing ngswConfigPath to schema 2018-11-14 12:48:24 -08:00
Charles Lyding
00141868ce fix(@angular/cli): silence package manager not found messages
Fixes #12939
2018-11-14 12:40:22 -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
Hans Larsen
456614828f feat(@angular/cli): allow flags to have deprecation
The feature comes from the "x-deprecated" field in schemas (any schema that is used
to parse arguments), and can be a boolean or a string.

The parser now takes a logger and will warn users when encountering a deprecated
option. These options will also appear in JSON help.
2018-11-14 10:29:07 -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
Alan Agius
bd4dc38359 refactor: use createConsoleLogger and remove duplicate code (#12787) 2018-11-08 10:30:41 -08:00
Alan Agius
131f55518c fix(@angular/cli): support all single dashes prefixed arguments (#12783)
Fixes #12771
2018-11-06 22:43:14 -08:00
clydin
5e354d17f1 feat(@angular/cli): autodetect default package manager (#12753) 2018-11-06 22:00:40 -08:00
Keen Yee Liau
d3e1149bdf build: add missing transitive deps for typescript (#12881)
add `strict_checks = False` for building inside Google.
2018-11-06 20:40:03 -08:00
Filipe Silva
298faa129a test(@angular/cli): fix implicit import
This lint error resulted from the interaction between https://github.com/angular/angular-cli/pull/12554 and https://github.com/angular/angular-cli/pull/12515.
2018-11-01 10:07:48 -07:00
Filipe Silva
eef66f0f65 fix(@angular/cli): error out when command json is invalid 2018-11-01 08:26:28 -07: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
Alan Agius
2bb26f197b fix(@ngtools/webpack): print error message on new line (#12764)
* fix(@ngtools/webpack): print error message on new line

* fix(@angular/cli): change logger from `warning` to `fatal` for unkown options
2018-10-31 21:02:25 -07:00
Keen Yee Liau
a3b05a0283 build: Use fine-grained node_module deps
This commit updates the BUILD files to specify fine-grained node_module deps
by replacing "@typings" comments with actual @npm node module.

Moved tools/bazel.rc -> .bazelrc

Removed "jasmine" typings from base tsconfig.json

Added @bazel/karma to devDependencies, needed for `ts_web_test`
2018-10-31 20:56:27 -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
Alan Agius
e08a6f4e98 docs: update cli readme for version 7 2018-10-23 12:03:26 -07:00
Alan Agius
0dc4c40dd3 fix(@angular/cli): multiline help descriptions are not aligned 2018-10-23 12:00:30 -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