azk-projects-boilerplate
follow azk
standards to create new npm packages.
Search for azk-projects-boilerplate
to find what have to be changed before upload.
- src: all files will transpiled with babel to lib/src
- spec: all files will transpiled with babel to lib/spec
- bin: no ocours transpilation here
-
Reset git:
$ rm -rf .git $ git init
-
Install/Update dependencies:
$ npm install --save-dev azk-dev $ gulp editor:config $ gulp babel:runtime:install $ npm install
-
Commit
$ git add . $ git commit -m 'Start the project based on the `azk-projects-boilerplate`.'
Show all gulp tasks:
$ gulp help
# default (lint + test, no watch)
$ gulp lint test
# test + lint + watch
$ gulp watch:lint:test
# test + watch (no-lint)
$ gulp watch:test
You can deploy package with:
$ npm run deploy [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease]
This should run the following steps:
- Check if not tracked commits in git
- Run tests with
npm test
- Upgrade version in
package.json
, commit and add tag - Publish package in npmjs.com