67 Commits

Author SHA1 Message Date
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
Renovate Bot
688ed6aca9 build: update zone.js to version ^0.9.0 2019-03-27 12:23:59 -07:00
Filipe Silva
6e3d2e0c4d feat(@ngtools/webpack): support Angular 8
This requires updating projects to TypeScript 3.3
2019-03-20 12:29:01 -07:00
Hans Larsen
c7cc4ddff0
release: v8.0.0-beta.7 2019-03-14 16:02:05 -07:00
Hans Larsen
6acd20bb30 feat(@schematics/angular): allow ember, ember-cli, vendor, app and test names
We dont care about the app name anymore.
2019-03-13 13:56:13 -07:00
Hans Larsen
fd5cb7a7f0
release: v8.0.0-beta.5 2019-03-06 14:01:53 -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
Hans Larsen
214e8efaa7
release: v8.0.0-beta.4 2019-02-28 17:57:33 -08:00
Minko Gechev
ef11c9fbc9 release: v8.0.0-beta.3 2019-02-27 16:40:55 -08:00
Keen Yee Liau
ac77a5e9ab fix(@schematics/angular): JsonUtils should respect indent
This commit fixes a few issues with json-utils:

1. The implementation is lacking tests
2. The implementation hardcodes indent = 2 in many places and
   does not respect the `indent` parameter passed by users
3. The implementation is buggy when passed an empty object or array
2019-02-21 15:16:19 -08:00
Keen Yee Liau
a5738dbbf5 release: v8.0.0-beta.2 2019-02-21 10:27:30 -08:00
Alan Agius
9bf8b3e65a fix(@schematics/angular): findModuleFromOptions not handling properly different casing in name
At the moment users can have various casing and seperatirs in paths, we should not always dasherize the name when resolving modules.

As for example when providing something like:

```
/module/SubModule/feature
```

It won't be able to resolve the modules properly as `sub-module` does't exist.

This PR also updates the test for underscore as previously it was not properly testing this usercase, since the formatter was used on name and not th path.

Fixes #13714
2019-02-20 17:14:26 -08:00
Keen Yee Liau
040dcb8365 feat(@schematics/angular): Update rxjs to 6.4.0
6.4.0 is needed so that Bazel does not have to build rxjs from source

See [angular/angular#28720](https://github.com/angular/angular/pull/28720)
2019-02-17 10:38:52 -08:00
Alan
a7c811a2d9 feat(@schematics/angular): scaffold new projects with angular packages version 8 2019-02-08 16:06:37 -08:00
cexbrayat
6f816cac70 fix(@schematics/angular): update latest version of devkit 2019-02-08 16:05:16 -08:00
cexbrayat
b1b365e4fd fix(@schematics/angular): update latest version of devkit 2019-01-18 11:55:14 -08:00
Charles Lyding
66604efaca feat(@schematics/angular): enabled conditional ES2015 polyfills for new apps 2019-01-15 14:17:55 -08:00
Alan Agius
45160acb77 feat(@schematics/angular): add support for tslint.yaml in lint fix
tslint config file can be either json or yaml format. See https://palantir.github.io/tslint/usage/configuration

Fixes #12545
2019-01-08 14:04:13 -08:00
Alan Agius
263e8c1333 feat(@schematics/angular): generate ngsw-config.json under the project
Generate `ngsw-config.json` under the project sourceRoot if root is empty similar to the `karma.conf.js`

Now:
```
-- src
---- ngsw-config.json
-- project
---- app
------ ngsw-config.json
```
Current:
```
-- ngsw-config.json
-- src
-- project
---- app
------ ngsw-config.json
```

Fixes #10793
2019-01-08 13:49:40 -08:00
Minko Gechev
25a277400b release: v7.2.0-rc.0 2018-12-19 15:15:07 -08:00
Alan Agius
3e0128e110 feat(@schematics/angular): add support for TypeScript 3.2 and Angular 7.2.0-rc.0 2018-12-19 10:55:05 -08:00
Alan Agius
17ba2bc450 fix(@schematics/angular): set optimization and sourceMap in universal production config
- When using Universal sourceMaps should not be enabled or at least `styles` sourceMaps should be disabled as these will otherwise be inlined and will be set as apart of the server side rendered page.

- While there is no benefit to optimize the scripts at server level, styles should always be minified so that the server side rendered page is smaller.

Fixes #12541 and Fixes #12940
2018-12-14 10:54:30 -08:00
Keen Yee Liau
8a41a00f1f release: v7.2.0-beta.2 2018-12-12 11:21:20 -08:00
Alex Eagle
a0b991310a build: update unstable release numbers for 7.2 beta 2018-12-07 05:57:11 -08:00
赵正阳
822d6a0b9b fix(@schematics/angular): add providers into providers metadata but not inner Object with ut. (#13081) 2018-11-30 14:08:49 -08:00
Alan Agius
0692cacd06 feat(@schematics/angular): account for root level assets and resourcesOutputPath (#13074)
* feat(@schematics/angular): account for root level assets and `resourcesOutputPath`

By default we are only account for assets inside the assets folder. Which breaks the offline experience.

Fixes #13067

* test: add test to verify root level assets in service workers
2018-11-30 14:08:03 -08:00
Hans
1e5cbd1cc9
release: v7.1.0 2018-11-26 11:16:06 -08:00
Alan Agius
8f0d03b6c2 fix(@schematics/angular): addSymbolToNgModuleMetadata metadata without indent
At the moment, at least a single whitespace is required as otherwise the following error `Cannot read property '0' of null ` will be thrown

Fixes #12950
2018-11-14 12:42:48 -08:00
Alan Agius
53118c6224 build: update typescript to 3.1.6 (#12849)
* fix(@angular-devkit/build-optimizer): update typescript to 3.1.6

* build: update typescript to 3.1.6
2018-11-06 22:46:37 -08:00
Alex Eagle
0c4b4a6f8b release: v7.1.0-beta.0 2018-11-01 13:29:57 -07:00
Filipe Silva
208912fffe build: update typescript to 3.1.5 2018-11-01 07:49:11 -07:00
Alan Agius
f52f043e4f docs: update descriptions 2018-10-24 13:11:55 -07:00
Alan Agius
515553f0dc fix(@schematics/angular): module is not being located correctly when using flat
Fixes #12614
2018-10-23 11:57:50 -07:00
Alan Agius
0b4e91bb97 feat(@schematics/angular): enable typescript helpers in workspace 2018-10-23 10:22:16 -07:00
vikerman
0cfbdbc045
refactor: Add an extra option to not use dasherize in findModuleFromOptions (#12500)
In Google we prefer underscore instead of dashes. So this options is useful there.
2018-10-09 07:45:47 -07:00
vikerman
e3f56ebc71
fix(@schematics/angular): ast utils - handle NgModule with no newlines (#12521)
Exposed in Google where the formatting is different. Check for null before using a regex match result.
2018-10-09 06:37:50 -07:00
Hans Larsen
ab1dfd0927 release: v7.0.0-rc.1 2018-10-01 16:13:54 -07:00
Alan Agius
b040a3ccfd feat(@schematics/angular): update to latest versions of TypeScript and Angular 2018-10-01 07:39:59 -07:00
Hans
fabcac10da feat(@schematics/angular): look for module in more places (#12389)
Recursively go through parents of the component and parents of the module name.

Fixes #7662.

Also shows tried directories on failure so the user has more informations.
2018-09-27 14:21:56 -07:00
Charles Lyding
9a793494dc build: update rxjs to 6.3 2018-09-26 12:57:56 -04:00
Alan Agius
c6a92a6579 refactor: change code to work with TypeScript 3 and add missing models 2018-09-26 12:12:01 -04:00
Keen Yee Liau
c38e6345e2 refactor(@schematics/angular): Parameterize findModule
This commit modifies `findModule` to accept custom regular expressions
so that a different filename convention for Angular modules is allowed.
2018-09-18 11:34:09 -07:00
Hans
2f7f00f4cd refactor(@schematics/angular): replace usage of unknown for any
Google3 is still on TypeScript 2.9.
2018-09-17 14:56:57 -07:00
Keen Yee Liau
c594a6c098 release: v7.0.0-beta.3 2018-09-13 22:13:34 -07:00
Alan Agius
82f2bda2f5 refactor(@schematics/angular): make interaction with architect targets type safe 2018-09-12 12:37:24 -07:00
Alan Agius
b8b36ba339 refactor: pin down all direct dependencies
This is so that CLI users get the same direct dependency versions that were tested on the CI.
2018-09-07 11:01:50 -07:00
Alex Eagle
7421d63d4a release: v7.0.0-beta.1 2018-09-06 14:31:53 -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
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