diff --git a/app/src/main/assets/dist/book-bundle.js b/app/src/main/assets/dist/book-bundle.js index 50a2b95..67c418e 100755 --- a/app/src/main/assets/dist/book-bundle.js +++ b/app/src/main/assets/dist/book-bundle.js @@ -44,12 +44,12 @@ angular.element($("#bookController")).scope(). -},{"angular":"/home/bspeice/Android Studio Projects/MinimalBible/node_modules/angular/index-browserify.js","jquery":"/home/bspeice/Android Studio Projects/MinimalBible/node_modules/jquery/dist/jquery.js"}],"/home/bspeice/Android Studio Projects/MinimalBible/node_modules/angular/index-browserify.js":[function(require,module,exports){ +},{"angular":"/home/bspeice/Android Studio Projects/MinimalBible/app/src/main/assets/node_modules/angular/index-browserify.js","jquery":"/home/bspeice/Android Studio Projects/MinimalBible/app/src/main/assets/node_modules/jquery/dist/jquery.js"}],"/home/bspeice/Android Studio Projects/MinimalBible/app/src/main/assets/node_modules/angular/index-browserify.js":[function(require,module,exports){ require('./lib/angular.js'); module.exports = angular; -},{"./lib/angular.js":"/home/bspeice/Android Studio Projects/MinimalBible/node_modules/angular/lib/angular.js"}],"/home/bspeice/Android Studio Projects/MinimalBible/node_modules/angular/lib/angular.js":[function(require,module,exports){ +},{"./lib/angular.js":"/home/bspeice/Android Studio Projects/MinimalBible/app/src/main/assets/node_modules/angular/lib/angular.js"}],"/home/bspeice/Android Studio Projects/MinimalBible/app/src/main/assets/node_modules/angular/lib/angular.js":[function(require,module,exports){ /** * @license AngularJS v1.2.23 * (c) 2010-2014 Google, Inc. http://angularjs.org @@ -22004,7 +22004,7 @@ var styleDirective = valueFn({ })(window, document); !window.angular.$$csp() && window.angular.element(document).find('head').prepend(''); -},{}],"/home/bspeice/Android Studio Projects/MinimalBible/node_modules/jquery/dist/jquery.js":[function(require,module,exports){ +},{}],"/home/bspeice/Android Studio Projects/MinimalBible/app/src/main/assets/node_modules/jquery/dist/jquery.js":[function(require,module,exports){ /*! * jQuery JavaScript Library v2.1.1 * http://jquery.com/ diff --git a/app/src/main/assets/gulpfile.js b/app/src/main/assets/gulpfile.js index e06ae4a..bebb6f9 100644 --- a/app/src/main/assets/gulpfile.js +++ b/app/src/main/assets/gulpfile.js @@ -3,7 +3,6 @@ var gutil = require('gulp-util'); var source = require('vinyl-source-stream'); var watchify = require('watchify'); var browserify = require('browserify'); -var uglify = require('gulp-uglify'); var buffer = require('gulp-buffer'); gulp.task('watch', function() { diff --git a/app/src/main/assets/package.json b/app/src/main/assets/package.json new file mode 100644 index 0000000..2ed9012 --- /dev/null +++ b/app/src/main/assets/package.json @@ -0,0 +1,32 @@ +{ + "name": "MinimalBible", + "description": "A Bible reading app for Android focused on user experience and speed", + "version": "0.0.1", + "homepage": "https://minimalbible.github.io/", + "repository": { + "type:": "git", + "url": "https://github.com/MinimalBible/MinimalBible.git" + }, + "bugs": { + "url": "https://github.com/MinimalBible/MinimalBible/issues" + }, + "author": { + "name": "Bradlee Speice", + "email": "bspeice.nc@gmail.com", + "url": "https://minimalbible.github.io/" + }, + "main": "src/", + "dependencies": { + "angular": ">=1.2.23", + "jquery": ">=2.1.1" + }, + "devDependencies": { + "browserify": ">=5.11.0", + "coffeeify": ">=0.7.0", + "gulp": ">=3.8.7", + "gulp-buffer": ">=0.0.2", + "gulp-util": ">=3.0.1", + "vinyl-source-stream": ">=0.1.1", + "watchify": ">=1.0.2" + } +} diff --git a/app/src/main/assets/setup_js_build.sh b/app/src/main/assets/setup_js_build.sh new file mode 100755 index 0000000..d5228ac --- /dev/null +++ b/app/src/main/assets/setup_js_build.sh @@ -0,0 +1,43 @@ +#!/bin/bash - +#=============================================================================== +# +# FILE: setup_js_build.sh +# +# USAGE: ./setup_js_build.sh +# +# DESCRIPTION: Set up a Linux host for building MinimalBible. It is possible +# to do in Windows, but Linux is scriptable. +# +# OPTIONS: --- +# REQUIREMENTS: --- +# BUGS: --- +# NOTES: --- +# AUTHOR: YOUR NAME (), +# ORGANIZATION: +# CREATED: 09/01/2014 15:19 +# REVISION: --- +#=============================================================================== + +set -o nounset # Treat unset variables as an error + +# Check for apt. This could be done with RPM, but I don't have access to a +# computer for it. +if [ `which apt-get` == "" ]; then + echo "Building on Redhat/RPM is not currently supported." + exit 1 +fi + +# We need root before doing anything else +if [ $UID != 0 ]; then + sudo bash "$0" + exit $? +fi + +# We don't really need Node, npm is enough. +apt-get install npm + +# Gulp needs a global install +npm install -g gulp + +# And run the rest of everything as the user who invoked sudo +sudo -u $SUDO_USER npm install