Skip to content

Commit

Permalink
v8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jondubois committed Sep 23, 2017
1 parent 9ca1671 commit cd9d3cf
Show file tree
Hide file tree
Showing 6 changed files with 378 additions and 319 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "socketcluster-client",
"main": "socketcluster.js",
"version": "7.0.2",
"version": "8.0.0",
"homepage": "https://github.com/SocketCluster/socketcluster-client",
"description": "SocketCluster JavaScript client",
"authors": [
Expand Down
9 changes: 7 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var insert = require('gulp-insert');
var rename = require('gulp-rename');
var source = require('vinyl-source-stream');
var uglify = require('gulp-uglify');
var convertNewline = require('gulp-convert-newline');

var BUILD = 'browser';
var DIST = './';
Expand All @@ -26,6 +27,10 @@ gulp.task('browserify', function() {
.ignore('_process')
.bundle();
return stream.pipe(source('socketcluster.js'))
.pipe(convertNewline({
newline: 'lf',
encoding: 'utf8'
}))
.pipe(derequire())
.pipe(insert.prepend(FULL_HEADER))
.pipe(gulp.dest(DIST));
Expand All @@ -37,12 +42,12 @@ gulp.task('minify', function() {
comments: false
}))
.pipe(babel({
plugins: ["minify-dead-code-elimination"]
plugins: ['minify-dead-code-elimination']
}))
.pipe(uglify())
.pipe(insert.prepend(FULL_HEADER))
.pipe(rename({
extname: '.min.js'
}))
.pipe(gulp.dest(DIST))
});
});
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module.exports.destroy = function (options) {

module.exports.connections = SCSocketCreator.connections;

module.exports.version = '7.0.2';
module.exports.version = '8.0.0';
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "socketcluster-client",
"description": "SocketCluster JavaScript client",
"version": "7.0.2",
"version": "8.0.0",
"homepage": "http://socketcluster.io",
"contributors": [
{
Expand All @@ -14,7 +14,7 @@
"url": "git://github.com/SocketCluster/socketcluster-client.git"
},
"scripts": {
"build": "browserify -s socketCluster index.js > socketcluster.js; uglifyjs socketcluster.js -o socketcluster.min.js",
"build": "gulp browserify; gulp minify",
"test": "mocha --reporter spec --timeout 3000 --slow 3000"
},
"dependencies": {
Expand All @@ -40,6 +40,7 @@
"gulp": "^3.9.0",
"gulp-babel": "^6.1.2",
"gulp-cli": "^1.3.0",
"gulp-convert-newline": "^0.0.3",
"gulp-derequire": "^2.1.0",
"gulp-insert": "^0.5.0",
"gulp-rename": "^1.2.2",
Expand Down
Loading

0 comments on commit cd9d3cf

Please sign in to comment.