Browse Source

Add build script

Garrett Johnson 4 years ago
parent
commit
610372bc8b
2 changed files with 3 additions and 0 deletions
  1. 2 0
      .gitignore
  2. 1 0
      package.json

+ 2 - 0
.gitignore

@@ -61,3 +61,5 @@ typings/
 .next
 
 example/local-data
+example/bundle
+dist/

+ 1 - 0
package.json

@@ -22,6 +22,7 @@
   ],
   "scripts": {
     "start": "concurrently \"parcel watch example/*.html --out-dir ./example/bundle/ --public-url . --no-cache\" \"static-server\"",
+    "build": "parcel build example/*.html --out-dir ./dist/ --public-url . --no-cache",
     "lint": "eslint \"src/**/*.js\" \"test/**/*.js\" && tsc -p tsconfig.json --noEmit",
     "test": "jest"
   },