Permalink
Browse files

Removed /jsapi/ from built files/layout

  • Loading branch information...
1 parent 10a74f0 commit 8d4cc33f129392a4d0f469370f487f29bf068ff7 @ianb ianb committed May 10, 2012
Showing with 14 additions and 14 deletions.
  1. +1 −1 README.md
  2. +11 −11 bin/build_static
  3. +1 −1 jsapi/apps.persona.org-index.html
  4. +1 −1 jsapi/include.js
View
2 README.md
@@ -13,7 +13,7 @@ The libraries here are published at https://apps.persona.org and they should
be used only at that domain (except for testing and development of course).
You should include:
- <script src="https://apps.persona.org/jsapi/include.js"></script>
+ <script src="https://apps.persona.org/include.js"></script>
in your page. If the browser already natively supports `navigator.mozApps`
this include will do nothing, but if not it will patch in this support.
View
22 bin/build_static
@@ -15,8 +15,8 @@ regex_escape () {
HERE="$(dirname $(abspath $BASH_SOURCE))"
SITE="$(dirname $HERE)/"
-HOST="https://myapps.mozillalabs.com"
-ORIG_HOST="$HOST"
+HOST="https://apps.persona.org"
+ORIG_HOST="https://myapps.mozillalabs.com"
APPDIR=""
help () {
@@ -66,7 +66,7 @@ if [ ! -e "$DEST" ] ; then
mkdir -p "$DEST"
fi
-cp -R -L ${SITE}/jsapi $DEST
+cp -R -L ${SITE}/jsapi/* $DEST
if [ ! -z "$APPDIR" ] ; then
mkdir -p ${DEST}/apps
@@ -88,14 +88,14 @@ if [ ! -e "$COMP_DIR" ] ; then
(cd $COMP_DIR ; unzip -j yuicompressor-2.4.2.zip yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar)
fi
-echo "Creating minified jsapi/include.html"
-cp ${DEST}/jsapi/include.html ${DEST}/jsapi/include.complete.html
-${HERE}/compress_html.py ${DEST}/jsapi/include.html -o ${DEST}/jsapi/include.html --compress --compressor-dir "$COMP_DIR" --comment "The original (unminified) source is at ${HOST}/jsapi/include.complete.html"
+echo "Creating minified include.html"
+cp ${DEST}/include.html ${DEST}/include.complete.html
+${HERE}/compress_html.py ${DEST}/include.html -o ${DEST}/include.html --compress --compressor-dir "$COMP_DIR" --comment "The original (unminified) source is at ${HOST}/include.complete.html"
-echo "Creating minified jsapi/include.js"
-cp ${DEST}/jsapi/include.js ${DEST}/jsapi/include.complete.js
-echo "/* For unminified source see ${HOST}/jsapi/include.complete.js */" > ${DEST}/jsapi/include.js
-java -jar ${COMP_DIR}/yuicompressor-2.4.2.jar ${DEST}/jsapi/include.complete.js >> ${DEST}/jsapi/include.js
+echo "Creating minified include.js"
+cp ${DEST}/include.js ${DEST}/include.complete.js
+echo "/* For unminified source see ${HOST}/include.complete.js */" > ${DEST}/include.js
+java -jar ${COMP_DIR}/yuicompressor-2.4.2.jar ${DEST}/include.complete.js >> ${DEST}/include.js
echo "Moving homepage into place"
-mv ${DEST}/jsapi/apps.persona.org-index.html ${DEST}/index.html
+mv ${DEST}/apps.persona.org-index.html ${DEST}/index.html
View
2 jsapi/apps.persona.org-index.html
@@ -30,7 +30,7 @@
To use this library, include this in your page:
<pre>
- &lt;script src="https://myapps.mozillalabs.com/jsapi/include.js"&gt;&lt;/script&gt;
+ &lt;script src="https://myapps.mozillalabs.com/include.js"&gt;&lt;/script&gt;
</pre>
this will not override any browser-native implementation of
View
2 jsapi/include.js
@@ -625,7 +625,7 @@ if (!navigator.mozApps.install || navigator.mozApps.html5Implementation) {
var win = window;
var AppRepositoryOrigin = "https://myapps.mozillalabs.com";
- var AppRepositoryIncludePath = "/jsapi/include.html";
+ var AppRepositoryIncludePath = "/include.html";
// Cached references
var iframe = null;

0 comments on commit 8d4cc33

Please sign in to comment.