This package has been deprecated

Author message:

Deprecated in favor of @postinumero/library-scripts

library-util

0.5.0 • Public • Published

library-util

Create JavaScript library package for ES Module and CommonJS targets.

Contents

Getting Started

one Make sure you have at least Node.js v8 and npm v5.2 installed:

node -v
npm -v

two Create package.json, install library-util and initialize project:

mkdir my-lib
cd my-lib
npm init -y
npm install --save-dev library-util
npx library-util init

three Create your library in src directory and then:

npm run build

Commands

init

Initialize project template:

npx library-util init
babel

Transpile src to es and cjs directories:

npx library-util babel

You may pass additional arguments to Babel CLI:

npx library-util babel --out-dir ../other-project/node_modules/my-lib --watch
# With --verbose option 
npm start -- --out-dir ../other-project/node_modules/my-lib

Dependencies (37)

Dev Dependencies (1)

Package Sidebar

Install

npm i library-util

Weekly Downloads

33

Version

0.5.0

License

ISC

Unpacked Size

68.8 kB

Total Files

59

Last publish

Collaborators

  • visma_arnosaine
  • visma_bot
  • arnosaine
  • juusoko