Alex Eagle
a197615549
build: update jasmine_node_test rules to come from npm
2019-04-22 08:38:00 -07:00
Alex Eagle
ee619c9a34
build: run Bazel format/lint fix
2019-04-22 08:38:00 -07:00
Charles Lyding
52a014dd23
fix(@angular-devkit/core): ignore undefined targets when adding a workspace project
2019-04-16 11:23:48 -07:00
Charles Lyding
a3811a7ad2
fix(@angular-devkit/core): ensure long workspace value changes are multiline
2019-04-16 11:23:48 -07:00
Alan Agius
eac31541a1
test: add analytics to core golden files
2019-04-15 11:08:46 -07:00
Charles Lyding
f1c58bef97
fix(@angular-devkit/core): escape workspace json pointers
...
Internally, the JSON workspace support uses JSON pointers to represent change locations. These need to be escaped to support slashes within a key.
2019-04-15 11:02:46 -07:00
Charles Lyding
66230b3c2e
fix(@angular-devkit/core): allow scoped names for workspace projects
...
Library projects support scoped package names as project names.
2019-04-15 11:02:46 -07:00
Charles Lyding
0d6a9f842c
refactor(@angular-devkit/core): rename workspace namespace to workspaces
...
This avoids massive amounts of name conflicts between a commonly named variable of 'workspace' and the namespace
2019-04-15 11:02:46 -07:00
Charles Lyding
51e370cefc
fix(@angular-devkit/core): add project type as a workspace special extension
2019-04-15 11:02:46 -07:00
Renovate Bot
7fd6f6d501
build: update magic-string to version 0.25.2
2019-04-12 12:20:50 -07:00
Charles Lyding
7d416103a9
feat(@angular-devkit/core): make new workspace API public
2019-04-12 11:45:48 -07:00
Charles Lyding
b22202c120
refactor(@angular-devkit/core): adjust readWorkspace type to support eventual diagnostics
2019-04-12 11:45:48 -07:00
Charles Lyding
7439faba12
feat(@angular-devkit/core): implement workspace JSON reader/writer
2019-04-11 10:17:29 -07:00
ukrukar
3d86b18d7e
fix(@schematics/angular): buildRelativePath handles files in root
...
Before, if one of the arguments was a file in root (eg "/module")
code would fail with: "" must be an absolute path.
2019-04-01 10:51:24 -07:00
Hans Larsen
2ffbdfa86a
build: add a validation script for the analytics.md tables
...
Also added enums to update when changing dimensions.
2019-03-28 13:28:41 -07:00
Hans Larsen
55471770db
refactor: use dimensions for some values instead of metrics
...
This is after a discussion with someone internal. Metrics are good
for sums but not for comparisons and search/filtering.
2019-03-28 13:28:41 -07:00
Hans Larsen
e9ee58a89e
refactor(@angular/cli): move analytics constants to devkit core
...
They need to be shared with builders and schematics.
2019-03-28 13:28:41 -07:00
Charles Lyding
bf52b26219
fix(@angular-devkit/core): correct workspace discovery
2019-03-27 16:33:39 -07:00
Alex Eagle
eb5643e370
feat(@angular-devkit/core): Remove dep on chokidar
...
It is unused within our code, as webpack will do the file watching.
This removes 1.4 MB from the download size of the package.
See https://codepen.io/alexeagle/full/zbZWRM
BREAKING CHANGE:
Users who rely on angular-devkit/core to do the file watching must add chokidar to their devDependencies.
2019-03-13 13:53:53 -07:00
Hans Larsen
ffee8938bb
test: add tests for error propagation in jobs
...
It seems some testing was missing.
2019-03-13 13:51:22 -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
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
Alex Eagle
4e262f966f
build: Update to latest bazel rules
2019-03-06 11:27:48 -08:00
Hans Larsen
041907d551
feat(@angular-devkit/core): add factories for workspace
...
It makes it easier instead of always copy-pasting the same findUp code
to get the workspace file.
2019-03-05 11:14:59 -08:00
Renovate Bot
b80a281342
build: update ajv to version 6.10.0
2019-03-04 09:35:46 -08:00
Alan Agius
ae13974f1d
build: update to rxjs 6.4
2019-02-26 08:33:48 -08:00
Renovate Bot
86dbf22225
build: update ajv to version 6.9.2
2019-02-26 08:33:15 -08:00
Hans Larsen
1aa1b47f90
feat(@angular-devkit/core): remove Log messages from Job API
...
If a system wants to have logging it should multiplex it itself on a channel.
Also changed the previous Architect commits to remove usage of Logs and move
to a "log" channel.
2019-02-19 13:51:29 -08:00
Hans Larsen
0f0f289bf7
fix(@angular-devkit/core): fix true schemas post transform step
...
Also tighten the types a bit, and add a test that failed before and works now.
2019-02-19 13:51:29 -08:00
Hans Larsen
7023255c3d
feat(@angular-devkit/core): jobs should re-log instead of forwarding
...
Current behaviour is to have logs forwarded, but this is flawed because on the
job side the logger is actually re-created. This allows logs to be actually part
of the caller side logging infrastructure.
2019-02-19 13:51:29 -08:00
Hans Larsen
81967900d0
feat(@angular-devkit/core): logger.log() should keep own metadata
...
It was possible to overwrite the metadata of the logger itself (name, path)
when calling "log()". This should not happen. If there is a need to overwrite
the loggers metadata itself one should use "next()" and construct or forward
their own log entry.
2019-02-19 13:51:29 -08:00
Hans Larsen
d856f8f8f8
feat(@angular-devkit/core): export terminal capabilities
2019-02-19 13:51:29 -08:00
Renovate Bot
d5144c3bf3
build: update chokidar to version 2.1.2
2019-02-19 10:15:18 -08:00
Alex Eagle
9f33253f36
refactor: use vendored supports-color
2019-02-18 18:44:56 -08:00
Alex Eagle
fae77e9257
build: vendor chalk/supports-color in third_party
...
Also requires vendoring its single dependency
2019-02-18 18:44:56 -08:00
Charles Lyding
d849834445
feat(@angular-devkit/core): support console logger color customization
2019-02-15 08:01:41 -08:00
Hans Larsen
889c2549d1
fix(@angular-devkit/core): remove static initialization using process object
...
It does not work in a browser.
2019-02-14 11:54:56 -08:00
Renovate Bot
17388866a5
build: update ajv to version 6.9.1
2019-02-13 15:22:06 -08:00
Hans Larsen
e2bebe9871
test: add a test for deferred jobs
...
Just one more bit of coverage.
2019-02-07 15:57:48 -08:00
Hans Larsen
c4798b69d6
refactor(@angular-devkit/core): move core/node experimental files to own directory
...
It's just cleaner that way.
2019-02-07 15:57:48 -08:00
Hans Larsen
445946515d
refactor(@angular-devkit/core): set JobStrategy type arguments default
2019-02-07 15:57:48 -08:00
Hans Larsen
988835d024
feat(@angular-devkit/core): add a reuse JobStrategy
...
It allows a job to be reused if it's still running. This includes redirecting
the inputs to the new job.
2019-02-07 15:57:48 -08:00
Hans Larsen
4571197326
feat(@angular-devkit/core): add a fallback registry
...
Its get method goes through an array of registries and return the first
one found.
2019-02-07 15:57:48 -08:00
Hans Larsen
c461ed5960
feat(@angular-devkit/core): createJobFactory does not have to have options
...
It matches the other factories.
2019-02-07 15:57:48 -08:00
Hans Larsen
0e6384b8c4
fix(@angular-devkit/core): Properly subscribe/unsubscribe to observables
...
This has been a source of headaches when debugging the Architect jobs.
We keep all subscriptions now and unsubscribe them when the result is
done.
2019-02-07 15:57:48 -08:00
Hans Larsen
ef93ff8c78
refactor(@angular-devkit/core): Type JobHandlerContext properly
...
The input field is not an unknown JsonValue, the type is part of the
generic. It's validated by the scheduler.
2019-02-07 15:57:48 -08:00
Hans Larsen
ca31640505
refactor(@angular-devkit/core): change the job context scheduler to generic
...
That scheduler is really an any scheduler and would need to be typed
appropriately. There could be multiple schedulers that this job is
part of and it is impossible to ensure the scheduler is a more specific
type than unknown.
Note: This was wrongly typed before.
Context: JsonValue is the JSON equivalent of the unknown TS type.
2019-02-07 15:57:48 -08:00
Hans Larsen
5f73b17f7a
refactor(@angular-devkit/core): add invalid argument exception class
...
Before we were (wrongly) using the InboundMessage exception class. This was
an oversight. This commit introduces a new InvalidArgument exception for this
special case.
2019-02-07 15:57:48 -08:00
Renovate Bot
be79d2a662
build: update chokidar to version 2.1.0 ( #13599 )
2019-02-07 08:24:05 -08:00