CLI for easily publishing modern React libraries with Rollup and example usage via create-react-app.
The purpose of this CLI is to make publishing our own libraries as easy as possible.
- use yarn
yarn global add utilifire
ou
npm install -g utilifire
utilifire
Answer some basic prompts about your module, and then the CLI will perform the following steps:
- copy over the template to a new folder in the current directory
- install dependencies via yarn
- link packages together for local development
- initialize local git repo
At this point, the new module is all setup for local development.
You'll run rollup to watch your src/
module and automatically recompile it into dist/
whenever you make changes.
yarn start # runs rollup with watch flag
Please consider declaring your dependencies as external in order to reduce the build size after using the CLI to generate a folder.
( See rollup/constants.js
file)
- add git repo url ( and perform validations ( if not, prompt 'are you sure ? '))
- be able to parse a ~/.conf to override the default values for utilifire ( whivch are ?)
MIT © Maximilien Garenne