Explorar o código

Add developing instructions

Johannes Zellner %!s(int64=9) %!d(string=hai) anos
pai
achega
b81fef99e6
Modificáronse 1 ficheiros con 10 adicións e 2 borrados
  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
+```