1
0
mirror of https://github.com/angular/angular-cli.git synced 2025-05-25 00:31:36 +08:00

3757 Commits

Author SHA1 Message Date
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
Alan Agius
a24c46182f test: fix chunk in entry test 2019-03-13 13:49:49 -07:00
Alan Agius
be95ec4636 build: update jasmine to 3.3.1+ 2019-03-13 13:49:49 -07:00
Alan Agius
4ff4d5335f feat(@schematics/angular): update workspace jasmine to 3.3.1+ 2019-03-13 13:49:49 -07:00
Alan Agius
c378ddc500 feat(@schematics/schematics): update jasmine to 3.3.1+ 2019-03-13 13:49:49 -07:00
Hans Larsen
3ac1cc30a7 feat(@angular-devkit/architect): add scheduleTargetAndForget function
It came up with Nrwl that this is a common pattern; someone wants to schedule a
target but does not want to manage the run himself. This function cancels the
run when the Observable is unsubscribed from (which is not the case for a
traditional run).

Because stop logic can be asynchronous, we need to add a teardown logic
handler to the context, which turns out to be useful for other cases as
well.
2019-03-11 13:48:01 -07:00
Hans Larsen
6a0b3fe6b2 feat(@angular-devkit/build-angular): re-export schemas
When we moved to using QuickType to generate those we removed those
exports. That was an unfortunate breaking change.
2019-03-11 13:48:01 -07:00
Hans Larsen
78a4149384 feat(@angular-devkit/build-angular): browserTarget should match target pattern 2019-03-11 13:48:01 -07:00
Hans Larsen
890cfbe7c7 fix(@angular-devkit/build-angular): fail the build if service worker fails
Its the sensible thing to do.
2019-03-11 13:48:01 -07:00
Hans Larsen
15312e8ef0 feat(@angular-devkit/architect): add targetFromTargetString() function
Useful for reading options. This uses the reverse logic from
targetStringFromTarget().

Also add tests for both functions.
2019-03-11 13:48:01 -07:00
Charles Lyding
9ef4a0593e ci: remove Node.js 8 E2E tests 2019-03-11 13:46:48 -07:00
Charles Lyding
9bd93579c7 test(@angular-devkit/build-angular): ensure server address type before use 2019-03-11 13:46:48 -07:00
Charles Lyding
54ad086493 fix(@angular-devkit/build-webpack): check server address type before use 2019-03-11 13:46:48 -07:00
Charles Lyding
1357ea2183 build: update minimum required Node.js version to 10.9 2019-03-11 13:46:48 -07:00
Charles Lyding
b4965c09e2 feat(@angular/cli): update minimum required Node.js version to 10.9
Node.js 8 is now in maintenance LTS status and will be EOL in December 2019. Node.js 10 is now the active LTS version with Node.js 12 due for arrival in April 2019. Node.js 10+ 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-03-11 13:46:48 -07:00
Filipe Silva
efac7b61ba ci: rebase PRs on target branch 2019-03-11 13:45:18 -07:00
Alan
b32ad328cf fix(@angular-devkit/build-optimizer): don't add pure comments inside arrow functions
Fixes 
2019-03-11 13:45:00 -07:00
Alan Agius
1e3c6e3ca5 fix(@angular-devkit/build-angular): fix base href insertion when HTML is in a single line
When HTML is in a single line using offset + 1 will cause the insertion of the base href tag in the wrong possition.

Fixes 
2019-03-11 13:43:54 -07:00
Alan
901042d95b fix(@angular-devkit/build-angular): fix check for absolute paths in windows in server config
This changes fixes `Error: You must pass in a NgModule or NgModuleFactory to be bootstrapped`.

At the moment the check for absolute path is not correct for windows.

Fixes  and fixes https://github.com/angular/universal/issues/1139
2019-03-11 13:40:38 -07:00
WilliamKoza
d841b3771e fix(@schematics/angular): change entry file name of the library schematic according to the kebab-case convention 2019-03-11 13:40:02 -07:00
Hans Larsen
15d7aea2b7 feat(@angular-devkit/core): analytics interfaces and basic implementations
This is a preliminary analytics interface. It is meant to be used by every
other subsystem where useful, but can be replaced by implementations.
2019-03-11 13:38:00 -07:00
Hans Larsen
7eb4bab00f build: add validation for "DO NOT SUBMIT" strings
This makes sure that messages that should not be submitted (or
comments) fail validation on CI.
2019-03-11 13:38:00 -07:00
Cyrille Tuzi
d747490fd9 feat(@schematics/angular): JSON schema for service worker config 2019-03-11 13:37:28 -07:00
Filipe Silva
e96afb874d test: ignore platform-server tests for ivy 2019-03-07 16:03:10 -08:00
Alan
a9ebfc8076 ci: include ivy tests in windows ci
With this change we include ivy tests to run under windows, also this changes `ivy-lazy-load` test to create a project only 1 time. This is important for windows, as `npm install` & `ngcc` take a lot of time, and for this specific test it is done 3 times.

Now `npm install` and `ngcc` will only run once
2019-03-07 16:02:53 -08:00
Alan
345ab4817a fix(@ngtools/webpack): getCurrentDirectory should not return a devkit path
At the moment we are leaking devkit paths as `getCurrentDirectory` is used by the ngtsc compiler if no `rootDir` directories is provided.

`getCurrentDirectory` is also used to contruct the `rootDirs` option which is causing this to be incorrect as under Windows as `rootDirs` will be have an invalid value example: `/c/foo/bar`

This PR complements https://github.com/angular/angular/pull/29151

**Note** that this currently works because we are normalizing paths with posix seperators and is mimicking the behaviour of the logical file system used by the ngtsc.

Fixes: 
2019-03-07 16:02:53 -08:00
Renovate Bot
29b1533fa9 build: update webpack-dev-middleware to version 3.6.1 () 2019-03-07 16:02:08 -08:00
clydin
b1477425d9 feat(@angular-devkit/schematics): support unicode character HTML element names ()
The HTML specification allows for a wide variety of characters to be present within a custom element name.  The previous behavior limited the names to mostly alphanumeric characters.  This change opens up the names to include the characters specified within the specification for custom element names.
2019-03-07 16:01:41 -08:00
clydin
324d9f2d4f feat(@angular-devkit/schematics): support basic promise/async based rules ()
Currently, all third-party schematic developers are forced to use and directly depend on `rxjs` if any logic is asynchronous.   Doing so can can also add overhead and unneeded complexity for organizations that have chosen to standardize on async/await usage. This change allows such parties to rely on native promise support if desired.
2019-03-07 15:51:03 -08:00
Hans Larsen
fd5cb7a7f0
release: v8.0.0-beta.5 v8.0.0-beta.5 2019-03-06 14:01:53 -08:00
Alan Agius
ea6eaee123 test: fix paths for ivy lazy loading tests 2019-03-06 12:52:28 -08:00
Charles Lyding
a1aa8d56c4 feat(@angular-devkit/core): add workspace reader/writer core API
NOTE: No changes have yet been made to the public API of the package.
This introduces the core and eventual public API for the stable workspace API.  This is not intended to be feature complete but rather represents the initial base infrastucture necessary for pending future feature additions.
2019-03-06 11:34:05 -08:00
Charles Lyding
263231ea56 refactor(@angular-devkit/core): move existing workspace API under experimental
This API is already experimental.  The move allows for the new stable API to use the "workspace" directory structure and to also better signify that the existing API is in fact experimental and subject to change or removal.
2019-03-06 11:34:05 -08:00
Alan
309b4838c3 fix(@angular-devkit/build-angular): don't bundle linked modules when bundleDependencies in none in server builder
Fixes 
2019-03-06 11:29:51 -08:00
Filipe Silva
643e83d054 feat(@schematics/angular): use esnext as the default TS module format 2019-03-06 11:29:34 -08:00
Filipe Silva
7d8ded250b test: add comprehensive tests for Ivy lazy load styles 2019-03-06 11:29:34 -08:00
Filipe Silva
5a2aee9a92 test: exit e2e early if it would run no tests 2019-03-06 11:29:34 -08:00
Alan Agius
703407319b build: update karma and tslint 2019-03-06 11:28:37 -08:00
Alan Agius
60ccf2fe64 feat(@schematics/angular): update minimum karma and tslint versions
Karma `4.0.1` removes usages of some vulnerable dependencies
See: https://github.com/karma-runner/karma/releases/tag/v4.0.1

Also, this updates tslint to `~5.13.1` which comes with several bugfixes https://github.com/palantir/tslint/blob/master/CHANGELOG.md#change-log
2019-03-06 11:28:37 -08:00
Alan Agius
320273af5a feat(@angular-devkit/build-angular): add support for tslint 5.13+
Tslint 5.13+ introduced an addition parameter for the format method, mainly used for check-style formatter.

During runtime users using an older version of tslint that doesn't expose this it is not a problem as this parameter will be ignored.

See: 9000479b69
2019-03-06 11:28:37 -08:00
Alan
a30ca72074 ci: add configuration for legacy projects
In some cases, there are still legacy projects, prior to migrations and we should not use `webdriverUpdate` and we should use headless chrome.
2019-03-06 11:28:26 -08:00
Alan
0a4c86bac5 style: format touched files in e2e 2019-03-06 11:28:26 -08:00
Alan Agius
9d4a0935e9 test: update e2e to support new ng new layout 2019-03-06 11:28:26 -08:00
Alan
a7d095d916 feat(@schematics/angular): change layout for root applications
This change aligns the file layout of applications generated with `ng new` and `ng generate`

Ref: TOOL-686
2019-03-06 11:28:26 -08:00
Alex Eagle
bf1c069f73 refactor(@schematics/angular): drop dependency on TypeScript package
instead, vendor in the two files we actually need.
This reduces our install footprint by 5MB
2019-03-06 11:27:48 -08:00
Alex Eagle
4e262f966f build: Update to latest bazel rules 2019-03-06 11:27:48 -08:00
Alan
64b83e2a55 feat(@schematics/angular): relocate ng g service-worker files
This is a follow up on https://github.com/angular/angular-cli/pull/13811, with this now all application have the same structure and hence `ng g service-worker` should follow suit and have the same folder strucute if generated in a root app, or an app inside the projects.
2019-03-06 11:27:04 -08:00
Hans Larsen
f06493cb8a feat(@angular-devkit/architect): QoL changes for builders
Add a scheduling options to scheduleTarget and Builder on the context so
builders can schedule sub-builds and override the logger.

Add a getTargetOptions() for builders to get access to options from the
host for a specific target. This allows builders to get options, override
some, then scheduleBuilder with those new options, for example.
2019-03-06 10:05:31 -08:00
Hans Larsen
61adf9ae35 refactor(@angular-devkit/build-angular): remove useless variable rename 2019-03-06 10:05:31 -08:00
Hans Larsen
0003adf757 refactor: builders can return non-observable output 2019-03-06 10:05:31 -08:00