Browse Source

Added firebase deployment.

gwillz 2 years ago
parent
commit
9394d1970a
4 changed files with 20 additions and 2 deletions
  1. 5 0
      .firebaserc
  2. 2 0
      .gitignore
  3. 10 0
      firebase.json
  4. 3 2
      package.json

+ 5 - 0
.firebaserc

@@ -0,0 +1,5 @@
+{
+  "projects": {
+    "master": "mdslides-f1943"
+  }
+}

+ 2 - 0
.gitignore

@@ -3,3 +3,5 @@ cache
 public/*
 !public/index.html
 css/*.ts
+*.log
+.firebase

+ 10 - 0
firebase.json

@@ -0,0 +1,10 @@
+{
+  "hosting": {
+    "public": "public",
+    "ignore": [
+      "firebase.json",
+      "**/.*",
+      "**/node_modules/**"
+    ]
+  }
+}

+ 3 - 2
package.json

@@ -2,12 +2,13 @@
   "name": "slides",
   "version": "1.0.0",
   "description": "",
-  "main": "index.js",
+  "main": "app.js",
   "scripts": {
     "start": "node app.js",
     "webpack": "webpack --progress",
     "postcss": "postcss --verbose -o public/index.css css/index.css",
-    "clean": "rm public/*.{js,map,css}",
+    "clean": "rm public/*.js public/*.css public/*.map || echo clean!",
+    "deploy": "firebase deploy",
     "test": "echo \"Error: no test specified\" && exit 1"
   },
   "author": "",