|
1 |
| -DrupalGap API |
| 1 | +# DrupalGap API |
2 | 2 |
|
3 | 3 | http://api.drupalgap.org
|
4 | 4 |
|
5 |
| -The DrupalGap API is generated using: |
| 5 | +## The DrupalGap API is generated using: |
6 | 6 |
|
7 | 7 | https://github.com/jsdoc3/jsdoc
|
8 | 8 |
|
9 |
| -We use a forked copy of the JSDOC repo: |
| 9 | +## We use a forked copy of the JSDOC repo: |
10 | 10 |
|
11 | 11 | https://github.com/signalpoint/jsdoc
|
12 | 12 |
|
13 |
| -This command can be used to re-generate the API: |
| 13 | +## This command can be used to re-generate the API: |
14 | 14 |
|
15 | 15 | cd ~/Desktop/github-code/jsdoc
|
16 | 16 | ./jsdoc ~/Desktop/github-code/DrupalGap/src/drupalgap.js ~/Desktop/github-code/DrupalGap/src/includes/*.js ~/Desktop/github-code/DrupalGap/src/modules/*/*.js ~/Desktop/github-code/DrupalGap/jDrupal/src/*.js ~/Desktop/github-code/DrupalGap/jDrupal/src/*/*.js
|
17 | 17 |
|
18 | 18 | After re-generating the API, delete all the files from www/api on the server,
|
19 | 19 | then upload the contents of the 'out' directory to the server.
|
| 20 | + |
| 21 | +# drupalgap.min.js |
| 22 | + |
| 23 | +When generating the drupalgap.min.js file, the web service based closure |
| 24 | +compiler has a file size limit that we are exceeding. Therefor we install |
| 25 | +the closure compiler app locally: |
| 26 | + |
| 27 | +https://developers.google.com/closure/compiler/faq#size-restrictions |
| 28 | +https://developers.google.com/closure/compiler/docs/gettingstarted_app |
| 29 | + |
| 30 | +This app requires JDK7, and you can use the following terminal command to switch |
| 31 | +between java versions: |
| 32 | + |
| 33 | +sudo update-alternatives --config java |
| 34 | + |
| 35 | +FYI, we were running JDK6 in Ubuntu prior to this, so when using Eclipse for |
| 36 | +Android, we may have to switch back to 6 from 7. |
| 37 | + |
| 38 | +The following command can be used to make the minifed JS file: |
| 39 | + |
| 40 | +java -jar compiler.jar --js /var/www/drupal-7/mobile-application/bin/drupalgap.js --js_output_file /var/www/drupal-7/mobile-application/bin/drupalgap.min.js |
| 41 | + |
0 commit comments