Commit af486cec140dd1a697f179dd1b7ad7b1cf81003b

Authored by Rooftrellen
1 parent 768035c3

add build:browser information in readme

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
README.md
... ... @@ -15,9 +15,12 @@ $ npm install
15 15 For building JavaPoly run command:
16 16 ```sh
17 17 $ grunt build
  18 +or
  19 +$ grunt build:browser
18 20 ```
19 21  
20 22 This creates `build/javapoly.js` file.
  23 +The javapoly.js will auto-load the js library needed(browserjs.js, doppio lib and so on) from external site(eg, www.javapoly.com)
21 24  
22 25 ### Development JavaPoly
23 26  
... ... @@ -41,6 +44,10 @@ But you can rebuild JavaPoly for testing without watching by command:
41 44 $ grunt build:test
42 45 ```
43 46  
  47 +**note, the final javapoly.js file which build:test task generate is a little different from the file which build:browser task generate.
  48 +the javapoly.js which build:test task generate will load the doppio and browserjs library in local folders.
  49 +and the javapoly.js which build:browser(or build) task generate will load the doppio and browserjs library from external web site.**
  50 +
44 51 To test JavaPoly you should run HTTP server for folder `test` and open `index.html` in browser.
45 52  
46 53 Simplest way to do this is using light HTTP server `http-server`. To install this run command:
... ...