New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-react-webpack-component

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-react-webpack-component

A Yeoman generator to create small and reusable React components using webpack as the build tool.

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by450%
Maintainers
1
Weekly downloads
 
Created
Source

generator-react-webpack-component

A Yeoman generator to create small, reusable React components using webpack and Babel as the build tool.

It bundles the component code into a single UMD JavaScript file (having support for AMD, CommonJS and globals). Initially it contains just React as an external dependency of your component.

Although you might use this generator to create a big applications, its focus it to create small components.

Features

  • ES6 and ES7 syntax support through Babel;
  • No Grunt;
  • No Gupl;
  • EditorConfig already setup;
  • Uses npm as the task runner (ex: npm run build);
  • Development server with live-reload npm run dev;
  • Testing and linting support through Karma (with source-maps) and ESLint;
  • Continuous test execution on file changes npm run watch-test.
  • Be listed on react-components.com and react.parts (react-component keyword).

Getting Started

To install generator-react-webpack-component from npm, run:

npm install -g generator-react-webpack-component

Then create a folder that will hold the component code, such as:

mkdir banana-react-component

Finally, enter in the component folder and initiate the generator:

cd banana-react-component
yo react-webpack-component

Getting To Know Yeoman

If you'd like to get to know Yeoman better, check out the complete Getting Started Guide.

Acknowledgments

I've finally figured out how to make source-maps work thanks to Testing ReactJS Components with Karma and Webpack by Justin Woo.

License

MIT

Keywords

FAQs

Package last updated on 18 Aug 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc