Sebastian Häni
8caeb47824
fix(@angular-devkit/schematics): fix generate
mangling files containing wide characters
...
Executing a command like `ng generate component my-component` can sometimes lead to
mangled Angular module files when inserting the component into `declaration` and
adding the import. This happens if the file contains characters that are wider than
one byte e.g. a copyright sign or an umlaut. Today it is expected to be able to use
two byte long characters in code.
The `UpdateBuffer` class operates using Buffer objects which use byte arrays internally.
Using text node positions provided by the TypeScript library, these will not match up.
This change looks up the textual position inside the Buffer and uses the correct index.
Closes #7851 , #7950
2018-09-06 10:53:27 -07:00
Alan Agius
e16c8bbe87
fix(@angular-devkit/build-angular): set the proper type to fileReplacements
...
Closes #11294
2018-09-06 10:51:04 -07:00
Alan Agius
65ede1fd6e
docs: fix english
2018-09-06 10:51:04 -07:00
Alan Agius
54f7ea2b1d
fix(@angular-devkit/schematics): throw InvalidCollectionJsonException
when collection file is invalid
...
Closes #11818
2018-09-06 10:49:50 -07:00
Alan Agius
5007a19ad9
refactor(@angular-devkit/build-angular): clean up style webpack config
...
Clean up several parts of the styles config and also removed the dependency on `postcss-url`
2018-09-06 08:51:22 -07:00
Charles Lyding
ee7603f597
feat(@schematics/angular): add several prompts to ng-new
2018-09-06 08:46:33 -07:00
Bram Borggreve
a94c826661
feat(@schematics/angular): let Universal schematic use configurations from build architect
2018-09-06 08:45:22 -07:00
Alan Agius
01beb520bc
feat(@angular-devkit/build-angular): add ignore
option to assets
object
...
You can now provide an array of globs to `ignore` from copying
Closes #11850
2018-09-06 08:36:16 -07:00
Alan Agius
bdebc9e0cb
feat(@angular-devkit/build-angular): add ignore
option to assets
object
...
You can now provide an array of globs to `ignore` from copying
Closes #11850
2018-09-06 08:36:16 -07:00
Alan Agius
509c0fa8af
build: add typescript
as devDependencies
2018-09-06 08:28:16 -07:00
Alan Agius
a723310e94
feat(@angular-devkit/build-optimizer): update typescript
dependency to 3.0.x
2018-09-06 08:28:16 -07:00
Alan Agius
88804b63dc
build: update repo to use typescript
3.0.x
...
Updated `@angular/<packages>` to `^7.0.0-beta.4` since we need this to be able to run the tests. Due to the `@angular/compiler` in `v6` doesn't support `typescript` `3.0.x`.
2018-09-06 08:28:16 -07:00
Alan Agius
58977a1969
feat(@ngtools/webpack): add typescript
version 3.0.x
as a peer dependency
2018-09-06 08:28:16 -07:00
Charles Lyding
cc6181e3c9
feat(@schematics/angular): add CLI 7.x migration schematic
2018-09-06 08:25:29 -07:00
Filipe Silva
53e6d2d3e9
test(@angular/cli): add third party decorator prod test
2018-09-06 08:18:41 -07:00
Filipe Silva
7c5178c698
feat(@angular-devkit/build-optimizer): correctly identify renamed enums
2018-09-06 08:18:41 -07:00
Filipe Silva
6076e16ebc
feat(@angular-devkit/build-optimizer): remove constructor __param
2018-09-06 08:18:41 -07:00
Filipe Silva
2962ede3e3
test(@angular-devkit/build-optimizer): also check method metadata
2018-09-06 08:18:41 -07:00
Hans
0070ea46e6
fix(@angular-devkit/schematics): fix task executor on Windows
...
Before we did not denormalize the paths, but were expecting to get paths as options.
2018-09-06 07:37:48 -07:00
Hans Larsen
fefef0271e
refactor(@angular/cli): remove parseJsonFile and add options to parseJson instead
2018-09-06 07:37:48 -07:00
Hans
c72c45f9db
fix(@angular/cli): only add options if theres only one builder configuration
2018-09-06 07:37:48 -07:00
Hans
66fbc59767
feat(@angular/cli): add long description and suboption option type
2018-09-06 07:37:48 -07:00
Hans
37d1a43d71
fix(@angular/cli): only print options once for schematic --help
2018-09-06 07:37:48 -07:00
Hans
c8ddfbbe62
fix(@angular/cli): add options in help for architect commands
...
And fix a bug with json schema to Option array.
2018-09-06 07:37:48 -07:00
Hans
7ffd3b3033
refactor(@angular/cli): rename project to workspace and clean up
...
Removed unnecessary fields in interfaces, added some comments. Overall QoL.
2018-09-06 07:37:48 -07:00
Hans
de7ec84872
feat(@angular/cli): add --helpJson (or --help-json) too all commands
...
And other refactors.
The interface for the JSON is available in command.ts (the CommandDescription).
2018-09-06 07:37:48 -07:00
Hans
fd7bcd25fe
fix(@angular-devkit/core): use architect key only if it exists
...
And if target didnt exist.
2018-09-06 07:37:48 -07:00
Hans
9517677158
feat(@angular-devkit/core): remove addUndefinedDefaults as default post transform
...
And various bug fixes.
2018-09-06 07:37:48 -07:00
Hans
ff1baab7fc
feat(@angular/cli): remove yargs-parser and implement parsing
...
This is fully backward compatible.
2018-09-06 07:37:48 -07:00
Hans
fb99a490bf
feat(@angular-devkit/core): add a parseJsonFile that shows file path on error
2018-09-06 07:37:48 -07:00
Hans
75d682b271
refactor(@angular/cli): use smart default instead of overwriting args
2018-09-06 07:37:48 -07:00
Hans
1b5c0082ef
feat(@angular-devkit/core): add levenshtein distance utility
2018-09-06 07:37:48 -07:00
Hans
0b84c1d4b0
feat(@angular-devkit/core): move findTypes in utility and export
2018-09-06 07:37:48 -07:00
Hans
4a25d7c9b4
test: get-set deprecation should check stderr now
2018-09-06 07:37:48 -07:00
Hans
189563d277
refactor(@angular/cli): rename getset command to deprecated
2018-09-06 07:37:48 -07:00
Hans Larsen
39b4cc030b
build: fix RxJS invalid typings
2018-08-30 16:49:31 -07:00
clydin
7e63dd791b
build: limit rxjs to 6.2.x due to a defect in 6.3.0 ( #12048 )
2018-08-30 15:33:31 -07:00
Adrian Moos
247b20d37a
style(@schematics/angular): fix typo and English in environment.ts ( #12023 )
2018-08-30 13:47:15 -07:00
Alan Agius
b0897c0306
fix(@schematics/angular): better error message when finding only routing modules ( #11994 )
...
Closes #11961
2018-08-30 13:46:52 -07:00
Filipe Silva
41d20873b1
fix(@angular-devkit/build-angular): remove workaround for uglify-es ( #12033 )
...
Fix https://github.com/angular/angular-cli/pull/11996#issuecomment-416514015
2018-08-29 09:27:39 -07:00
Alan Agius
a2342b6a75
feat(@angular-devkit/build-angular): remove inlining of assets in css ( #12027 )
...
BREAKING CHANGE: Assets under 10Kib are not longer inlined in css
2018-08-29 09:27:21 -07:00
clydin
67e32a8f25
fix(@angular-devkit/build-angular): improve bundle size value parsing ( #12026 )
...
Fixes #12013
2018-08-29 09:26:52 -07:00
clydin
9af2368481
ci: continue even if lint or validate fail ( #12011 )
2018-08-29 09:26:30 -07:00
Charles Lyding
fd6bba38a0
fix(@angular/cli): properly type config command value option
2018-08-29 09:25:56 -07:00
Charles Lyding
e0882a7549
fix(@angular-devkit/core): make workspace projects field not required
...
It has a default which makes the required aspect void.
Global files also do not have projects.
2018-08-29 09:25:56 -07:00
Charles Lyding
e177849f44
fix(@angular/cli): correct update command packages option type
2018-08-29 09:25:56 -07:00
Charles Lyding
d299ef7ff7
fix(@angular-devkit/core): correctly resolve schema references
2018-08-29 09:25:56 -07:00
Charles Lyding
cdbc1988f2
feat(@angular-devkit/schematics): allow schematic rules to control interactivity
2018-08-29 09:25:56 -07:00
Charles Lyding
489f0e9055
feat(@angular/cli): initialize a console prompt provider for schematics
2018-08-29 09:25:56 -07:00
Charles Lyding
516f52e3dd
feat(@angular-devkit/core): initial prompt provider json schema support
2018-08-29 09:25:56 -07:00