Create React component with no configurations.
Inspired by the awesome vue-land/create-vue-component, now you can create a react component just like it!
yarn global add create-react-component-with-no-config
create-react-component-with-no-config react-xxx# orcreate-react-component react-xxx# or type lesscrc react-xxx# you can also create component in placemkdir react-xxx && cd react-xxxcrc
The folder struture of generated project (no config files!):
src/index.js: Your fancy component
example/index.js: Entry file of your demo
yarn example: Run the demo for your component (with Poi)
yarn example:build: Build the demo for your component (with Poi)
yarn build: Build your component (with Bili)
yarn test: Lint and test your component (with Jest)
yarn lint: Lint only.
README.md in your project contains the badges of
npm downloads and
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D