8000 GitHub - soda-sorcery/component-cli
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

soda-sorcery/component-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

component-cli

automagically create react components, both jsx and tsx, from the command line.

let's get moving

let's put the tool on your path npm install component-cli -g

navigate to the directory the component belongs cd /parent-directory

run component MyNewComponent

This will output the following directory

+--parent-directory
|   +--myNewComponent.js
|   +--my-new-component.scss

additional trickery

pass -t to create a typescript component pass -jsx to create a .jsx extension pass -h to add a hash to the scss class name: my-new-component-9ab2efa0c75981f879ca8c4714162787

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0