16 Commits

Author SHA1 Message Date
Alan Agius
4b0223b64e build: automate @angular/cli schema.json generation
With this change we automate the generation of `@angular/cli/lib/config/schema.json`. While on paper we could use quicktype for this. Quicktype doesn't handle `patternProperties` and `oneOf` that well.

How does this works?
Relative `$ref` will be resolved and inlined as part of the root schema definitions.

Example
```json
"@schematics/angular:enum": {
    "$ref": "../../../../schematics/angular/enum/schema.json"
},
```

Will be parsed and transformed to
```json
"@schematics/angular:enum": {
  "$ref": "#/definitions/SchematicsAngularEnumSchema"
},
"definitions: {
  "SchematicsAngularEnumSchema": {
    "title": "Angular Enum Options Schema",
    "type": "object",
    "description": "Generates a new, generic enum definition for the given or default project.",
    "properties": {...}
   }
}
```
2021-03-11 21:51:37 +01:00
Charles Lyding
c9868325a2 build: exclude workspace json test files from core package 2021-02-18 13:01:31 +01:00
Alan Agius
05588fcee1 refactor: clean up unused code and imports 2020-07-24 08:01:52 +02:00
Alan Agius
17738f0520 build: use rimraf instead of custom rimraf
With this change we replace the custom rimraf implementation in the build script with the rimraf npm package. The main reason for this change is because `dist` can be a symlink when building with bazel but our implementation doesn't that.
2020-06-08 09:44:49 +01:00
Filipe Silva
63e668f65f build: don't copy root package test folders 2020-04-30 15:12:46 -07:00
Doug Parker
76b13e2dea refactor(@angular/cli): Updates .gitignore to keep out VSCode and Intellij configurations.
This also changes the local build script to allow negated .gitignore expressions to support these changes.
2019-11-14 11:12:29 -08:00
Greg Magolan
4a4155b089 fix(@schematics/angular): fix BUILD file filter for npm package to include both BUILD and BUILD.bazel file
This removes the file https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/BUILD.bazel which currently makes it into the npm dist at `@schematics/angular/third_party/github.com/Microsoft/TypeScript/BUILD.bazel`.
2019-06-24 17:31:03 -07:00
Charles Lyding
7b7d74e704 feat(@angular/cli): automatically update angular builders when CLI is updated
Closes #13581
2019-04-08 11:39:34 -07:00
Hans Larsen
1f9f92ed76 build: dont tar private packages
They cannot be installed anyway.
2019-03-28 13:28:41 -07:00
Hans Larsen
b3857b41a4 build: add build-schema script to build schemas 2019-02-21 16:20:54 -08:00
Hans
c63b4d8d2b ci: disable bazel in devkit-admin build
Replace the build step with a custom JSON schema output parallel to
bazel.
2018-09-13 16:44:17 -07:00
Hans
a07f83638e build: add JSON Schema .d.ts and .js files to build output 2018-09-13 16:44:17 -07:00
Hans
e004464a94 ci: build script uses bazel to generate the schemas 2018-09-13 16:44:17 -07:00
Filipe Silva
f5fe1b60d4 build: fix tarring packages on windows 2018-09-10 14:19:22 -07:00
Charles Lyding
c729b0e7d9 build: use yarn workspaces 2018-08-10 18:25:32 -07:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00