See NPM
documentation on publishing packages:
npm publish
npm run build
Due to our Python/JS stack, we recommend Hooks4git module.
requirements: pip
pip install hooks4git --user
cd working-project/
hooks4git --init
Now you get a new .hooks4git.ini
and some hooks in .git/hooks