package.json 1.24 KB
Newer Older
rht's avatar
rht committed
1
{
2
  "name": "dir-index-html",
Lars Gierth's avatar
Lars Gierth committed
3
  "author": "lgierth",
tavit ohanian's avatar
tavit ohanian committed
4 5 6
  "description": "Directory listing HTML for go-DMS3 gateways",
  "version": "0.0.1",
  "homepage": "https://gitlab.dms3.io/dms3/dir-index-html#readme",
Lars Gierth's avatar
Lars Gierth committed
7
  "bugs": {
tavit ohanian's avatar
tavit ohanian committed
8
    "url": "https://gitlab.dms3.io/dms3/dir-index-html"
Lars Gierth's avatar
Lars Gierth committed
9 10
  },
  "gx": {
tavit ohanian's avatar
tavit ohanian committed
11 12
    "dvcsimport": "gitlab.dms3.io/dms3/dir-index-html",
    "goversion": "1.15"
Lars Gierth's avatar
Lars Gierth committed
13 14
  },
  "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": {
Marcin Rataj's avatar
Marcin Rataj committed
20
    "start": "cd test && go run .",
21
    "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",
22 23
    "build:clean": "rm dir-index.html",
    "build:remove-style-links": "sed '/<link rel=\"stylesheet\"/d' ./src/dir-index.html > ./base-html.html",
24
    "build:minify-wrap-css": "(echo \"<style>\" && cat ./src/icons.css ./src/style.css | tr -d \"\t\n\r\" && echo && echo \"</style>\") > ./minified-wrapped-style.html",
25 26
    "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"
27
  }
rht's avatar
rht committed
28
}