package.json 1.19 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
    "build": "npm run build:clean && npm run build:remove-style-links && npm run build:minify-wrap-css && npm run build:combine-html-css && npm run build:remove-unused",
21 22 23 24 25
    "build:clean": "rm dir-index.html",
    "build:remove-style-links": "sed '/<link rel=\"stylesheet\"/d' ./src/dir-index.html > ./base-html.html",
    "build:minify-wrap-css": "(echo \"<style>\" && cat ./src/icons.css ./src/style.css | tr -d \"\t\n\r\" && echo -e \"\\n</style>\") > ./minified-wrapped-style.html",
    "build:combine-html-css": "sed '/<head>/ r ./minified-wrapped-style.html' ./base-html.html > ./dir-index.html",
    "build:remove-unused": "rm ./base-html.html && rm ./minified-wrapped-style.html"
26
  }
rht's avatar
rht committed
27
}