-
Change the target project in the pivotal:
# local (.env file) PIVOTAL_PROJECT_ID=0000 PIVOTAL_INTEGRATION_ID=0000 # in Heroku heroku config:set PIVOTAL_PROJECT_ID=0000 PIVOTAL_INTEGRATION_ID=0000
-
Run script to make migration:
heroku run 'bin/github_pivotal azukiapp/azk --states="{ issue: 'unscheduled', pull_request: 'unscheduled' }"'
NOTE: changge
azukiapp/azk
to your repository
-
Get secret to configure in Github :
$ heroku config:get GITHUB_SECRET_KEY
-
Configure repository to send webhooks to app:
-
Access
Settings > Webhooks & Services
of your repository and click inAdd Webhook
:i.g.: https://github.com/azukiapp/github-pivotal/settings/hooks/new (change
github-pivotal
with name of your project). -
And fill out the form with your information, including
GITHUB_SECRET_KEY
you took the heroku and save:
-
-
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