Use this repository as a template. Sed package name
sed -i '' 's/ts-package-boilerplate/am-i-online/' package.json
sed -i '' 's/fullpipe/your-github-username/' package.json
Also fix other stuff in package.json
That's it. Use it
npm i
npm run test
gts with some tweaks
mocha + chai for tests
build/ dir not ignored by default
npm publish automation
In order to publish your package, you need to create an NPM account.
If you don’t have an account run command npm adduser
If you already have an account, run npm login
to login to you NPM account.
To publish your package run
npm publish
To patch
npm version patch
npm publish
version
command executes git add ...
and git push
, see package.json
- add github actions for tests and build?