puttputt

0.3.1 • Public • Published

🚗 puttputt

a simple react component generator

✨ features

  • 💰 JS and TS ready-- renders TypeScript components if it detects any TS configs in root
  • 👉 next-gen es6
  • 👀 as-unopinionated-as-possible template code
  • 📝 generates tests (jest/enzyme) if necessary
  • 😈 redux-ready

🔮 usage

$ yarn add --dev puttputt

include a script in your package.json

scripts: {
  "generate": "puttputt"
}

✔️ prerequisites

by default, puttputt looks for an app source directory and will fail if it can't don't exist. this is a pitfall of plop not having built-in path logic.

for now, it looks for one of the following common dirs:

  • src/
  • client/
  • src/client

🔥 redux

redux generators are visible when your project is using redux (i.e. if redux is listed in your dependencies)

puttputt will generate specific templates if your app is using any of the following:

  • redux-saga
  • immutable

for redux components (actions/reducers), puttputt looks for the following directories:

  • src/
  • common/
  • src/common

🙌 shoutouts


init'd with golf ⛳️

Package Sidebar

Install

npm i puttputt

Weekly Downloads

0

Version

0.3.1

License

MIT

Unpacked Size

36.3 kB

Total Files

72

Last publish

Collaborators

  • gretzky