-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ng-add): integrate with ng-add #14
Conversation
160d093
to
46498bd
Compare
src/ng-add/index.ts
Outdated
@@ -1,9 +1,44 @@ | |||
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; | |||
import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks'; | |||
|
|||
const svgToTsVersion = '^5.7.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Likely if there are breaking schema changes in svg-to-ts
this version would matter. Right now they are aligned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! 💪 Currently, there are a couple of conflicts from the previous merge. If we resolve those conflicts we can merge this. As future enhancements, it would be nice that the ng-add
command asks for the various properties. I am not yet sure how we can make this conditional - so for example that ng-add
asks you for the conversionType
. Based on that it should then aks for the correct options and then automatically configure the builder in the angular.json
@kaltepeter Just saw #15. Thats basically what I meant with the comment above. |
46498bd
to
e83e3d3
Compare
Usage: `npm install @angular-extensions/svg-icons-builder` or `ng add @angular-extensions/svg-icons-builder` - adds `svg-to-ts` as a dev dependency
e83e3d3
to
0988b19
Compare
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Usage:
npm install @angular-extensions/svg-icons-builder
orng add @angular-extensions/svg-icons-builder
svg-to-ts
as a dev dependencyTested in a sample repo with
ng add
,npm link
doesn't seem to allow testing the install use case.