Преглед изворни кода

Add developing instructions

Johannes Zellner пре 9 година
родитељ
комит
b81fef99e6
1 измењених фајлова са 10 додато и 2 уклоњено
  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
+```