1.0.7 • Published 4 years ago

@vobi-io/trello-task v1.0.7

Weekly downloads
16
License
MIT
Repository
github
Last release
4 years ago

trello-task

The Trello Task library

Instalation:

Using yarn:

$ yarn add @vobi-io/trello-task husky

Using npm:

$ npm i -S @vobi-io/trello-task husky

Usage :

// @task refactor function

Using keyword this package will create task on trello after you commit and push your changes

trello image

Extra Featueres:

// @task refactor function @due 11/29/2019

Using keyword @due with following date formate MM/DD/YYYY you can also set deadlines

trello image

Configuration :

Create file in your project root directory for example trello.js

// trello.js

const task = require('@vobi-io/trello-task')

const configuration = {
    key: \* Trello api key *\,
    token: \* Trello api token *\,
    lists: [
      { keyWord: '@task', idList: \* Id of list on trello you want your tasks to be created *\ },
      { keyWord: '@major', idList: \* Id of list on trello you want your tasks to be created *\ }
    ]
};

/*
  lists in configuration will search for keyword you specify 
  and create task in specified list 
*/

task(configuration)

// you can choose any keyword you want

Inside your package.json add this configuration

// package.json

"husky": {
    "hooks": {
      "pre-push": "node trello.js" // name of file you configured
    }
}

You are all done after you push your commits to git this package will look for keyword and create task for you on trello

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago