Skip to content

Commit

Permalink
Merge pull request #6 from 67P/chore/releases
Browse files Browse the repository at this point in the history
Set up release compilation and publishing
  • Loading branch information
gregkare committed Oct 18, 2019
2 parents 979108a + 2629f2b commit 160e1af
Show file tree
Hide file tree
Showing 23 changed files with 356 additions and 8 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -14,6 +14,13 @@ Compile app, run API server, watch code and reload automatically:

npm run lint

### Releases

The versioning command will compile a release build to the `release/` directory
and commit the files in the version commit:

npm run version [patch|minor|major]

### Resources

#### TypeScript, Express.js & Co.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

22 changes: 15 additions & 7 deletions package.json
@@ -1,22 +1,30 @@
{
"name": "akkounts-api",
"version": "1.0.0",
"description": "",
"main": "dist/app/index.js",
"version": "1.1.0",
"private": true,
"description": "Back-end for Kosmos Accounts app",
"main": "release/index.js",
"scripts": {
"clean:app": "rm -rf dist/app/",
"clean:specs": "rm -rf dist/spec/",
"clean:release": "rm -rf release/*",
"compile:app": "tsc",
"compile:specs": "tsc",
"compile:release": "npm run clean:app && npm run clean:release && tsc && cp -r dist/app/* release/",
"compile:specs": "npm run clean:specs && tsc",
"dev": "tsc --watch & nodemon dist/app",
"lint": "eslint app/ --ext ts",
"start": "npm run dev",
"pretest": "npm run clean:specs && npm run compile:specs",
"pretest": " npm run compile:specs",
"test": "mocha -s 300 --recursive dist/spec/",
"preversion": "npm test",
"version": "npm run compile:release && git add release/",
"ngrok": "ngrok http -region=eu 3200"
},
"keywords": [],
"author": "",
"keywords": [
"kosmos",
"btcpay"
],
"author": "Kosmos Developers",
"license": "AGPL",
"dependencies": {
"axios": "^0.19.0",
Expand Down
33 changes: 33 additions & 0 deletions release/api.js

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

1 change: 1 addition & 0 deletions release/api.js.map

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

10 changes: 10 additions & 0 deletions release/index.js

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

1 change: 1 addition & 0 deletions release/index.js.map

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

11 changes: 11 additions & 0 deletions release/lib/btcpay/client.js

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

1 change: 1 addition & 0 deletions release/lib/btcpay/client.js.map

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

21 changes: 21 additions & 0 deletions release/lib/nodemailer.js

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

1 change: 1 addition & 0 deletions release/lib/nodemailer.js.map

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

59 changes: 59 additions & 0 deletions release/routes/accounts/mastodon/btcpay_hook.js

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

1 change: 1 addition & 0 deletions release/routes/accounts/mastodon/btcpay_hook.js.map

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

57 changes: 57 additions & 0 deletions release/routes/accounts/mastodon/invoices.js

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

1 change: 1 addition & 0 deletions release/routes/accounts/mastodon/invoices.js.map

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

50 changes: 50 additions & 0 deletions release/routes/accounts/mastodon/registrations.js

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

1 change: 1 addition & 0 deletions release/routes/accounts/mastodon/registrations.js.map

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

0 comments on commit 160e1af

Please sign in to comment.