Skip to content
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

Merged
merged 1 commit into from
Oct 29, 2020

Conversation

kaltepeter
Copy link
Collaborator

Usage:

npm install @angular-extensions/svg-icons-builder or

ng add @angular-extensions/svg-icons-builder

  • adds svg-to-ts as a dev dependency

image

Tested in a sample repo with ng add, npm link doesn't seem to allow testing the install use case.

@@ -1,9 +1,44 @@
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks';

const svgToTsVersion = '^5.7.0';
Copy link
Collaborator Author

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.

Copy link
Member

@nivekcode nivekcode left a 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

@nivekcode
Copy link
Member

@kaltepeter Just saw #15. Thats basically what I meant with the comment above.

@nivekcode nivekcode linked an issue Oct 28, 2020 that may be closed by this pull request
Usage:
`npm install @angular-extensions/svg-icons-builder` or
`ng add @angular-extensions/svg-icons-builder`

- adds `svg-to-ts` as a dev dependency
@nivekcode nivekcode merged commit 0615740 into angular-extensions:main Oct 29, 2020
@kaltepeter kaltepeter deleted the feature/ng-add branch November 1, 2020 13:20
@nivekcode
Copy link
Member

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for ng-add
2 participants