This repo is a simple npm package with some tools I'm using for development needs.
The idea for this package came from the generators available in the react-boilerplate/react-boilerplate project.
Actually, this has a dependency called
plop, and only exposes a single generator for a React component. It uses
inquirer-directory to ask you where to put your generated component relative to the process working directory.
Actually, this is just a set of generators. More tools can be implemented in the future. Though it has only a simple React Generator for now, I'm probably going to use this same package for backend microservices scaffolding in the future, something related to armand1m/microservices
armand1m-development-toolkit to your project as development dependency:
$ npm install --save-dev plop armand1m-development-toolkit
Create a npm script to run it:
// ... package.json content,"scripts":"generate": "plop --plopfile ./node_modules/@armand1m/development-toolkit/index.js"
$ npm run generate
Ideas are always welcome. Open an issue if you use this package and think it could have more generators.
When possible, try creating a PR ;)
Asks you for:
A folder with the specified component name into the specified destiny, with this file structure:
@storybook/reactmodule instead of
prop-typesmodule instead of
classnamesmodule in your project.
enzymemodule in your tests.
jestas test runner.
./**/*.stories.jsto load into the storybook.