214 Commits

Author SHA1 Message Date
Niyaz Akhmetov
eaf6de0040 docs: add example for ng add 2019-03-27 10:05:04 -07:00
Hans Larsen
6e5095b134 feat(@angular/cli): allows analytics sharing with a third party
Documentation can be seen at https://next.angular.io/cli/usage-analytics-gathering
2019-03-26 10:07:30 -07:00
Hans Larsen
c42c82f669 feat(@angular/cli): add validation logic for analytics in ng config
And refactored the validation logic to be a bit simpler generally.
2019-03-26 10:07:30 -07:00
Hans Larsen
c840fcb529 fix(@angular/cli): dont force a prompt on non-interactive terminals
For some reason we were forcing the prompt on postinstall, breaking CI.
2019-03-25 12:37:05 -07:00
Hans Larsen
696272bd40 fix(@angular/cli): if no global config file found, analytics can be null
This happens if there is no file at all (otherwise it would be undefined). This was
causing an exception and returning false instead of undefined, preventing the
prompt. Now we return undefined in this case.

To be clear, this is because getWorkspace returns null, and the logic makes
analyticsConfig null in this case.
2019-03-25 12:37:05 -07:00
Alan
75abc79e37 fix(@angular/cli): fix import path for TimingOptions
Fixes #13978
2019-03-25 11:21:05 -07:00
Hans Larsen
0a1d4298ec build: remove DO_NOT_SUBMIT tags from messaging
This is conditional to https://github.com/angular/angular/pull/29382 being
submitted.
2019-03-20 15:08:07 -07:00
Hans Larsen
2e58fb33ca feat(@angular/cli): add custom implementation for analytics for commands
Some commands (like schematics) need to have custom reporting for
analytics. Schematics and Architect commands need to verify if the
schematic/architect builder run is in the safelist, for example.
2019-03-20 15:08:07 -07:00
Hans Larsen
1cbd915c26 feat(@angular/cli): add support for analytics command proper
To add/remove/prompt about the analytics configuration.
2019-03-20 15:08:07 -07:00
Hans Larsen
e96c7ce291 feat(@angular/cli): add prompt on post install step
Only prompt the user on interactive terminals.
2019-03-20 15:08:07 -07:00
Hans Larsen
cf5cf19bb5 feat(@angular/cli): add analytic support to commands and command-runner
This is only reporting commands and their flags right now, and not
schematics or project analytics.
2019-03-20 15:08:07 -07:00
Hans Larsen
1736a001c4 feat(@angular/cli): add universal-analytics as dependency
We will need it for our implementation of analytics.
2019-03-20 15:08:07 -07:00
Alan Agius
e0acac9c2d feat(@angular/cli): add @nguniversal/* to ng version
Closes #9959
2019-03-13 13:53:38 -07:00
Charles Lyding
b4965c09e2 feat(@angular/cli): update minimum required Node.js version to 10.9
Node.js 8 is now in maintenance LTS status and will be EOL in December 2019. Node.js 10 is now the active LTS version with Node.js 12 due for arrival in April 2019. Node.js 10+ provides an improved performance baseline as well as access to newer Node.js APIs and Javascript language features which the Angular CLI will now be able to leverage.
2019-03-11 13:46:48 -07:00
Alex Eagle
4e262f966f build: Update to latest bazel rules 2019-03-06 11:27:48 -08: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
Renovate Bot
6a41621966 build: update pacote to version 9.5.0 2019-02-19 10:15:30 -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
f58a7ded00 fix(@angular/cli): remove deprecated eject command 2019-02-15 15:09:11 -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
WilliamKoza
ec94f42108 fix(@angular/cli): wrap opn in a new Promise because opn is already resolve is already resolve. 2019-02-08 16:10:59 -08:00
Charles Lyding
a6f51f566e feat(@angular/cli): support pnpm as a package manager option 2019-02-08 16:06:11 -08:00
William KOZA
416b05061f fix(@angular/cli): Add an error message when we call ng doc without keyword. Currently, we open a page with the keyword undefined. (#13604) 2019-02-07 08:24:29 -08:00
Renovate Bot
8340bfda47 build: update inquirer to version 6.2.2 (#13557) 2019-02-05 21:13:59 -08:00
Alan Agius
71c6cc506e refactor: add allowAdditionalArgs to be able to bypass extra params validations (#13556) 2019-02-05 21:13:45 -08:00
Alan Agius
f8e873b645 fix(@angular/cli): schematics commands should fail on unknown options
When an addition argument is parsed the schematic commands should fail with an error.

Fixes #12549
2019-01-30 11:41:42 -08:00
Alan
bae67c2de6 fix(@angular/cli): remove unsupported dryRun and force from ng add
Fixes #13479
2019-01-30 11:40:35 -08:00
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
Renovate Bot
8cdf4ca746 build: update pacote to version 9.4.1 2019-01-25 21:20:31 -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
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
James George
554f5d29fc docs: update license badge url
pointed license section to the license file
2019-01-08 13:48:14 -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
Renovate Bot
ce42a4ce4e build: update semver to version 5.6.0 2018-12-20 13:18:17 -08:00
Renovate Bot
e1c9eec86a build: update opn to version 5.4.0 2018-12-20 11:34:53 -08:00
Renovate Bot
92ff5a193a build: update inquirer to version 6.2.1 2018-12-19 10:14:25 -08:00
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