chore: publish bundled badgen.min.js only

pull/22/head
Amio 2018-09-07 23:05:00 +08:00
rodzic ed4b6c9d08
commit 6ea62278ee
6 zmienionych plików z 10 dodań i 6 usunięć

2
.gitignore vendored
Wyświetl plik

@ -1,3 +1,3 @@
node_modules
.nyc_output
dist
badgen.min.js

Wyświetl plik

@ -1,4 +1,5 @@
.*
lib
test
bench
preview

Wyświetl plik

@ -2,3 +2,5 @@ language: node_js
node_js:
- "8"
- "10"
before_script:
- "npm run build"

4
package-lock.json wygenerowano
Wyświetl plik

@ -962,7 +962,7 @@
"dependencies": {
"chalk": {
"version": "1.1.3",
"resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"dev": true,
"requires": {
@ -2246,7 +2246,7 @@
},
"external-editor": {
"version": "2.2.0",
"resolved": "http://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz",
"resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz",
"integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==",
"dev": true,
"requires": {

Wyświetl plik

@ -5,7 +5,7 @@
"repository": "amio/badgen",
"author": "Amio <amio.cn@gmail.com>",
"license": "ISC",
"main": "lib/index.js",
"main": "badgen.min.js",
"scripts": {
"lint": "standard",
"bench": "node bench/index.js",
@ -13,7 +13,8 @@
"snaptests": "TAP_SNAPSHOT=1 npm test",
"pretest": "npm run lint",
"test": "tap test/*.spec.js --reporter spec --coverage",
"prepublishOnly": "lyo"
"build": "lyo -i lib/index.js -o .",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"benchmark": "^2.1.4",

Wyświetl plik

@ -1,5 +1,5 @@
const tap = require('tap')
const badgen = require('..')
const badgen = require('../lib/index.js')
const icons = require('./icon-data-uri.js')
tap.test('generate badge with { subject, status }', t => {