Netherworld's Pretend Minibar
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

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 ⛳️

install

npm i puttputt

Downloadsweekly downloads

0

version

0.3.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability