Skip to content

aranja/cra-generate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create React App Generator

Scaffold a React component.

Usage: cra-generate [options] <component>

Options:

  -h, --help                 output usage information
  -V, --version              output the version number
  -f, --functional           create a functional component
  -d, --directory [dir]      specify a directory for the component

If a .flowconfig is present, a // @flow comment is prepended to all script files.

Project specific settings can be added to the package.json file under the craGenerate key. Eg

"craGenerate": {
  "fileFormat": "paramCase",
  "directory": "widgets"
}
option type default description
directory string "components" Where, relative to the ./src/ directory, the component should be.
fileFormat string "pascalCase" One of: camelCase, constantCase, headerCase, paramCase, pascalCase or snakeCase.
componentFormat string "pascalCase" One of: camelCase, constantCase, headerCase, paramCase, pascalCase or snakeCase.
typeCheck `undefined string` undefined

License

MIT

About

Scaffold a React component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.7%
  • CSS 0.3%