Meet Snipper, a general purpose code gen runner based on node. Snipper aim to provide an easy way to develop codegen/codemod ecosystem, making sharing generator templates easy, and using generators easier For more about the problems snipper can solve for you, see About
Snipper allow you to generate and modified code by a single command, no installation required.
For example, running the following command will create a new react component
TBD
Run package locally:
- go to package directory
node .
(will automatically run index.js)- make sure to add additional required parameters
- Package entry point ("main") should be index.js (or ts if you're using typescript)
- Package options can be overridden with
.env.local
, for making development easier
lerna create <name> // create a package
lint-staged