create-react-component-with-no-config
v1.0.9
Published
Create React component with no configurations.
Downloads
8
Readme
create-react-component-with-no-config
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!
Install
yarn global add create-react-component-with-no-config
Usage
create-react-component-with-no-config react-xxx
# or
create-react-component react-xxx
# or type less
crc react-xxx
# you can also create component in place
mkdir react-xxx && cd react-xxx
crc
The folder struture of generated project (no config files!):
Documentation
folder structure
src/index.jsx
: Your fancy componentexample/index.jsx
: Entry file of your demo
npm scripts
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.
badges
The generated README.md
in your project contains the badges of npm version
, npm downloads
and circleci status
.
Contributing
- 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
Author
MIT License
minemine.cc · GitHub @luyilin · Twitter @luyilin12