Added a few more variables to define module paths.

This commit is contained in:
Braydon Fuller 2015-01-16 18:03:09 -05:00
parent 89e277337f
commit ed9851c214
1 changed files with 8 additions and 7 deletions

View File

@ -58,8 +58,9 @@ function startGulp(name, opts) {
var tests = ['test/**/*.js'];
var alljs = files.concat(tests);
// define the location of bitcore-build
var buildPath = './node_modules/bitcore-build/';
var buildModulesPath = buildPath + 'node_modules/';
var buildBinPath = buildPath + 'node_modules/.bin/';
/**
* testing
@ -71,7 +72,7 @@ function startGulp(name, opts) {
};
var testkarma = shell.task([
buildPath + 'node_modules/karma/bin/karma start ' + buildPath + 'karma.conf.js'
buildModulesPath + 'karma/bin/karma start ' + buildPath + 'karma.conf.js'
]);
gulp.task('test:node', testmocha);
@ -98,9 +99,9 @@ function startGulp(name, opts) {
var browserifyCommand;
if (isSubmodule) {
browserifyCommand = buildPath + 'node_modules/.bin/browserify --require ./index.js:' + fullname + ' --external bitcore -o ' + fullname + '.js';
browserifyCommand = buildBinPath + 'browserify --require ./index.js:' + fullname + ' --external bitcore -o ' + fullname + '.js';
} else {
browserifyCommand = buildPath + 'node_modules/.bin/browserify --require ./index.js:bitcore -o bitcore.js';
browserifyCommand = buildBinPath + 'browserify --require ./index.js:bitcore -o bitcore.js';
}
gulp.task('browser:uncompressed', shell.task([
@ -119,7 +120,7 @@ function startGulp(name, opts) {
});
gulp.task('browser:maketests', shell.task([
'find test/ -type f -name "*.js" | xargs ' + buildPath + 'node_modules/.bin/browserify -t brfs -o tests.js'
'find test/ -type f -name "*.js" | xargs ' + buildBinPath + 'browserify -t brfs -o tests.js'
]));
gulp.task('browser', function(callback) {
@ -137,9 +138,9 @@ function startGulp(name, opts) {
.pipe(jshint.reporter('default'));
});
gulp.task('plato', shell.task([buildPath + 'node_modules/.bin/plato -d report -r -l .jshintrc -t ' + fullname + ' lib']));
gulp.task('plato', shell.task([buildBinPath + 'plato -d report -r -l .jshintrc -t ' + fullname + ' lib']));
gulp.task('coverage', shell.task([buildPath + 'node_modules/.bin/./istanbul cover ' + buildPath + 'node_modules/.bin/_mocha -- --recursive']));
gulp.task('coverage', shell.task([buildBinPath + './istanbul cover ' + buildBinPath + '_mocha -- --recursive']));
gulp.task('coveralls', ['coverage'], function() {
gulp.src('coverage/lcov.info').pipe(coveralls());