[Pkg-javascript-commits] [sockjs-client] 60/350: Add version to library name

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 0589326f0c4487f0663ba8c45e60734be4987e2a
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Wed May 28 11:15:56 2014 -0400

    Add version to library name
---
 gulpfile.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gulpfile.js b/gulpfile.js
index c7aaa53..ae3b2eb 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -7,6 +7,8 @@ var gulp = require('gulp')
   , source = require('vinyl-source-stream')
   , path = require('path')
   , jsRoot = path.join(__dirname, 'lib')
+  , pkg = require('./package.json')
+  , libName = 'sockjs-' + pkg.version
   ;
 
 function debugBuild() {
@@ -43,14 +45,14 @@ gulp.task('browserify', debugBuild);
 gulp.task('browserify:min', function () {
   return browserify('./lib/sockjs.js')
     .plugin('minifyify', {
-      map: 'sockjs.min.js.map'
+      map: libName + '.min.js.map'
     , compressPath: jsRoot
-    , output: './build/sockjs.min.js.map'
+    , output: './build/'+ libName + '.min.js.map'
     })
     .bundle({
       standalone: 'SockJS'
     })
-    .pipe(source('sockjs.min.js'))
+    .pipe(source(libName + '.min.js'))
     .pipe(gulp.dest('./build/'))
     ;
 });
\ 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