utilifire
v1.1.3
Published
CLI to generate a boilerplate for libraries as npm packages
Downloads
2
Maintainers
Readme
utilifire
CLI for easily publishing modern React libraries with Rollup and example usage via create-react-app.
Intro
The purpose of this CLI is to make publishing our own libraries as easy as possible.
Features
Prerequisite :
- use yarn
Install
yarn global add utilifire
ou
npm install -g utilifire
Creating a New Package
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.
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
Advices
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)
Roadmap
- [ ] 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 ?)
License
MIT © Maximilien Garenne