Skip to content

Commit

Permalink
add travis ci and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bucko13 committed Feb 4, 2020
1 parent a5fba81 commit 318aed6
Show file tree
Hide file tree
Showing 5 changed files with 672 additions and 13 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
@@ -0,0 +1 @@
service_name: travis-pro
9 changes: 9 additions & 0 deletions .travis.yml
@@ -0,0 +1,9 @@
language: node_js
node_js:
- '12'
cache: yarn
script:
- yarn lint
- yarn build
- yarn test
after_success: yarn run coverage
4 changes: 4 additions & 0 deletions README.md
@@ -1,3 +1,7 @@
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Build Status](https://travis-ci.com/Tierion/boltwall.svg?branch=master)](https://travis-ci.com/Tierion/boltwall)
[![Coverage Status](https://coveralls.io/repos/github/Tierion/boltwall/badge.svg)](https://coveralls.io/github/Tierion/boltwall)

# ⚡️ Boltwall ⚡️

Bitcoin Lightning paywall and authentication using LSATs. Charge to access your API without requiring user accounts, API keys, credit cards, or storing any user data. All you need is a lightning node and a single line of code in your server. Built with [LND](https://lightning.engineering/), Nodejs, and Typescript.
Expand Down
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -13,11 +13,12 @@
},
"scripts": {
"start": "nodemon",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"build:bin": " ncc build src/server.ts -o bin/boltwall -m",
"build": "tsc --project tsconfig.build.json",
"clean": "rm -rf dist && mkdir dist && rm -rf bin && mkdir bin",
"lint": "tsc --noEmit --project tsconfig.json && eslint --ext .ts src --quiet",
"test": "LOG_LEVEL=none ts-mocha -p tsconfig.json tests/**/*.spec.ts",
"test": "LOG_LEVEL=none nyc ts-mocha -p tsconfig.json tests/**/*.spec.ts",
"test:watch": "LOG_LEVEL=none ts-mocha -p tsconfig.json --reporter spec --watch --watch-extensions ts tests/**/*.spec.ts",
"prepare": "npm run clean",
"docs": "./docs.sh",
Expand Down Expand Up @@ -56,12 +57,14 @@
"body-parser": "1.19.0",
"chai": "^4.2.0",
"cors": "2.8.5",
"coveralls": "^3.0.9",
"eslint": "6.1.0",
"eslint-config-prettier": "6.0.0",
"eslint-plugin-prettier": "3.1.0",
"is-base64": "1.0.0",
"mocha": "^6.2.2",
"nodemon": "1.19.1",
"nyc": "^15.0.0",
"prettier": "1.18.2",
"sinon": "^7.5.0",
"supertest": "^4.0.2",
Expand Down

0 comments on commit 318aed6

Please sign in to comment.