chore(striker-ui-api): add scripts to compress and decompress build output

main
Tsu-ba-me 3 years ago
parent d764366fe8
commit fb21cad83c
  1. 4
      striker-ui-api/package.json

@ -4,7 +4,9 @@
"description": "API for striker-ui",
"scripts": {
"build": "pkg --compress GZip --output striker-ui-api --targets node14-linux index.js",
"clean": "rm -f striker-ui-api",
"build:clean": "rm -f striker-ui-api",
"compress": "[[ -e striker-ui-api ]] && XZ_OPT='--verbose -9e' tar --create --verbose --xz --file striker-ui-api.tar.xz striker-ui-api || echo 'Cannot find output of build.' && exit 1",
"decompress": "tar --extract --verbose --file striker-ui-api.tar.xz",
"dev": "node index.js",
"rebuild": "npm run clean && npm run build",
"start": "npm run build && ./striker-ui-api",

Loading…
Cancel
Save