9 Commits

Author SHA1 Message Date
Alan Agius
fcea2443aa fix(@schematics/angular): lazy loading module generation routing module lookup
Fixes: #15552
2019-09-10 10:09:31 -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
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
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
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
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
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
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
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00