@168496714/create-react-component

a cli to create react component simply

Stats

stars šŸŒŸissues āš ļøupdated šŸ› created šŸ£size šŸ‹ļøā€ā™€ļø
@168496714/create-react-component
Minified + gzip package size for @168496714/create-react-component in KB

Readme

create-react-component

a cli to create react component simply

feature

zero config

includes

  • webpack4 to dev/build package
  • React 16.2
  • babel
  • eslint
  • flow for static type check
  • Enzyme and ava for test

usage

npm install @168496714/create-react-component -g 
create-react-component <project-name>
cd <project-name> 
yarn // or npm install

dev

npm run build

// default run in 3000

build

npm run build

//default entry build/main.js

structure

ā”œā”€ā”€ package.json ā”œā”€ā”€ public
ā”‚ ā”œā”€ā”€ app.js ā”‚ ā””ā”€ā”€ index.html ā”œā”€ā”€ server ā”‚ ā””ā”€ā”€ index.js ā”œā”€ā”€ src ā”‚ ā””ā”€ā”€ index.js // entry of your component ā”œā”€ā”€ test ā”‚ ā”œā”€ā”€ helpers ā”‚ ā””ā”€ā”€ test.js ā”œā”€ā”€ webpack ā”‚ ā”œā”€ā”€ webpack.dev.js ā”‚ ā””ā”€ā”€ webpack.prod.js

TODO

  • configurable, such as eslint , prop-types or flow

  • smart , such as dev port tip, npm/yarn

  • conversion into script

  • more ,waiting you to point me out

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.