[Pkg-javascript-commits] [sockjs-client] 188/350: Re-add testbundle for iframe tests

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:04:20 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 a2e2aa523628b576b9051ef6763ff60c1ae50ce9
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Mon Oct 20 00:39:52 2014 -0400

    Re-add testbundle for iframe tests
---
 Makefile     | 7 +++++--
 gulpfile.js  | 7 +++++++
 package.json | 3 ++-
 3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index db2bf0f..78b1b20 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
 
-test:
+tests/html/lib/sockjs.js:
+	@./node_modules/.bin/gulp testbundle
+
+test: tests/html/lib/sockjs.js
 	@if [ "x$(BROWSER_NAME)" = "x" ]; then make test-node; else make test-zuul; fi
 
 test-node:
@@ -20,4 +23,4 @@ test-zuul:
 		tests/browser.js; \
 	fi
 
-.PHONY: test
+.PHONY: test test-node test-zuul
diff --git a/gulpfile.js b/gulpfile.js
index dd9d653..3e2413b 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -9,6 +9,7 @@ var gulp = require('gulp')
   , envify = require('envify/custom')
   , mocha = require('gulp-mocha')
   , eslint = require('gulp-eslint')
+  , rename = require('gulp-rename')
   , pkg = require('./package.json')
   ;
 
@@ -30,6 +31,12 @@ gulp.task('watch', function () {
   gulp.watch('tests/*.js', ['test']);
 });
 
+gulp.task('testbundle', ['browserify:min'], function() {
+  return gulp.src('./build/' + libName + '.min.js')
+    .pipe(rename('sockjs.js'))
+    .pipe(gulp.dest('./tests/html/lib/'));
+});
+
 gulp.task('browserify', function () {
   return browserify({
       entries: './lib/entry.js'
diff --git a/package.json b/package.json
index e2166cd..1910e25 100644
--- a/package.json
+++ b/package.json
@@ -35,6 +35,7 @@
     "gulp": "^3.8.8",
     "gulp-eslint": "~0.1.8",
     "gulp-mocha": "~1.1.1",
+    "gulp-rename": "~1.2.0",
     "gulp-sourcemaps": "~1.2.4",
     "gulp-uglify": "~1.0.1",
     "mocha": "^1.21.5",
@@ -62,4 +63,4 @@
     "test_local": "./node_modules/.bin/zuul --local 9090 -- tests/browser.js",
     "zuul": "./node_modules/.bin/zuul -- tests/browser.js"
   }
-}
+}
\ No newline at end of file

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