A simple, opinionated way to bootstrap a npm module, written in ES6+ and transpiled/minified into ES5.
Dead simple. Click the Use this template
button! Make sure you update any relevant information in package.json
and README.md
before publishing a module.
build
: transpiles and minifies all code in./src
into./lib
using babel;lint
: lints code in./src
usingeslint
;precommit
: (automatic) runs linter before every commit;prepublish
: (automatic) runs tests before attempting to publish the package;test
: runs tests in__tests__
usingjest
.
Note: scripts assume you use yarn
, because you should ;)
Dio can you hear me, I am lost and so alone - J.B.