add-component
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -37,2 +37,7 @@ #!/usr/bin/env node | ||
// to not overwrite the list of technologies | ||
if (customConfig.techsToGen && customConfig.techsToGen.indexOf('*') === -1) { | ||
commonConfig.techsToGen = customConfig.techsToGen | ||
} | ||
// adjust config according to given options | ||
@@ -39,0 +44,0 @@ |
{ | ||
"name": "add-component", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Create React Component CLI", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -175,4 +175,32 @@ # add-component | ||
### Configuration details | ||
#### Technologies to generate | ||
In `techsToGen`, you can define the list of technologies to generate. This list will overwrite the default list, but if | ||
you include `*`, the default technologies will preserve.<br/> | ||
Note, that for custom technologies you will also need its configuration in `techs` field. | ||
To re-define the list of technolofies: | ||
``` | ||
module.exports = { | ||
techsToGen: [ | ||
'styled-components', | ||
'react' | ||
] | ||
} | ||
``` | ||
To save default list of technologies and add more: | ||
``` | ||
module.exports = { | ||
techsToGen: [ | ||
'*', | ||
'styled-components' | ||
] | ||
} | ||
``` | ||
## License | ||
MIT © [Jack Hanford](http://jackhanford.com) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16843
408
206
9