Skip to content

Commit f8ad65c

Browse files
committed
Add notes about drupalgap.min.js.
1 parent 30ce357 commit f8ad65c

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

Diff for: API.txt

+26-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,41 @@
1-
DrupalGap API
1+
# DrupalGap API
22

33
http://api.drupalgap.org
44

5-
The DrupalGap API is generated using:
5+
## The DrupalGap API is generated using:
66

77
https://github.com/jsdoc3/jsdoc
88

9-
We use a forked copy of the JSDOC repo:
9+
## We use a forked copy of the JSDOC repo:
1010

1111
https://github.com/signalpoint/jsdoc
1212

13-
This command can be used to re-generate the API:
13+
## This command can be used to re-generate the API:
1414

1515
cd ~/Desktop/github-code/jsdoc
1616
./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
1717

1818
After re-generating the API, delete all the files from www/api on the server,
1919
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

Comments
 (0)