191 Commits

Author SHA1 Message Date
Charles Lyding
f0bada1925 fix(@angular/cli): allow for private use language subtags
Fixes:  #17163
2020-03-16 21:44:42 -07:00
Renovate Bot
a9394c1434 build: update magic-string to version 0.25.7 2020-03-09 10:25:20 -07: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
Renovate Bot
4d571df0eb build: update ajv to version 6.12.0 2020-02-24 12:36:28 -08:00
Charles Lyding
7b54164e48 fix(@angular/cli): expand locale pattern in workspace schema
Fixes: #16935
2020-02-11 08:45:36 -08:00
Sachin Grover
54b79ade65 fix(@angular-devkit/core): Rename to a non-existing dir
Added unit test and requested changes.
Fixes #16484
2020-02-07 08:29:40 -08:00
Alan Agius
f635479cef build: update nodejs rules to 1.0+ 2020-01-27 11:03:51 -08:00
Renovate Bot
79fbe59d00 build: update ajv to version 6.11.0 2020-01-21 10:31:50 -08:00
Renovate Bot
48e4765f85 build: update magic-string to version 0.25.6 2020-01-10 17:25:20 -08:00
Renovate Bot
945dcb92df build: update seedrandom to version ^3.0.0 2020-01-08 10:21:58 -08:00
Renovate Bot
3ba89181bc build: update rxjs to version 6.5.4 2020-01-07 10:26:56 -08:00
renovate[bot]
84515dc808 build: update magic-string to version 0.25.5 (#16534)
Co-authored-by: Renovate Bot <renovatebot@gmail.com>
2020-01-04 11:12:05 -08:00
Alan Agius
2432b86758 build: update fast-json-stable-stringify to 2.1 2020-01-02 11:42:44 -08:00
Charles Lyding
c37eaeec43 fix(@angular-devkit/build-angular): augment base HREF when localizing
All locale i18n options now support an object form which allows a base HREF to be defined for the locale.  Each locale can now optionally define a custom base HREF that will be combined with the base HREF defined for the build configuration.  By default if the shorthand form for the locale is used or the field is not present in the longhand form, the locale code will be used as the base HREF.  To disable automatic augmentation a base HREF value of an empty string (`""`) can be used.  This will prevent anything from being added to the existing base HREF.

For common scenarios, the shorthand form will result in the preferred and recommended outcome of each built locale variant of the application containing a defined base HREF  containing the locale code.
2019-12-04 08:14:16 -08:00
Alan Agius
ca4bdcac84 fix(@angular-devkit/core): retain order of types set in allOf, anyOf and oneOf when parsing schema
With this change we retain the order of types are declared in the schema.
Ex:
```json
"oneOf": [
  {
    "type": "boolean"
  },
  {
    "type": "string",
    "description": "The name of the migration to run."
  }
]
```

Currently this will result in:
```js
{ type: "string", types: ["string", "boolean"] }
```

This is because we use the order of types from the `allTypes` contant variable.a3a657f7e7/packages/angular_devkit/core/src/json/schema/utility.ts (L12)

Now this will result in:
```js
{ type: "boolean", types: ["boolean", "string"] };
```

The CLI parser will iterate over each type and will set a value of true if `--migrate-only` option is provided.

Related test in the CLL parser

1d105eb569/packages/angular/cli/models/parser_spec.ts (L34)

1d105eb569/packages/angular/cli/models/parser_spec.ts (L132-L138)
2019-11-15 10:43:07 -08:00
Charles Lyding
7e7248d9aa fix(@angular-devkit/core): allow multiselect list defaults
Fixes #16104
2019-11-12 11:53:14 -08:00
Alan Agius
e31d5d89b7 build: update bazel packages 2019-10-24 12:05:25 -07:00
Alan Agius
613f7dbcd4 refactor(@angular-devkit/core): deprecate old terminal and resolve APIs 2019-10-22 13:26:52 -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
c3169ae7d2 New i18n schema (#15760)
* feat(@angular-devkit/core): update schema to support new i18n options

"projects": {
  "my-app": {
    "projectType": "application",
    "schematics": {},
    "root": "",
    "i18n": {
      "sourceLocale": "en-US",
      "locales": {
        "fr": "src/locale/messages.fr.xlf"
      }
    },
    "sourceRoot": "src",
    ...
  }
}

* feat(@angular-devkit/build-angular): add new i18n options to browser and server builders

With this change we add `translateLocales` as new options for i18n in browser and server builders.

We also deprecate the following options;
* i18nLocale
* i18nFormat
* i18nFile

* feat(@angular-devkit/build-angular): deprecate `i18nFormat` and `i18nLocale` options of `extract-i18n` builder

Option `i18nFormat` has been deprecated in favor of `format` and `i18nLocale` option has been deprecated in favor of the `sourceLocale` sub option of the `i18n` project level option.

* feat(@angular/cli): add alias of `i18n-extract` for `x18n` command

* refactor: rename `translateLocales` to `localize`
2019-10-10 12:39:00 -07:00
Keen Yee Liau
825b4bb139 build: update BUILD files for g3 sync
Removing @typings allows us to use a single transform rule: @node_module
2019-10-07 11:27:35 -07:00
Keen Yee Liau
0662a8d774 build: g3 sync for packages/schematics and packages/angular
Fix all build errors in g3
2019-10-03 14:29:07 -07:00
vikerman
2303a045ee feat(@angular-devkit/build-angular): add analytics for ivy/non-ivy builds
Look for `ngComponentDef` or `ngModuleDef` in the webpack analytics plugin
to report back whether the current build is built with Ivy enabled.
2019-10-02 12:06:38 -07:00
Keen Yee Liau
8497d9ac7b build: use import instead of require for fast-json-stable-stringify 2019-10-02 11:21:10 -07:00
Keen Yee Liau
5a2a055c4d build: g3 sync for angular_devkit
Fix all build errors in g3
2019-10-01 13:15:50 -07:00
Renovate Bot
5d8a64931d build: update magic-string to version 0.25.4 2019-10-01 11:24:46 -07:00
Charles Lyding
08aa5c615e fix(@angular-devkit/core): json visitors should only set writable properties 2019-09-26 10:00:35 -07:00
Alan Agius
ab5b1909d6 build: update rxjs to 6.5.3 2019-09-24 13:18:09 -07:00
Charles
ef360dd7f8 refactor(@angular-devkit/architect): use standard node resolution methods where possible (#15622)
* refactor(@angular-devkit/architect): use standard node resolution methods where possible

* refactor(@angular-devkit/core): use standard node resolution methods where possible
2019-09-18 14:49:22 +01:00
Charles Lyding
2a689ff3ca feat(@angular-devkit/core): auto discover multiselect schema prompt types
If a prompt is present on a schema property and the type is an array with a set of enum values, then the prompt type is a list with multiselect capabilites.  This eliminates the need to specify the longhand form for typical multiselect prompts.
2019-09-11 10:08:23 -07:00
Alan Agius
26dd51221a style: collapse if statements (#15449) 2019-08-27 10:25:14 -07:00
Alan Agius
a6fbee6865 style: add no-invalid-await and prefer-promise-shorthand lint rules (#15450)
Add these two lint rules for a better code quality and readability
2019-08-27 10:24:58 -07:00
Charles
7f6ba9e001 fix(@angular-devkit/core): track workspace targets with no original collection (#15413)
Fixes #15403
2019-08-23 11:37:06 -07:00
Charles
920ee8595a build: update bazel dependencies and configuration (#15291)
This leverages the configuration from FW where possible.
Bazel updated to 28.1
Rules for nodejs/typescript/karma/jasmine updated to 0.35.0
2019-08-12 11:40:50 -07:00
Charles
b0b3212719 fix(@ngtools/webpack): cleanup more resources after modules are loaded (#15292)
* feat(@angular-devkit/core): support resetting a memory host

* fix(@ngtools/webpack): cleanup more resources after modules are loaded

Followup to #12994
2019-08-12 10:26:19 -07:00
Charles Lyding
74536d0df0 refactor(@angular-devkit/build-optimizer): update to use latest source-map version (0.7.3)
The latest version provides significant performance improvements.
2019-08-08 08:26:15 -07:00
Alan Agius
6f0e7bf437 fix(@angular-devkit/core): add schema defaults when value is undefined
Related to https://github.com/angular/angular-cli/pull/15207#discussion_r309175463
2019-08-02 13:41:45 -07:00
Renovate Bot
1959b3b4c7 build: update ajv to version 6.10.2 (#15073) 2019-07-15 09:49:23 -07:00
Renovate Bot
d29cf86aa6 build: update ajv to version 6.10.1 2019-07-11 01:20:36 +08:00
Joey Perrott
5da90e9075 ci: setup RBE on CI 2019-07-10 04:07:42 +08:00
vikerman
5ef0846214 fix(@angular-devkit/architect): one more fix for newest version of rxjs 2019-07-02 12:46:30 -07:00
Renovate Bot
a41e94a568 build: update magic-string to version 0.25.3 2019-07-02 12:43:24 -07:00
Hans Larsen
af6c6d41d5 refactor: add count of component to analytics 2019-07-02 11:07:13 -07:00
Hans Larsen
46ade49a2f feat(@angular/cli): report RAM in gigabytes instead of megabytes
Otherwise its too much noise. Some people have weird MB count probably due to
containers and VMs.
2019-06-27 09:17:26 -07:00
Ben Lesh
caeaa53e1a refactor: Add explict type to allow RxJS to be updated
While trying to sync RxJS into google3 an issue came up around the code in question, where TypeScript is unable to properly infer the type. Adding this explicit type resolves the issue.
2019-06-12 16:36:46 -07:00
Filipe Silva
819892a359 ci: remove appveyor and buildkite 2019-06-06 16:02:17 -07:00
Charles Lyding
2b777e446f fix(@angular-devkit/core): properly replace an added value in workspace API
Replacing a previous added value in the same session should cause the replace operation to become an add operation with the original add operation elided.
2019-05-23 19:14:19 +02:00
Charles Lyding
825bcacdc2 fix(@angular-devkit/core): deprecate redundant isObservable function
rxjs provides a canonical version of the helper function.  Internal usage has also been changed to use this version.
2019-05-13 15:57:54 -07:00
Charles Lyding
64786cf64a fix(@angular-devkit/core): remove unimplemented prompt priority
Node.js versions prior to 11 used an unstable sort for arrays with a length greater than 10.  This caused the prompt order of a schematic with more than 10 prompts to be inconsistent with the content of the file and the same schematic with several of the prompts removed.  Since priorities were never fully implemented and property dependencies will most likely be used at a higher level instead, the underlying elements have been removed with this change.

Fixes #14402
2019-05-13 15:56:39 -07:00