Socket
Socket
Sign inDemoInstall

create-react-component-with-no-config

Package Overview
Dependencies
327
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    create-react-component-with-no-config

Create React component with no configurations.


Version published
Weekly downloads
8
increased by700%
Maintainers
1
Install size
16.7 MB
Created
Weekly downloads
 

Readme

Source

create-react-component-with-no-config

NPM version NPM downloads CircleCI

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!):

structure

Documentation

folder structure

  • src/index.jsx: Your fancy component
  • example/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

  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

FAQs

Last updated on 11 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc