250 Commits

Author SHA1 Message Date
Charles Lyding
1a21759d00 build: remove unused release scripts
With the migration to the common dev-infra tooling for releases, the existing release scripts are now unused and can be removed.
2021-07-30 13:43:04 +01:00
Alan Agius
38b01b9625 docs: update public api steps in contribution guidelines 2021-07-30 12:44:43 +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
Alan Agius
fc39dd72ce build: remove unused non-bazel unit test script
This script is no longer used.
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
419a775fa3 build: use simplified stream construction in changelog script
Node.js now provides simplified stream construction capabilities which removes the need for the `through2` dependency.
This change allows for the removal of the `through2` development dependency which was otherwise unused.
2021-07-06 10:19:28 -04: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
Alan Agius
fdbd49a4d0 refactor: move public api golden files under golden directory 2021-04-29 12:50:11 -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
Charles Lyding
de58b36536 test: remove unmaintained third-party tslint rules
The `tslint-sonarts` package is both deprecated and unmaintained. The rules provided by the package are now removed from the `tslint` configuration for the project.
2021-04-28 19:43:52 +02:00
Alan Agius
0b27cfb720 build: update minimum supported node.js version to 12.14
This is to match the ranges in the framework repo.
2021-04-27 17:26:56 +02: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
Keen Yee Liau
3227e89588 ci: remove unused --ci option from validate script 2021-04-13 11:50:43 -04:00
Alan Agius
e1180ab8bd ci: add Python-2.0 as a valid license
`Python-2.0` is in the same category as `MIT`, hence it's a valid license that we can allow.

This is needed for `verdaccio` version 5 which uses `argparse` which is licenced as `Python-2.0`.
2021-04-12 12:34:48 -04:00
Alan Agius
b6abef1ec8 docs: clean up scripts readme
Remove old scripts
2021-04-09 13:16:56 -04:00
Alan Agius
4c1b4ddb8a build: remove bots from changelog special thanks 2021-04-09 13:16:56 -04:00
Alan Agius
8f1a333e99 build: remove special-thanks script
This script is not used.
2021-04-09 13:16:56 -04:00
Alan Agius
fd2dbb37ca test(@angular-devkit/build-angular): clean up tests from ViewEngine code 2021-03-31 10:04:23 -06:00
Charles Lyding
33884189cb build: removed unused benchmark utility script
This script no longer performs any test actions as all package code that previously used it has been removed.
2021-03-30 14:34:19 -06:00
Keen Yee Liau
90a01968f4 build: determine version to publish from package.json
Currently, the version of a release is determined by the git tag.
This PR changes release script to determine the release version from the
`version` property in the root `package.json`.

Release docs have also been updated.
2021-03-24 09:17:24 -04:00
Alan Agius
9c91af6579 build: sort changelog by commit message scope
Previously `a.type - b.type` always returned NaN, which broke sorting
2021-03-18 19:09:53 +01:00
Alan Agius
d50810a3a6 build: update changelog to include perf commits 2021-03-18 17:16:40 +01: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
Renovate Bot
e2d6df29e7 build: update webpack-dev-middleware to version 4.1.0 2021-02-15 14:46:21 -06:00
Alan Agius
ab84fc56b3 ci: remove validate-do-not-submit check
This uses  `git merge-base --fork-point master` which currently is not yielding a SHA on the patch branch. In some cases merge-base will not working as expected when base is ahead. See https://public-inbox.org/git/xmqq375okvxy.fsf@gitster.mtv.corp.google.com/T/#r3830f032d76f39b82d0ffe7f8bd77351cf634d29

This validation checks if `DO_NOT_SUBMIT` string literal has been added using `git diff`, when present validation will fail.

This check is unneeded as we do not use the `DO_NOT_SUBMIT` pattern, as we typically use `wip!` commit message types.
2021-02-03 12:18:26 -05:00
Alan Agius
1c48a24e92 docs: fix tests with Bazel link 2021-01-28 09:35:50 +01:00
Alan Agius
b3ed8aa4ad build: update revert pattern in changelog generator
This change will handle github reverts such as https://github.com/angular/angular-cli/pull/19736
2021-01-08 20:46:24 +01:00
Joey Perrott
c6e7da1b64 ci: update remaining references to old pr targeting system
Completes the migration to use the new unified target label system, updating
dependabot, renovate and angular-robot to expect the new labels.
2020-12-11 13:53:23 +00:00
Alan Agius
f0470f802e build: use ansi-colors instead of chalk in release checks
`chalk` is not a dev dependency in this repo. We use `ansi-colors` instead.
2020-12-02 08:30:37 +01:00
Joey Perrott
44a9bacfec build: update release process to reflect including updates to package.json
Now included in the release process is updating the root package.json version.
2020-12-01 08:03:52 +01:00
Alan Agius
db5c7776ac test(@angular-devkit/core): remove unused benchmark tests 2020-10-07 10:20:54 -04:00
Charles Lyding
df49fd6ad8 build: remove existing commit message validation
The shared dev-infra toolset is now used to perform commit message validation.
2020-10-05 14:11:17 -04:00
Charles Lyding
bcbfc9ca68 ci: set up commit message conformance rules using ng-dev 2020-10-05 14:11:17 -04:00
Charles Lyding
243ca5a134 test: use tslint directly to lint repository 2020-10-03 14:44:20 -04:00
Alan Agius
016700ba76 docs: fix incorrect number of test suites 2020-09-30 10:30:29 +02:00
Alan Agius
622d08447d refactor: use ansi-colors instead of removed terminal utils 2020-09-10 20:19:33 +02:00
Alan Agius
86d4f2c45a build: remove public docs script
We no longer publish docs to github wiki, therefore this script is now redundant.
2020-09-08 19:47:59 +02:00
Jefiozie
b2f0f074bf docs: update testing chapter with general test commands
Closes: #18710
2020-09-08 11:00:01 +02:00
Charles Lyding
f95e597a44 build: initialize benchmark script properties before use 2020-08-10 09:43:38 +01:00
Alan Agius
875e8b7066 refactor: rename licensesWhitelist to allowedLicenses 2020-08-05 08:18:24 -04:00
Alan Agius
1fb8853bf0 docs: add missing period in contributing guide 2020-08-05 08:18:24 -04:00
Charles Lyding
4f4733ee34 ci: prevent validation failure of non-fork PRs 2020-07-25 09:18:43 +02:00
Alan Agius
05588fcee1 refactor: clean up unused code and imports 2020-07-24 08:01:52 +02:00
Charles Lyding
c75ae25025 ci: use CircleCI pipeline SHA variables for commit validation 2020-07-23 22:41:00 +02:00
Doug Parker
6e8d4509a8 ci: require --tag flag for release and validate it
`--tag` now must be explicitly specified rather than defaulting to `latest`. It is also validated to be one of the expected set of tags. There is a new `--tagCheck false` flag that will skip this in order to handle one-off custom tags if necessary in the future.

Apparently NPM requires that all releases have tags (defaulting to `latest` if not explicitly specified), so there is no way to choose **not** to push a new tag. That means that you can't push `10.0.x` and then push `9.0.x` without either using `v9-lts` or clobbering `latest`. The `--tag` requirement should hopefully enforce this restriction to avoid a potential release footgun.
2020-07-23 10:45:25 +02:00
Doug Parker
b699a1e850 ci: parse boolean flags from string inputs
Flag arguments provided by minimist are always strings. Both `--branchCheck` and `--versionCheck` failed to take this into account and were incorrectly typed as a result. Now boolean flags are parsed into actual boolean types which can be used more intuitively.
2020-07-23 10:45:25 +02:00