Add now alias config

pull/3/head
Amio 2018-05-29 18:15:39 +08:00
rodzic 67111d100a
commit 31b56b2f4e
3 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -1,13 +1,13 @@
module.exports = function ({subject, status, color = '#4C1'}) {
const sbl = subject.length
const stl = status.length
const charWidth = 7.5
const charWidth = 7.4
const sbTextWidth = sbl * charWidth
const sbRectWidth = sbTextWidth + 12
const sbTextCenter = sbRectWidth / 2
const stTextWidth = stl * charWidth - 4
const stTextWidth = stl * charWidth
const stRectWidth = stTextWidth + 14
const stTextCenter = sbRectWidth + stRectWidth / 2

3
now.json 100644
Wyświetl plik

@ -0,0 +1,3 @@
{
"alias": "badgen"
}

Wyświetl plik

@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"start": "node service.js",
"deploy": "now -T badgen --public"
"deploy": "now -T badgen --public && now -T badgen alias"
},
"author": "Amio <amio.cn@gmail.com>",
"license": "ISC",