Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Add dist compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Oct 28, 2021
1 parent 28f1d7a commit 5bacf0f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ This integration does the following things:
* Create transactional email templates in SendGrid, unless a template ID was provided for each email type
* Assemble data for transactional emails and send them using the SendGrid API

## Using this repo

This repository runs in combination with the [integration-helper](https://github.com/chec/integration-helper). That
repository provides context (e.g. merchant, API connectivity, integration info) and then runs the code in this
repository.

### Building

When you make changes to this repository you will need to rebuild the dist files. For this, we use
[`@vercel/ncc`](https://github.com/vercel/ncc):

```
npm run build
```

## Email types

* Customers: new order. Sent when a new order is placed, this is the order receipt the customer receives.
Expand Down
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@
"author": "Robbie Averill <[email protected]>",
"license": "Proprietary",
"private": true,
"scripts": {
"build": "ncc build index.js -o dist -m"
},
"dependencies": {
"@chec/webhook-verifier": "^1.0.1",
"@sendgrid/client": "^7.5.0",
"@sendgrid/mail": "^7.5.0"
},
"devDependencies": {
"@vercel/ncc": "^0.31.1"
}
}

0 comments on commit 5bacf0f

Please sign in to comment.