Skip to content

Simple Node tool to create a React component with accompanying (Jest) test

Notifications You must be signed in to change notification settings

sslash/newRctFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple Node tool to create a React component with accompanying (Jest) test

Resources

Stars

Watchers

Forks

Packages

No packages published