package.json 1.02 KB
Newer Older
rht's avatar
rht committed
1
{
2
  "name": "dir-index-html",
Lars Gierth's avatar
Lars Gierth committed
3
  "author": "lgierth",
4 5 6
  "description": "Directory listing HTML for go-ipfs gateways",
  "version": "1.2.0",
  "homepage": "https://github.com/ipfs/dir-index-html#readme",
Lars Gierth's avatar
Lars Gierth committed
7 8 9 10 11 12 13 14
  "bugs": {
    "url": "https://github.com/ipfs/dir-index-html"
  },
  "gx": {
    "dvcsimport": "github.com/ipfs/dir-index-html",
    "goversion": "1.5.2"
  },
  "gxDependencies": [],
Steven Allen's avatar
Steven Allen committed
15
  "gxVersion": "0.14.0",
Lars Gierth's avatar
Lars Gierth committed
16 17
  "language": "go",
  "license": "MIT",
Steven Allen's avatar
Steven Allen committed
18
  "releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
19
  "scripts": {
20 21 22
    "build": "npm run build:clean && npm run build:stripstylelinks && npm run build:minify && npm run build:insert",
    "build:clean": "rm -rf ./dist/*",
    "build:stripstylelinks": "sed '/<link rel=\"stylesheet\"/d' src/dir-index.html > dist/base-html.html",
Jessica Schilling's avatar
Jessica Schilling committed
23
    "build:minify": "(echo \"<style>\" && cat src/icons.css src/style.css | tr -d \"\t\n\r\" && echo \"</style>\") > dist/minified-style.html",
24
    "build:insert": "sed '/<head>/ r dist/minified-style.html' dist/base-html.html > dist/dir-index.html"
25
  }
rht's avatar
rht committed
26
}