Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

add-component

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-component - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

5

index.js

@@ -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 @@

2

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc