Skip to content

Conversation

@sicknarlo
Copy link
Contributor

This is a first go at adding support for some sort of default configuration.

This will allow users to create a configuration array either in the package.json or as an rc file, which looks like this:

crcf: [ "typescript" ] 

Then any new commands with the -default flag will automatically include any options in the array, along with any added options provided.

For example, with the above configuration the command npx crcf src/component/FooComponent --default will create tsx files. You can combine this with other flags too, i.e. npx crcf src/component/FooComponent -dufs

@sicknarlo
Copy link
Contributor Author

@snaerth
Copy link
Owner

snaerth commented Aug 9, 2018

@sicknarlo Sorry for the delay. I will look over this in the coming week. This is a great feature :) thank you

@snaerth snaerth merged commit a180682 into snaerth:master Aug 11, 2018
@snaerth
Copy link
Owner

snaerth commented Aug 11, 2018

The feature has been added. Thanks for your support.

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

Labels

None yet

2 participants