13 Commits

Author SHA1 Message Date
Ash Ramirez
434a3740f0 refactor(@angular/cli): update aio links -> adev links
Updates for all angular.io links to the new angular.dev domain. Additionally, adjustment to new resources where the equivalent does not exist on the new site (e.g. Tour of Heroes tutorial)
2024-06-06 11:12:06 +02:00
Charles Lyding
bb43e0a7c4 test(@schematics/angular): update several tests to use async expectations
Using Jasmine's `expectAsync` allows for reduced test code when testing that
a function returning a promise rejects with a specific error.
2022-06-14 11:28:21 +02:00
Charles Lyding
ccd7e71a47 refactor(@schematics/angular): minor cleanup of unneeded @angular-devkit/core imports
Several imported types and values from `@angular-devkit/core` could be removed while still
maintaining the same functionality. This further reduces the schematics direct dependence
on the `@angular-devkit/core` package.
2022-04-22 11:31:53 -04:00
Charles Lyding
37a06a7c37 build: format all files
All files are now formatted using the ng-dev tools via prettier.
2021-04-28 16:05:49 -07:00
Joey Perrott
003854257c build: migrate all file header to use Google LLC rather than Google Inc 2021-04-27 08:35:22 +02: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