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 lesha.ogonkov@gmail.com
-
Ignore InteliJ files
echo '.idea' >> .git/info/exclude
-
Change
name
,repository.url
,homepage
,bugs
,description
andkeywords
inpackage.json
-
Change
scripts.build
to actual build command -
Remove
private
inpackage.json
-
Add package files to
files
inpackage.json
-
Squash all commits to
Initial commit
-
Edit this readme
-
Setup branches protection
build
runs actual package build, it should putindex.js
to the root of the packagelint
runs against sources insrc
folderpretest
removes previous coverage report and lint files onnpm test
preversion
runs tests before tagging branch (TODO check that we tag onlymaster
branch)postversion
push changedpackage.json
and tagsprepack
build library before packing it
- Decide on coverage service