Explorar o código

Add build script

Garrett Johnson %!s(int64=4) %!d(string=hai) anos
pai
achega
610372bc8b
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  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"
   },