35 Commits

Author SHA1 Message Date
Alan Agius
3fe432c71b refactor: update code to integrate universal repo
This commit updates the moved universal code into the cli pipeline
2023-08-22 20:44:53 +00:00
Alan Agius
3cbeee7377 build: remove no longer used scripts
This commit removes scripts which have been replaced with Bazel.
2023-02-16 14:36:10 +00:00
Charles Lyding
9b935a2afb Revert "build: remove no longer used scripts"
This reverts commit 8f4e1018ddfa1c421769fda4e4e973375c7b8db6.
2023-02-15 19:09:34 +00:00
Alan Agius
8f4e1018dd build: remove no longer used scripts
This commit removes scripts which have been replaced with Bazel.
2023-02-15 17:06:16 +00:00
Alan Agius
c3adf11a5a build: update dependency minimatch to v6 2023-01-17 17:30:43 +00:00
Tobias Speicher
137651645c refactor: replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-21 12:27:52 -07:00
Alan Agius
4ebfe03415 feat(@angular/cli): drop support for Node.js 12
Node.js v12 will become EOL on 2022-04-30. As a result, Angular CLI v14 will no longer support Node.js v12.

BREAKING CHANGE:

Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later.
2022-03-04 22:38:45 +01:00
Derek Cormier
4721b2796c build: correctly stamp experimental packages in bazel build 2022-01-21 12:50:53 +01:00
Derek Cormier
c2737dd51a build: use placeholder version for stamping 2022-01-12 10:02:23 -08:00
Charles Lyding
f0e9b311fa build: update build scripts to support Node.js v16
Node.js v16's `fs.rmdirSync` will now throw an `ENOENT` error if the path does not exist. `fs.rmSync` is now the preferred option when using Node.js v16 but since this function is not available on Node.js v12 both are tried with `fs.rmSync` given preference.
2021-10-06 06:11:09 -05:00
Charles Lyding
51f89d633f test: enable no-useless-escape lint rule
The `no-useless-escape` eslint rule has now been enabled which removes unneeded characters and complexity from string literals and regular expressions. All files that were in violation of this rule have also been corrected.
2021-08-24 10:51:14 +01:00
Alan Agius
8ea82e593c build: add tsconfig-build.json
This TypeScript configuration file is used to build the monorepo. This will only include actual sourcefiles ie. non test files.
2021-07-30 12:43:18 +01:00
Joey Perrott
912929415f build: provide build artifact location directories instead of tar files
Provide the location of the directories rather than the tar files as the
release tooling inspects the package.json fiels to confirm the correct
version being published.
2021-07-16 12:19:48 +02:00
Charles Lyding
b3d7080147 build: enable esModuleInterop TypeScript option
The `esModuleInterop` option is recommended to be enable by TypeScript and corrects several assumptions TypeScript would otherwise make when importing CommonJS files.
This option change helps ensure compatibility as packages move towards ESM.
Reference: https://www.typescriptlang.org/tsconfig#esModuleInterop
2021-06-13 11:45:55 -04:00
Charles Lyding
3b517c5c62 build: use native Node.js functions to create and remove directories
With the removal of support for Node.js v10, native Node.js functionality can be used to recursively create and remove directories within the dev infrastructure.
2021-06-03 19:51:37 +02:00
Joey Perrott
d66fe41be9 build: set up releasing using ng-dev 2021-05-19 12:04:27 +02:00
Charles Lyding
c1512e4274 build: update files to be eslint compliant
All TypeScript files have been updated to pass the new eslint-based linting checks. eslint compatible disabling comments have also been added in place of the previous tslint comments.
2021-05-03 07:31:02 -04:00
Charles Lyding
37a06a7c37 build: format all files
All files are now formatted using the ng-dev tools via prettier.
2021-04-28 16:05:49 -07:00
Joey Perrott
003854257c build: migrate all file header to use Google LLC rather than Google Inc 2021-04-27 08:35:22 +02:00
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