Skip to content

azukiapp/azk-projects-boilerplate

Repository files navigation

azk-projects-boilerplate

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

Before start development

  • 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`.'

azk-dev

Show all gulp tasks:

$ gulp help

Tests

# default (lint + test, no watch)
$ gulp lint test

# test + lint + watch
$ gulp watch:lint:test

# test + watch (no-lint)
$ gulp watch:test

Deploy npm package

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

About

azk projects boilerplate to start new npm packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published