Browse Source

Remove useless folder

patch-2
Esteban Ordano 10 years ago
parent
commit
4b14aba859
  1. 2
      browser/.gitignore
  2. 10
      gulpfile.js

2
browser/.gitignore

@ -1,2 +0,0 @@
*
!.gitignore

10
gulpfile.js

@ -80,11 +80,15 @@ gulp.task('test', function(callback) {
* File generation
*/
gulp.task('browser:uncompressed', ['errors'], shell.task([
gulp.task('browser:makefolder', shell.task([
'if [ ! -d "browser" ]; then mkdir browser; fi'
]));
gulp.task('browser:uncompressed', ['browser:makefolder', 'errors'], shell.task([
'./node_modules/.bin/browserify index.js --insert-global-vars=true --standalone=bitcore -o browser/bitcore.js'
]));
gulp.task('browser:compressed', ['errors'], function() {
gulp.task('browser:compressed', ['browser:makefolder', 'errors'], function() {
return gulp.src('dist/bitcore.js')
.pipe(closureCompiler({
fileName: 'bitcore.min.js',
@ -97,7 +101,7 @@ gulp.task('browser:compressed', ['errors'], function() {
.pipe(gulp.dest('dist'));
});
gulp.task('browser:maketests', shell.task([
gulp.task('browser:maketests', ['browser:makefolder'], shell.task([
'find test/ -type f -name "*.js" | xargs ./node_modules/.bin/browserify -t brfs -o browser/tests.js'
]));

Loading…
Cancel
Save