crc-test

0.0.6 • Public • Published

create-react-component

Create React component with no configurations.

Inspired by create-vue-component, this is a fork repo.

Install

yarn global add crc-test

Usage

create-react-component vue-xxx
# or type less 
crc vue-xxx
 
# you can also create component in place 
mkdir react-xxx && cd react-xxx
crc

Documentation

folder structure

  • src/index.js: Your fancy component
  • example/index.js: 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 Tyu)
  • yarn lint: Lint only.

badges

The generated README.md in your project contains the badges of npm version, npm downloads and circleci status.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

MIT License

minemine.cc · GitHub @luyilin · Twitter @luyilin12

Readme

Keywords

none

Package Sidebar

Install

npm i crc-test

Weekly Downloads

1

Version

0.0.6

License

MIT

Last publish

Collaborators

  • luyilin