[Pkg-javascript-commits] [sockjs-client] 66/350: Add source maps for tests

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:03:42 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 2bdc96934a952b43abac050eaea6722ecd1a3d00
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Fri May 30 15:59:26 2014 -0400

    Add source maps for tests
---
 .gitignore  | 1 +
 gulpfile.js | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/.gitignore b/.gitignore
index 1f62a93..dfd18b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ sockjs.min.js
 testling.js
 build/
 tests/html/lib/alltestsbundle.js
+tests/html/lib/sockjs.js.map
\ No newline at end of file
diff --git a/gulpfile.js b/gulpfile.js
index ae3b2eb..7bf05f4 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -8,6 +8,7 @@ var gulp = require('gulp')
   , path = require('path')
   , jsRoot = path.join(__dirname, 'lib')
   , pkg = require('./package.json')
+  , fs = require('fs')
   , libName = 'sockjs-' + pkg.version
   ;
 
@@ -38,6 +39,8 @@ gulp.task('test', function() {
     .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);

-- 
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