24 Commits

Author SHA1 Message Date
Charles Lyding
f4127b5b43 fix(@angular/cli): fully use add command registry option when installing packages
Fixes: #16766
2020-02-10 16:02:05 -08:00
Charles Lyding
0d6dae107d fix(@angular/cli): support path spaces with temporary package installs
Fixes: #16865
2020-02-10 16:02:05 -08:00
Alan Agius
08f0067145 fix(@angular/cli): fix package manager warnings when running temporary install
Related to: #16205
2019-11-18 10:27:47 -08:00
Alan Agius
1903dd5119 fix(@angular/cli): add pnpm options to install package task
Fixes #16149
2019-11-12 11:46:07 -08:00
Alan Agius
08c3959ee4 fix(@angular/cli): remove no-bin-links during npm/yarn install
Previously we passed `--no-bin-links` because we used to install packages globally in some cases. But now this is no longer needed as we should now have permissions to generate "local" bin links even during a temp installations as these  will no longer generate bin links in the global context.

Fixes #16133
2019-11-11 16:52:46 -08:00
Charles
b8257e276e fix(@angular/cli): re-introduce install package using shell spawn (#16112)
This works around a Windows CI failure that related to the PATH environment variable and a failure to located the `npm` command.
2019-11-08 07:54:47 -08:00
Alan Agius
f35b80ebaf fix(@angular/cli): use spawned process error when it's available
In some cases when an error occurs in the spawned process the `error` property will be populated instead of `stderr` or `stdout`.

See: https://nodejs.org/api/child_process.html#child_process_child_process_spawnsync_command_args_options
2019-11-07 10:07:10 -08:00
Alan Agius
c5ab958eb3 fix(@angular/cli): handle null stderr during npm install 2019-11-06 10:50:47 -08:00
Charles Lyding
84ba5d55f0 fix(@angular/cli): only show add/update package install output on errors
Closes #16014
Closes #16027
2019-11-05 16:30:14 -08:00
Alan Agius
8820093b7f fix(@angular/cli): don't install using global command but rather install in a different folder
Fixes: #16010
2019-11-04 13:24:57 -08:00
Alan Agius
548617ca4c fix(@angular/cli): updated CLI should not have analytics enabled
In the case users don't have analytics globally configured when the CLI will self update during ng update. It will prompt to configure this.

However, afterwards the update will fail with `Repository is not clean.  Please commit or stash any changes before updating.` as there would be uncommited local changed.
2019-10-29 20:21:51 -07:00
Alan Agius
936a9512ae refactor(@angular-devkit/build-angular): move around i18n methods to make them re-usable 2019-10-25 09:52:56 -07:00
Alan Agius
70e460d656 refactor: use require.resolve instead of custom resolve (#15906) 2019-10-23 09:59:36 -07:00
Alan Agius
b0dcfd08a0 fix(@angular/cli): logic to determine if the installed CLI is out of date
With this change we now check if the current CLI version is the latest published version. If it is not, we install a temporary version to run the `ng update` with.
2019-10-22 13:13:54 -07:00
Alan Agius
d133ba68c0 feat(@angular/cli): add support for ng-add packages that should not be saved as dependencies
With this change the CLI offers a way for a package authors to specify if during `ng add` the package should be saved as a `dependencies`, `devDependencies` or not saved at all.

Such config needs to be specified in `package.json`

Example:
```json
  "ng-add": {
    "save": false
  }
```

Possible values are;
- false - Don't add the package to `package.json`
- true - Add the package to the `dependencies`
- `dependencies` - Add the package to the `dependencies`
- `devDependencies` - Add the package to the `devDependencies`

Closes #12003 , closes #15764 and closes #13237
2019-10-14 13:40:31 -07:00
Charles Lyding
c4313f55e4 refactor(@angular/cli): unify color handling and support 2019-06-24 17:27:59 -07:00
Charles Lyding
b12118eae9 refactor(@angular/cli): remove unused npm install task type 2019-05-15 14:34:03 -07:00
Alan Agius
2521a39559 fix(@angular/cli): print full error when package is not found 2019-05-09 10:12:21 -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
Charles Lyding
a6f51f566e feat(@angular/cli): support pnpm as a package manager option 2019-02-08 16:06:11 -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
Hans Larsen
483cbe2665 refactor: add tslint-sonarts and a lot of tslint rules
This should clean up the code a bit.

Note: at first I added the no-useless-cast rule, but after getting frustrated
with it (as it has many false positive), I decided to remove the rule but some
useless casts were removed so I let those in the PR.
2018-07-10 15:07:36 -07:00
Alex Eagle
d1e392fa78 refactor: add missing license headers under packages/angular/cli 2018-06-06 15:11:31 -07:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00