]> BookStack Code Mirror - website/blobdiff - package.json
Started playing with webidx based search
[website] / package.json
index 9a63c2d44a700318e672be5e9c280eb52d6cca73..7238bd29b4726e26f1c90f7ceeca9df764b59c85 100644 (file)
@@ -9,11 +9,12 @@
     "build:css:watch": "sass ./themes/bookstack/sass:./themes/bookstack/static/css --watch",
     "build:hugo:prod": "hugo",
     "build:hugo:watch": "hugo serve -DF",
-    "build": "npm-run-all --sequential build:css:prod build:hugo:prod",
+    "build:search:prod": "./search/webidx.pl public ./static/search.db",
+    "build": "npm-run-all --sequential build:css:prod build:hugo:prod build:search:prod",
     "serve": "npm-run-all build:hugo:watch",
     "dev": "npm-run-all --parallel build:hugo:watch build:css:watch",
     "deploy:server": "rsync -avx --delete --exclude '.git/' --exclude 'node_modules/' --exclude 'search/data/' ./ bs-site:/var/www/bookstackapp.com/",
-    "deploy": "npm-run-all --sequential build:css:prod build:hugo:prod deploy:server",
+    "deploy": "npm-run-all --sequential build:css:prod build:hugo:prod build:search:prod deploy:server",
     "test": "echo \"Error: no test specified\" && exit 1"
   },
   "author": "Dan Brown",