library-cli
v0.1.7
Published
A CLI for building React libraries
Downloads
5
Readme
Library CLI
A CLI for creating, building, and testing JavaScript libraries.
Installation
yarn add -D library-cli
Usage
library build
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!
library test
Runs tests (including test coverage) using jest
Tests must be placed inside a __tests__
directory.