483 Commits

Author SHA1 Message Date
Greg Magolan
be3d063422 build: exclude nested node_modules laid out by yarn workspaces from all globs 2020-04-30 15:12:46 -07:00
Filipe Silva
b51cf8d1e6 build: use ts_library macro with common defaults 2020-04-30 15:12:46 -07:00
Filipe Silva
9a28114f6b test: remove non-bazel test setup 2020-04-30 15:12:46 -07:00
Filipe Silva
898fb5e6ed build: add missing npm_package_archive targets 2020-04-30 15:12:46 -07:00
Filipe Silva
eceb5cdaa6 build: use rules_nodejs 1.6.0 features
Contains fixes related to the symlink behaviour inside of bazel. Without it, webpack needs to be configured to be aware of symlinks and preserve the paths.
2020-04-30 15:12:46 -07:00
Alan Agius
8fb7e586cc refactor(@angular-devkit/build-angular): remove deprecated evalSourceMap, vendorSourceMap, profile and skipAppShell options
BREAKING CHANGE:

The following deprecated devkit builders options have been removed:
- `skipAppShell:` This has no effect
- `evalSourceMap`: This done to improve performance in older versions of the CLI and is no longer needed
- `vendorSourceMap`: Use `sourceMap.vendor` instead
- `profile`: Use `NG_BUILD_PROFILING` environment variable instead
2020-04-27 15:08:15 -07:00
Alan Agius
493aa74019 docs: update analytics command aio link 2020-04-23 10:33:05 -07:00
Keen Yee Liau
e5db6a8ccd build: BUILD files formatted to have load statements at the top 2020-04-23 10:31:56 -07:00
Alan Agius
69aa460335 refactor(@angular-devkit/build-angular): remove deprecated es5BrowserSupport build option
BREAKING CHANGE
Deprecated browser builder option `es5BrowserSupport` has been removed. The inclusion for ES5 polyfills will be determined from the browsers listed in the browserslist configuration.
2020-04-22 10:38:19 -07:00
Charles Lyding
1f16002255 fix(@angular/cli): ensure Node.js message is shown on old Node.js versions 2020-04-14 12:20:19 -07:00
Renovate Bot
36d3f21c37 build: update semver to version 7.3.2 2020-04-14 12:18:02 -07:00
Renovate Bot
475922438b build: update semver to version 7.2.2 2020-04-13 11:14:26 -07:00
Renovate Bot
346172494d build: update npm-pick-manifest to version 6.1.0 2020-04-09 13:23:53 -07:00
Renovate Bot
f516b9468c build: update semver to version 7.2.1 2020-04-07 19:42:36 -07:00
Filipe Silva
60e92d54fb style: reformat bazel files 2020-04-07 09:07:19 -07:00
Filipe Silva
d4ce7fd3ab test(@angular/cli): test with Bazel 2020-04-07 09:07:19 -07:00
Filipe Silva
5f3f736936 build: move BUILD.bazel files for secondary entry points into own folder
Without this change, module names will be computed with incorrect paths containing duplicate path fragments (e.g. `@angular-devkit/architect/testing/testing/test-logger`).
2020-04-07 09:07:19 -07:00
Filipe Silva
7c746a444b build: use ts_json_schema's ts output directly
This PR changes ts_json_schema to not create a ts_library rule for the json schema, and instead let consuming ts_libraries use and compile the resulting .ts files themselves.

This is needed in order to maintain the module_name of the consuming libraries on the .ts files resulting from json compilation.
2020-04-07 09:07:19 -07:00
Filipe Silva
b668cacd45 refactor: use BUILD.bazel instead of BUILD
Using an extension gives editors a chance to figure out the correct language syntax to use.
2020-04-07 09:07:19 -07:00
Renovate Bot
cb2700ee1d build: update uuid to version 7.0.3 2020-04-02 10:28:16 -07:00
Alan Agius
e57fa81cf8 fix(@angular/cli): downgrade pacote to 9.5.12
Closes #17314 and closes #16615
2020-04-02 10:24:09 -07:00
Alan Agius
4d2d6cdc22 fix(@angular/cli): allow configuration option in ng deploy
Previously we only allowed `--project` and `--help` as a valid options. With this change we also allow `--configuration`

Fixes #17332
2020-03-30 16:13:05 -07:00
Alan Agius
cad8154ba3 feat(@angular-devkit/build-angular): change tslint default formatter to stylish
Change the default tslint formatter  to stylish as offers a better output
2020-03-23 17:27:35 -07:00
Alan Agius
ea11c5549a feat(@angular-devkit/build-angular): show warnings when depending on CommonJS.
Depending on CommonJS modules is know to cause optimization bailouts. With this change when running a browser build and scripts optimization is enabled we display a warning.

To suppress the warning for a particular package, users can use the `allowedCommonJsDepedencies` builder options.

Example:
```
"build": {
  "builder": "@angular-devkit/build-angular:browser",
  "options": {
    ...
    "allowedCommonJsDepedencies": ["bootstrap"]
  },
}
```

Reference: TOOL-1328
2020-03-23 14:20:21 -07:00
Fabian Wiles
bc5ce395e5
Merge pull request #16648 from Toxicable/preserve-symlink-nodejs
feat(@angular-devkit/build-angular): default to NodeJS value for pres…
2020-03-23 14:18:27 -07:00
Alan Agius
4f50aa0e40 fix(@angular/cli): display post migration message when updating from previous major version
Fixes #17256
2020-03-23 14:18:06 -07:00
Tarik Alani
b518cb8d69 docs: update latest angular version referenced in docs
Update upgrade guide to reference version 9 as the latest angular version
2020-03-19 09:47:25 -07:00
renovate[bot]
1265c0b031
Merge pull request #17211 from angular/renovate/pacote-11.x
build: update pacote to version 11.1.4
2020-03-17 16:14:40 -07:00
Charles Lyding
f0bada1925 fix(@angular/cli): allow for private use language subtags
Fixes:  #17163
2020-03-16 21:44:42 -07:00
Renovate Bot
46121b8dff build: update npm-package-arg to version 8.0.1 2020-03-13 13:15:24 -07:00
Renovate Bot
892f1491dc build: update pacote to version 11.1.2 2020-03-12 10:18:13 -07:00
Renovate Bot
276be8aeb3 build: update pacote to version 11.1.1 2020-03-10 11:55:47 -07:00
Renovate Bot
6ee3894e44 build: update inquirer to version 7.1.0 2020-03-10 11:54:36 -07:00
Renovate Bot
fe8f796893 build: update uuid to version 7.0.2 2020-03-09 10:25:36 -07:00
Renovate Bot
ecdf200017 build: update open to version 7.0.3 2020-03-09 10:25:06 -07:00
Renovate Bot
b240d8a57a build: update uuid to version 7.0.1 2020-02-26 11:48:51 -08:00
Renovate Bot
c1027a4df4 build: update pacote to version 11.1.0 2020-02-25 10:10:52 -08:00
Renovate Bot
146d578da4 build: update uuid to version 7.0.0 2020-02-25 10:07:18 -08:00
Schneider
2c10cf80f6 docs: fix typos in multiple files 2020-02-24 12:42:22 -08:00
Sachin Grover
764b977de4 fix(@angular/cli): expand locale pattern in all schemas for all cases
Fixes: #17032
2020-02-24 12:39:35 -08:00
Charles Lyding
e221c9a147 fix(@angular/cli): directly remove ansi color codes when no color support
Third party libraries can attempt to write color codes to the output even though the CLI has already determined that color should not be used.  The previously implemented color removal code is no longer functional since the update of ansi-colors to 4.1.0.  While this appears to be a defect in the aforementioned package, the new CLI removal method not only bypasses the defect but also unneeded execution logic that the CLI does not need in this case.

Fixes: #17053
2020-02-24 12:39:15 -08:00
Renovate Bot
ecce0671e5 build: update pacote to version 11.0.1 2020-02-24 12:37:53 -08:00
Renovate Bot
fb908f8c1a build: update npm-pick-manifest to version 6.0.0 2020-02-18 12:44:55 -08:00
Alan Agius
66b218c5f6 fix(@angular/cli): print ng update errors stack to log file
When an error occurs during ng update we currently discard the stack trace which in some cases made it hard to identify the cause of the error.

Now, we print the stack trace to a log file similarly to unhandled exceptions.

Example of CMD output;
```cmd
** Executing migrations of package '@angular/core' **

> Static flag migration.
  Removes the `static` flag from dynamic queries.
  As of Angular 9, the "static" flag defaults to false and is no longer required for your view and content queries.
  Read more about this here: https://v9.angular.io/guide/migration-dynamic-flag
× Migration failed: x
  See "C:\Users\alag\AppData\Local\Temp\ng-NgmC1G\angular-errors.log" for further details.
```

Example of log file contents:
```txt
[error] Error: x
    at UpdateCommand.executeSchematic (C:\git\angular-cli\test\node_modules\@angular\cli\commands\update-impl.js:98:19)
    at UpdateCommand.executePackageMigrations (C:\git\angular-cli\test\node_modules\@angular\cli\commands\update-impl.js:167:39)
    at UpdateCommand.executeMigrations (C:\git\angular-cli\test\node_modules\@angular\cli\commands\update-impl.js:161:21)
    at UpdateCommand.run (C:\git\angular-cli\test\node_modules\@angular\cli\commands\update-impl.js:394:38)
    at async UpdateCommand.validateAndRun (C:\git\angular-cli\test\node_modules\@angular\cli\models\command.js:134:28)
    at async Object.runCommand (C:\git\angular-cli\test\node_modules\@angular\cli\models\command-runner.js:201:24)
    at async default_1 (C:\git\angular-cli\test\node_modules\@angular\cli\lib\cli\index.js:62:31)
```
2020-02-18 12:43:35 -08:00
Jonathan Garvey
d6c9693952 feat(@angular-devkit/build-angular): pass "grep" and "invertGrep"
Pass the "grep" and "invertGrep" flags through to the Angular Protractor
builder as "jasmineNodeOpts" so that individual specs within an E2E test
file can be targeted.

Fixes #13020
2020-02-18 10:53:27 -08:00
Renovate Bot
7749347235 build: update pacote to version 11.0.0 2020-02-18 10:50:32 -08:00
Ivan
8deb4cbd1b fix(@angular/cli): add skipTests to @schematics/angular:component in config schema 2020-02-12 12:00:58 -08:00
Renovate Bot
ac371751ba build: update semver to version 7.1.3 2020-02-12 12:00:15 -08:00
RiccardoBracci
36ade0fd23 fix(@angular/cli): typo in error message 2020-02-11 08:46:19 -08:00
Charles Lyding
7b54164e48 fix(@angular/cli): expand locale pattern in workspace schema
Fixes: #16935
2020-02-11 08:45:36 -08:00