badgen/package.json

35 wiersze
1.1 KiB
JSON

{
"name": "badgen",
"version": "3.1.0",
"description": "Fast svg badge generator.",
"repository": "amio/badgen",
"author": "Amio <amio.cn@gmail.com>",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"unpkg": "dist/index.browser.js",
"scripts": {
"bench": "node bench/index.js",
"preview": "node preview/serve.js",
"snaptests": "TAP_SNAPSHOT=1 npm test",
"pretest": "npm run build",
"test": "tap test/*.spec.ts",
"prebuild": "rm -rf dist",
"esbuild": "esbuild src/index.ts --bundle --minify --sourcemap",
"build:types": "tsc --emitDeclarationOnly",
"build:browser": "npm run esbuild -- --outfile=dist/index.browser.js",
"build:node": "npm run esbuild -- --platform=node --outfile=dist/index.js",
"build": "npm run build:browser && npm run build:node",
"postbuild": "npm run build:types",
"prepack": "npm run build"
},
"devDependencies": {
"@types/node": "^12.12.38",
"benchmark": "^2.1.4",
"esbuild": "^0.2.9",
"serve-marked": "^2.0.2",
"tap": "^14.10.7",
"typescript": "^3.8.3"
}
}