mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-22 07:58:20 -05:00
Script to set up JS building
This commit is contained in:
parent
ae43667f2f
commit
c9098c570c
6
app/src/main/assets/dist/book-bundle.js
vendored
6
app/src/main/assets/dist/book-bundle.js
vendored
@ -44,12 +44,12 @@ angular.element($("#bookController")).scope().<function>
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
},{"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');
|
require('./lib/angular.js');
|
||||||
|
|
||||||
module.exports = angular;
|
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
|
* @license AngularJS v1.2.23
|
||||||
* (c) 2010-2014 Google, Inc. http://angularjs.org
|
* (c) 2010-2014 Google, Inc. http://angularjs.org
|
||||||
@ -22004,7 +22004,7 @@ var styleDirective = valueFn({
|
|||||||
})(window, document);
|
})(window, document);
|
||||||
|
|
||||||
!window.angular.$$csp() && window.angular.element(document).find('head').prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}</style>');
|
!window.angular.$$csp() && window.angular.element(document).find('head').prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}</style>');
|
||||||
},{}],"/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
|
* jQuery JavaScript Library v2.1.1
|
||||||
* http://jquery.com/
|
* http://jquery.com/
|
||||||
|
@ -3,7 +3,6 @@ var gutil = require('gulp-util');
|
|||||||
var source = require('vinyl-source-stream');
|
var source = require('vinyl-source-stream');
|
||||||
var watchify = require('watchify');
|
var watchify = require('watchify');
|
||||||
var browserify = require('browserify');
|
var browserify = require('browserify');
|
||||||
var uglify = require('gulp-uglify');
|
|
||||||
var buffer = require('gulp-buffer');
|
var buffer = require('gulp-buffer');
|
||||||
|
|
||||||
gulp.task('watch', function() {
|
gulp.task('watch', function() {
|
||||||
|
32
app/src/main/assets/package.json
Normal file
32
app/src/main/assets/package.json
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
}
|
43
app/src/main/assets/setup_js_build.sh
Executable file
43
app/src/main/assets/setup_js_build.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user