Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 445 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 445 Bytes

newrctfile

Simple tool to create a React component with accompanying Jest test. The generated files are oppinionated

Install:

npm install -g newreactfile

Usage:

> newreactfile SuperComponent.js
Created  SuperComponent.js __tests__SuperComponent-test.js
> newreactfile frontend/components/messages/NewMessage.jsx
Created  NewMessage.jsx __tests__NewMessage-test.js

TODO

  • support more templates
  • custom templates