How much time do you spend copying and pasting the component folder to create a new one ?
Visual studio code extension to create react components base on create-component-app library
-
Create a config object
ccarc
on user preference like -
Right click on folder destination where you want your new component.
-
Insert name of the component.
-
Enjoy 🌮
ext install vs-component-app
Or link available here
Create a config object ccarc
on user preference.
Here you can find the docs about the config object
{
"ccarc": {
"type": "class",
"jsExtension": "js",
"cssExtension": "scss",
"includeTests": false,
"includeStories": false,
"indexFile": false,
"connected": false,
"componentMethods": [
"componentDidMount",
"shouldComponentUpdate",
"onClick"
],
"fileNames": {
"testFileMatch": "spec",
"testFileName": "myTest",
"componentFileName": "template",
"styleFileName": "style"
}
}
}
Create a config object ccarc
on user preference
{
"ccarc": {
"type": "custom",
"templatesPath": "PATH/OF/CUSTOM/TEMPLATE/FOLDER"
}
}
Here you can find the documentation on how to write your own custom templates
The library is open to everybody, contribute improve your skills.
vs-component-app
is maintained under the Semantic Versioning guidelines.
MIT © Christian Varisco