1 | [![Actions Status](https://github.com/lewis785/tempo-summary-email/workflows/Node%20CI/badge.svg)](https://github.com/lewis785/tempo-summary-email/actions)
|
2 | [![Npm Version](https://img.shields.io/npm/v/tempo-summary-email)](https://www.npmjs.com/package/tempo-summary-email)
|
3 | [![install size](https://packagephobia.now.sh/badge?p=tempo-summary-email)](https://packagephobia.now.sh/result?p=tempo-summary-email)
|
4 | [![Dependency Status](https://david-dm.org/lewis785/tempo-summary-email/status.svg)](https://david-dm.org/lewis785/tempo-summary-email)
|
5 | [![Dev Dependency Status](https://david-dm.org/lewis785/tempo-summary-email/dev-status.svg)](https://david-dm.org/lewis785/tempo-summary-email?type=dev)
|
6 | [![Code Coverage](https://codecov.io/gh/lewis785/tempo-summary-email/branch/master/graph/badge.svg)](https://codecov.io/gh/lewis785/tempo-summary-email)
|
7 |
|
8 | # Tempo Summary Email
|
9 | Uses Jira and Tempo apis to create a daily email about work completed.
|
10 |
|
11 | ## Installation
|
12 |
|
13 | Install using [NPM](https://npmjs.org):
|
14 |
|
15 | ```shell script
|
16 | $ npm install tempo-summary-email
|
17 | ```
|
18 |
|
19 | ## Example
|
20 |
|
21 | ```javascript
|
22 | // ES5
|
23 | const TempoSummaryEmail = require("tempo-summary-email").default;
|
24 |
|
25 | // ES6
|
26 | import TempoSummaryEmail from "tempo-summary-email";
|
27 |
|
28 | const tempoSummaryEmail = new TempoSummaryEmail({
|
29 | tempoApiKey: "TEMPO_TOKEN",
|
30 | jiraUsername: "user@example.com",
|
31 | jiraApiKey: "JIRA_TOKEN",
|
32 | jiraDomain: "example.atlassian.net"
|
33 | });
|
34 |
|
35 | tempoSummaryEmail.generateEmailForRange("2020-01-01", "2020-01-01")
|
36 | .then(response => {
|
37 | console.log(response)
|
38 | });
|
39 | ```
|
40 |
|
41 | ## Development
|
42 | For development this project contains a Dockerfile which can be started using the command:
|
43 | ```shell script
|
44 | docker-compose up --build -d
|
45 | ```
|
46 |
|
47 | To access the docker container run:
|
48 | ```shell script
|
49 | docker-compose exec tempo-summary-email bash
|
50 | ```
|
51 |
|
52 | During development it's recommend to run:
|
53 | ```shell script
|
54 | npm run watch
|
55 | ```
|
56 | This causes any changes done to in typescript to be immediately compiled into javascript.
|
57 |
|