Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-yarc

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-yarc

Yet another Yeoman generator for React components

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

YARC - Yet Another React Component generator for Yeoman

Yet another Yeoman generator for React components

CircleCI


install

$ npm install -g generator-yarc

requirements

enzyme

$ npm install --save-dev enzyme enzyme-adapter-react-16 react-test-renderer

jest

If you did not create your React project w/ create-react-app then follow the jest installation instructions here.

usage

$ yo yarc [NAME] creates Component.js and Component.test.js

See app/templates for the (ejs) templates used.

options

--class makes a class component instead of a pure function.

why another react component generator?

This generator:

  • Only tries to generate the component / test files
  • Leaves React scaffolding to projects that do it well. I.E. create-react-app
  • The test asserts that the generated component is rendering out of the box

running tests

$ npm test

License

MIT

Keywords

FAQs

Package last updated on 09 Jul 2018

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