Procházet zdrojové kódy

Add developing instructions

Johannes Zellner před 9 roky
rodič
revize
b81fef99e6
1 změnil soubory, kde provedl 10 přidání a 2 odebrání
  1. 10 2
      README.md

+ 10 - 2
README.md

@@ -1,3 +1,11 @@
-Build the frontend:
+## Building resources
 
 
-browserify -t vueify -e ./frontend/js/main.js -o ./frontend/js/bundle.js
+browserify -t vueify -t envify -e ./frontend/js/main.js -o ./frontend/js/bundle.js
+
+## Development
+
+To develop the frontend watchify can be used and allows specifying an API_ENDPOINT to let the frontend work against a deployed server:
+
+```
+API_ENDPOINT=https://api.domain.com watchify -t vueify -t envify -e ./frontend/js/main.js -o ./frontend/js/bundle.js
+```