Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up release compilation and publishing #6

Merged
merged 3 commits into from Oct 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.