Browse Source

Added deploy script.

gwillz 2 years ago
parent
commit
c023e4d433
2 changed files with 7 additions and 1 deletions
  1. 5 0
      deploy.sh
  2. 2 1
      package.json

+ 5 - 0
deploy.sh

@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+npm run clean
+NODE_ENV=production npm run webpack
+npm run firebase
+npm run pages

+ 2 - 1
package.json

@@ -9,7 +9,8 @@
     "postcss": "postcss --verbose -o public/index.css css/index.css",
     "clean": "rm public/*.js public/*.css public/*.map || echo clean!",
     "firebase": "firebase deploy",
-    "pages": "gh-pages -d public"
+    "pages": "gh-pages -d public",
+    "deploy": "bash deploy.sh"
   },
   "author": "Gwilyn Saunders",
   "license": "MIT",