173 Commits

Author SHA1 Message Date
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
Charles Lyding
065ac4546f fix(@angular/cli): remove npm 7 incompatibility notification
npm 7.5.6 contains several fixes that allow it to work successfully with the Angular CLI.
The minimum npm engine value is now set to support npm versions greater than 7.5.6 (npm 6 support remains unchanged).
A warning will be shown to users with npm 7 versions less than 7.5.6 when used with the new, add, or update commands.
2021-02-24 18:19:54 +01:00
Charles Lyding
d1f616930d build: set minimum Node.js version to 12.13
This change provides an improved performance baseline as well as access to newer Node.js APIs and Javascript language features which the Angular CLI will now be able to leverage.

BREAKING CHANGE:
Node.js version 10 will become EOL on 2021-04-30.
Angular CLI 12 will require Node.js 12.13+ or 14.15+. Node.js 12.13 and 14.15 are the first LTS releases for their respective majors.
2021-02-08 09:23:46 -05:00
Charles Lyding
331f628139 fix(@angular/cli): temporarily limit npm to version 6
This change will display an error message if using npm 7 (or versions earlier than 6). This is a temporarily change while npm 7 usability concerns are addressed.
2021-02-04 14:59:40 -08: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
208336dee0 refactor(@angular-devkit/core): remove resolve methods and options
BREAKING CHANGE: deprecated API's `ModuleNotFoundException`, `ResolveOptions`, `resolve` have been removed. Use `MODULE_NOT_FOUND` and `require.resolve` instead.

**Note**: this change only effect users using `@angular-devkit/core` public API and not application developers.
2020-09-03 00:20:12 +03:00
Alan Agius
05588fcee1 refactor: clean up unused code and imports 2020-07-24 08:01:52 +02:00
Doug Parker
49ed081589 refactor: move Wombat registry to reusable constant
Pure refactor that just pulls the Wombat registry into a separate string constant to be re-used across scripts.
2020-07-23 10:45:25 +02:00
Keen Yee Liau
9970beb542 docs: Update doc for major version release 2020-07-09 19:11:25 +02:00
mgechev
0181d8538f build: version from git tag which consists two or more digits
Currently, we can't publish v10 because the `--match` pattern in describe can't match the tag `v10.0.0`. The new glob has the following semantics:

```
v[0-9]*.[0-9]*.[0-9]*
```

Couldn't make it stricter because didn't find an easy way to enable extglobs for git for everyone.
2020-04-08 13:16:11 -07:00
Alan Agius
a32429f799 style: disable no-implicit-dependencies in scripts and rules 2020-02-04 07:26:16 -08:00
Charles Lyding
59cf170c92 build: remove pnpm engine value due to lack of yarn support
Yarn displays a warning due to an unknown engine value of `pnpm`.  Until this is corrected upstream, the value can be temporarily removed to eliminate the multiple, but otherwise harmless, warnings shown to users upon package install.
2020-01-15 11:33:06 -08:00
Charles
33e9039219 build: set minimum Node.js version to 10.13 (#15756)
Version 10.13.0 was the first version of 10.x that was considered LTS.  This also provides an improved performance baseline as well as access to newer Node.js APIs and Javascript language features which the Angular CLI will now be able to leverage.
2019-10-10 12:39:28 -07:00
Charles
a8e19c2e98 build: update minimum npm/yarn engine versions for built packages (#15567)
The `peerDependenciesMeta` package.json field is becoming increasingly prevalent.  The minimum versions in this change provide support for the field and mitigate incorrect peer dependency warnings for end users.

npm: fc5fc76182/CHANGELOG.md (v6110-2019-08-20)
yarn: 53d8004229/CHANGELOG.md (1130)
pnpm:
https://github.com/pnpm/pnpm/releases/tag/v3.2.0
2019-09-11 10:07:59 -07:00
Charles Lyding
402349d763 test: remove unused code coverage infrastructure
Closes #13228
It is currently unused and requires an old version of the `source-map` package.  This old version conflicts with the use of newer versions that are required to provide the necessary functionality and performance within the published packages.
2019-08-08 08:26:15 -07:00
Charles Lyding
8ef7ba5a8d build: generate valid version when on release commit 2019-07-10 04:08:39 +08:00
Filipe Silva
97970026f1 ci: add circleci windows preview 2019-06-06 16:02:17 -07:00
Charles Lyding
3d313aede8 build: remove generation of inline sourcemaps 2019-03-25 13:00:20 -07:00
Hans Larsen
470ae53a63 fix(@angular/cli): don't remove scripts from package.json
This was dropped because we used to have postinstall scripts that
we did not want to use on npm. We don't anymore, so there's no
use in removing those scripts.
2019-03-25 12:37:05 -07:00
Hans Larsen
c0aa3d9a63 build: add reverse dependencies to packages map 2019-03-13 13:51:01 -07:00
Hans Larsen
08e91a94ab build: refactor QoL on monorepo.json
This should make it easier to manage and diff. This takes 2 things into account:
1. we have either stable or experimental versions and each are kept in monorepo.
2. we dont keep hash and update only changed packages.

This commit also removed the hash to make sure this does not happen.
2019-03-13 13:51:01 -07:00
Charles Lyding
1357ea2183 build: update minimum required Node.js version to 10.9 2019-03-11 13:46:48 -07:00
Hans Larsen
3c0bb12091 build: add bootstrap debug logs 2019-02-27 16:35:31 -08:00
Hans
8a796e7db5 test: downgrade output of typescript to es2016 for istanbul 2018-12-14 10:55:04 -08:00
Hans
2b3f9de403 refactor: use Buffer.from instead of deprecated constructor 2018-12-14 10:55:04 -08:00
Hans
a6f80e4fe7 Various QoL with TSLint and Docs (#12655)
* docs: add README files to all root folders

Except benchmark and tools.

* refactor: move rules/ directory to etc/

And fix a linting error that was found while updating tslint usage

* ci: lint errors out if TSLint shows a warning

This is not a warning from the code itself, but from TSLint. For example,
if a rule was missing, TSLint will just ignore the rule, show something on
STDOUT and not fail.

This fixes CI where local rules were missing for unknown reasons. It will
now fail CI when that happens, which is the correct behaviour.
2018-10-23 11:59:16 -07:00
Charles Lyding
b89f6b1c62 build: avoid swallowing module not found exception 2018-10-04 13:32:30 -07:00
Noel Mace
3de49db38e fix(@angular/cli): capture CPU profile
Replace the v8-profiler dependency with v8-profiler-node8 as the first one
doesn't support node 8 and 10, and that @angular/cli support only node 8
and 10.
2018-10-03 16:35:54 -07:00
Filipe Silva
b6793bd521 build: use specific engines for built packages 2018-09-14 13:56:43 -07:00
Hans
defe0cca06 build: support for JSON Schemas files in bootstrap-local 2018-09-13 16:44:17 -07:00
Hans Larsen
737ffad272 ci: bootstrap-local now prioritizes typescript files over JSON
The require() logic by default is not enough; require("file") would pick the json
if there are both a file.ts and file.json. This does not show up in prod because
js files are prioritized over json, but it does show up in bootstrap because we
compile ts in memory and there are no .js file on disk (which require()
could potentially see).

This is necessary for the schema change because schema.json and
schema.ts collides. We should also rename the commands from *-impl.ts to
just *.ts (they were named that way because of this conflict).
2018-09-13 16:44:17 -07:00
Filipe Silva
4a5973c37a build: workaround yarn tgz bug 2018-09-10 14:19:22 -07:00
Hans
c0f61dcb83 build: throw an exception when a package is not found in monorepo 2018-08-21 11:19:55 -07:00
Hans
56a97c1fc2 build: add support for yarn workspace in scripts 2018-08-21 11:19:55 -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
Charles Lyding
e54213e488 refactor(@angular/cli): remove resolve dependency 2018-05-14 16:38:03 -04:00
Dennis Sanders
bfa46656de refactor(@angular/cli): exclude builtin modules 2018-01-29 13:46:21 +00:00
Dennis Sanders
f724722914 fix(@angular/cli): exclude nodejs built-ins from process.cwd() resolve 2018-01-23 15:27:59 -08:00
Hans Larsen
dd9e69e1ae build: fix bootstrap-local when linked locally
Before it would try to load the package from the CLI project, as a
regular require() call, now it adds a check to see if it can be resolved
from the process.cwd(), before doing the previous behaviour.
2017-10-23 22:08:30 -07:00
Hans Larsen
23da9064fb build: use the tar files for dependencies for e2e
This adds a new flag to the build script that sets the tar files path as dependencies inside the package.json before tarring the files.
2017-08-02 13:41:06 -07:00
Hans Larsen
bcd0d01015 ci: use tar balls instead of npm install /path
Node 8 actually symlink when installing a path, so using a tar ball forces it
to be more like a real install.
2017-07-05 15:57:04 -07:00
Hans Larsen
d928c1c8d4 tool(publish): adding a new tool infrastructure with a publish tool. 2017-03-27 17:34:39 -07:00
Filipe Silva
5c9c653f79 feat(@angular/cli): use standard stackTraceLimit (#5284)
Sometime very long ago we set infinite stack traces and never took them out.

This PR sets infinite stack traces only on dev setups.
2017-03-07 21:59:06 +00:00
Stephen Cavaliere
7b8f692973 fix(@angular/cli): ignore ts-node when attempting to run karma with a linked cli (#4997)
fixes #4568, #4177
2017-02-25 14:54:57 +00:00
Hans
601f9b38f8 feat(@angular/cli): move angular-cli to @angular/cli (#4328)
This release is otherwise identical to beta.28.
2017-02-01 18:19:50 -08:00
Hans
61dd440f4d chore(packages): move packages into their own scope. (#3413)
This will facilitate management of packages internally.
2016-12-05 17:44:35 -08:00
Hans
28925dc3a6 chore(install): move ember cli in our repo and remove everything unnecessary (#3056)
* chore(install): move ember-cli to a directory in angular-cli
* further remove files
2016-11-10 02:34:23 +01:00
Hans
d29677815b feature(compiler): add support for AoT to the CLI. (#2333)
Also adding a new package, webpack, which is a plugin and loader for
webpack that adds support for AoT.

It is behind a `--aot` flag in the CLI that is supported by build and
serve.
2016-09-27 18:59:33 -07:00
Hans
1572270b1c refactor(all): Repackaging (#2056)
Moving Angular-CLI into `packages/` and building the angular-cli.

The published packages will now have JavaScript only (with their d.ts), instead of being a mix of TypeScript and JavaScript, and it won't have the hacks of having a custom require extension to load the TypeScript.

Our development flow will be more streamlined, tools are going to be better (no more undefined symbols that are actually defined), and the npm packages will boot up way faster (since there's no more compilation during runtime).

Locally nothing changes, use `npm link` and run your local `ng`. Using the `npm` releases though it should be all javascript from the release.

The E2E tests also now uses the `dist` folder output to install in the new E2E app, making sure the process works for an app published to npm.

Note: Even though we're following the lerna structure, we won't be using their tool anytime soon.
2016-09-12 13:29:10 -07:00