Quellcode durchsuchen

Add developing instructions

Johannes Zellner vor 9 Jahren
Ursprung
Commit
b81fef99e6
1 geänderte Dateien mit 10 neuen und 2 gelöschten Zeilen
  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
+```