0.1.1 • Published 8 years ago
react-generate-template v0.1.1
Simple react template generator
creates sample templating for react projects
Structure
creates folder(if not specified otherwise), and component inside of it. Uses the kebab-case for specifying folder and file names. For example:
home-page.js- inside will be capitalized CamelCase component nameHomePage
Installation
Globally
install dependency as global module
yarn add global react-generate-templateLocally
or install locally
yarn add --dev react-generate-templateafter installing add to package.json to scripts
{
"scripts": {
"generate": "react-generate-template"
}
}Use
Gloablly
react-generate-template REST_OF_COMMANDLocally
if you set up you script as above You can run
yarn generate REST_OF_COMMANDREST
after that conosle shows what you need/can add I will add possible/list of commands later.