chore: revert 211e3015, better integrate with now

pull/164/head
Amio 2018-09-19 10:30:30 +08:00
rodzic 15c9928684
commit a91baad92f
3 zmienionych plików z 10 dodań i 7 usunięć

Wyświetl plik

@ -52,7 +52,6 @@ At the time of badgen.now.sh's reveal, it had only four live badges as demonstra
[![Maintainability][maintainability-src]][maintainability-href]
[![Code Quality][codequality-src]][codequality-href]
[![LGTM Alerts][alerts-src]][alerts-href]
[![Deploy to Now][deploy-to-now-src]](#deploy-to-now)
We are using [StandardJS][standard-href] style, make sure you have ESLint/Standard plugin on your editor and have autofix enabled.
@ -74,7 +73,7 @@ Badgen Server will auto load all svg files in [libs/icons](libs/icons/). Please
Badgen is stateless (does not rely on DB service). Deploy your own instance to [Now][now-href] with one single command:
```
now amio/badgen-service
now amio/badgen-service -e GH_TOKEN='' -e TRACKING_GA='' -e SENTRY_URI=''
```
## Tracking Policy
@ -97,7 +96,6 @@ built with ⚡️ from [badgen](https://github.com/amio/badgen).
[dependencies-href]: https://david-dm.org/amio/badgen-service
[standard-src]: https://badgen.net/badge/code%20style/standard/pink
[standard-href]: https://standardjs.com
[deploy-to-now-src]: https://badgen.net/badge/▲/$%20now%20amio%2Fbadgen-service/333
[maintainability-src]: https://badgen.net/codeclimate/maintainability/amio/badgen-service
[maintainability-href]: https://codeclimate.com/github/amio/badgen-service
[codequality-src]: https://badgen.net/lgtm/grade/javascript/g/amio/badgen-service

Wyświetl plik

@ -14,6 +14,11 @@
"static",
"components"
],
"env": {
"GH_TOKEN": "@badgen-gh-token",
"SENTRY_URI": "@badgen-sentry-uri",
"TRACKING_GA": "@badgen-tracking-ga"
},
"engines": {
"node": "^10.0.0"
},

Wyświetl plik

@ -12,10 +12,10 @@
"pretest": "npm run lint",
"test": "tap test/*.js --reporter spec -j12",
"start": "node service.js",
"predeploy": "now -T amio inspect badgen.net && now rm badgen-service --safe -y -T amio || true",
"deploy": "now -T amio -e GH_TOKEN='@badgen-gh-token' -e SENTRY_URI='@badgen-sentry-uri' -e TRACKING_GA='@badgen-tracking-ga'",
"postdeploy": "now -T amio alias",
"canary": "now -T amio -e GH_TOKEN='@badgen-gh-token' && now -T amio alias badgen-canary"
"now-prune": "now rm badgen-service --safe -y -T amio || true",
"predeploy": "now -T amio inspect badgen.net && npm run now-prune",
"deploy": "now -T amio && now -T amio alias",
"canary": "now -T amio && now -T amio alias badgen-canary"
},
"standard": {
"parser": "babel-eslint"