Template for NPM package
Push current branch only
git config push.default current
Configure your user
git config user.name "Alexey"
git config user.email [email protected]
Ignore InteliJ files
echo '.idea' >> .git/info/exclude
Change name
, repository.url
, homepage
, bugs
, description
and
keywords
in package.json
Change scripts.build
to actual build command
Remove private
in package.json
Add package files to files
in package.json
Squash all commits to Initial commit
Edit this readme
Setup branches protection
build
runs actual package build, it should put index.js
to the root oflint
runs against sources in src
folderpretest
removes previous coverage report and lint files on npm test
preversion
runs tests before tagging branch (TODO check that we tag onlymaster
branch)postversion
push changed package.json
and tagsprepack
build library before packing it