-
Notifications
You must be signed in to change notification settings - Fork 13
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
Config file #1
Comments
Hello @dricholm. Thank you for the feedback, I really appreciate it. I like the idea of reading config parameters from pubspec.yaml by default and allowing to specify other config file using cli option (like in flutter_launcher_icons). Probably, I will implement it in the next release. |
I've released 0.0.2 version that allows using config file and added an example usage in readme. I'll be glad to hear any feedback. |
I just tried it out using the separate config file method, works perfect. |
Hello @westracer,
Thanks for this package! So far it works great for me.
Currently I am using it as a dev dependency in a project, where I have the svg files in the assets folder and added the generated font and dart class to
.gitignore
. So it works in a similar way as build_runner generated files.But to generate the desired output I always have to specify all the arguments and options in the command, e.g.
flutter pub run fontify assets/svg/ fonts/app_icons.otf --output-class-file=lib/presentation/utils/app_icons.dart -r -c AppIcons
.Right now I have the command added to
README.md
, but it would be a lot easier if a config file could be read for this. Something like in flutter_launcher_icons. I would prefer a separate config file, but maybe it could also be placed insidepubspec.yaml
or handling both options would be even better.What do you think of this?
The text was updated successfully, but these errors were encountered: