A CLI for creating, building, and testing JavaScript libraries.
yarn add -D library-cli
Builds your library using smart defaults. Overriding configuration may be possible in a future release.
- Builds a commonjs version using
main
frompackage.json
. - Builds an esm version using
module
frompackage.json
. - Automatically marks
peerDependencies
asexternal
. - Uses
@babel/preset-env
and@babel/preset-react
. - More to come!
Runs tests (including test coverage) using jest
Tests must be placed inside a __tests__
directory.