[Pkg-javascript-commits] [sockjs-client] 68/350: Fix gulpfile
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:03:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.
commit 8e75cddb8f71a3471a1aacf16335266db5bc9a58
Author: Bryce Kahle <bkahle at gmail.com>
Date: Fri May 30 16:32:19 2014 -0400
Fix gulpfile
---
gulpfile.js | 34 ++++++++++++++++------------------
1 file changed, 16 insertions(+), 18 deletions(-)
diff --git a/gulpfile.js b/gulpfile.js
index 7bf05f4..0487098 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -8,42 +8,40 @@ var gulp = require('gulp')
, path = require('path')
, jsRoot = path.join(__dirname, 'lib')
, pkg = require('./package.json')
- , fs = require('fs')
, libName = 'sockjs-' + pkg.version
;
-function debugBuild() {
- return browserify('./lib/sockjs.js')
+gulp.task('test', function() {
+ browserify('./lib/sockjs.js')
.bundle({
standalone: 'SockJS'
, debug: true
})
.pipe(mold.transformSourcesRelativeTo(jsRoot))
- .pipe(exorcist(path.join(__dirname, 'build/sockjs.js.map')))
+ .pipe(exorcist(path.join(__dirname, 'tests/html/lib/sockjs.js.map')))
.pipe(source('sockjs.js'))
- .pipe(gulp.dest('./build/'))
- ;
-}
-
-gulp.task('default', function() {
-
-});
-
-gulp.task('test', function() {
- debugBuild()
.pipe(gulp.dest('./tests/html/lib/'))
;
- browserify('./tests/html/lib/alltests.js')
+ return browserify('./tests/html/lib/alltests.js')
.bundle()
.pipe(source('alltestsbundle.js'))
.pipe(gulp.dest('./tests/html/lib/'))
;
-
- fs.createReadStream(path.join(__dirname, 'build/sockjs.js.map')).pipe(fs.createWriteStream('./tests/html/lib/sockjs.js.map'));
});
-gulp.task('browserify', debugBuild);
+gulp.task('browserify', function () {
+ return browserify('./lib/sockjs.js')
+ .bundle({
+ standalone: 'SockJS'
+ , debug: true
+ })
+ .pipe(mold.transformSourcesRelativeTo(jsRoot))
+ .pipe(exorcist(path.join(__dirname, 'build/sockjs.js.map')))
+ .pipe(source('sockjs.js'))
+ .pipe(gulp.dest('./build/'))
+ ;
+});
gulp.task('browserify:min', function () {
return browserify('./lib/sockjs.js')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list