Export utils from @schematics/angular
See original GitHub issueFrom @alan-agius4 on March 16, 2018 17:12
Bug Report or Feature Request (mark with an x
)
- [ ] bug report -> please search issues before submitting
- [X] feature request
Area
- [] devkit
- [x] schematics
Desired functionality
At the moment none of the @schematics/angular
utils and actual schematics are exported available if one needs to create a custom schematic using an existing util, or build on top of an existing schematic.
- It would be nice that at least some utils are exported such as the
ast utils
,find-module
etc… While I understand that these might not make sense to be in@angular-devkit/core
, I think it will be good to export them and make them available. Either in the schematics package itself or create another package such as@angular-devkit/utils
,@angular-devkit/ast-utils
etc…
Another option would be to export them directly from the @schematics/angular
package, using the main
and typings
field in package.json
I’ll happily do a PR if you let me know is the desired way.
Copied from original issue: angular/devkit#514
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:5
Top Results From Across the Web
Speed up your Angular schematics development with useful ...
The following Angular CLI schematics util functions are based on the Angular CLI version ... function exported from @schematics/angular/utility/ast-utils .
Read more >schematics-utilities
This project was created from that purpose - providing a collection of general and useful utilities for Schematics, based on non-exported existing utilities...
Read more >Automatically Updating Angular Modules With Schematics ...
addExportToModule, Adds an export to the NgModule ... schematics-angular-utils/ast-utils'; import { InsertChange } from '.
Read more >Angular Schematics - add library to NgModule imports
export function addImportStatement(tree: Tree, filePath: string, ... function from `@schematics/angular/utility/ast-utils' utils.
Read more >Generating code using schematics - Angular
A schematic is a template-based code generator that supports complex logic. It is a set of instructions for transforming a software project by...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Also for reference, somewhat related (but different): https://github.com/angular/angular/issues/29241 and https://github.com/angular/angular/pull/28343
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.