0.1.2 • Published 7 years ago
@britannica/create-lib v0.1.2
@britannica/create-lib
A sensible default configuration for creating rollup-based npm packages
Requirements
node >= 8
npm >= 5.2.0Usage
npx @britannica/create-lib <library name>Brief explanation
- After running, a new directory with your library name will be created with some rollup presets
- Your library source will be located in the
<library name>/srcdirectory - Run
npm run devis your watch task - Run
npm run buildto build your project into thedistdirectory - When publishing, the files in your
distdirectory will be what get published - If you need to change which files get published, update the
filesproperty inpackage.json