0.1.7 • Published 5 years ago
library-cli v0.1.7
Library CLI
A CLI for creating, building, and testing JavaScript libraries.
Installation
yarn add -D library-cliUsage
library build
Builds your library using smart defaults. Overriding configuration may be possible in a future release.
- Builds a commonjs version using
mainfrompackage.json. - Builds an esm version using
modulefrompackage.json. - Automatically marks
peerDependenciesasexternal. - Uses
@babel/preset-envand@babel/preset-react. - More to come!
library test
Runs tests (including test coverage) using jest Tests must be placed inside a __tests__ directory.