summaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorliabru <liabru@brm.io>2016-01-04 21:00:05 +0000
committerliabru <liabru@brm.io>2016-01-04 21:00:42 +0000
commit98f0dfbb58f0aa6dd057aed88802b4470c38ae80 (patch)
treef57cbea87ddad7fbf6ba62ca6739430dc890fa98 /gulpfile.js
parenta6b2da32138eedd04737bccd338f38ae81a75a7a (diff)
downloadjquery-match-height-98f0dfbb58f0aa6dd057aed88802b4470c38ae80.zip
jquery-match-height-98f0dfbb58f0aa6dd057aed88802b4470c38ae80.tar.gz
jquery-match-height-98f0dfbb58f0aa6dd057aed88802b4470c38ae80.tar.bz2
moved builds to dist
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js17
1 files changed, 14 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 66678e9..6c263b8 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -21,6 +21,7 @@ var staticTransform = require('connect-static-transform');
var pkg = require('./package.json');
var extend = require('util')._extend;
var fs = require('fs');
+var buildDirectory = 'dist';
var server;
gulp.task('release', function(callback) {
@@ -33,7 +34,11 @@ gulp.task('release:push', function(callback) {
});
gulp.task('release:push:github', function(callback) {
- return gulp.src(['CHANGELOG.md', 'jquery.matchHeight-min.js', 'jquery.matchHeight.js'])
+ return gulp.src([
+ 'CHANGELOG.md',
+ buildDirectory + '/jquery.matchHeight-min.js',
+ buildDirectory + '/jquery.matchHeight.js'
+ ])
.pipe(release({
tag: pkg.version,
name: 'jquery.matchHeight.js ' + pkg.version
@@ -51,12 +56,18 @@ gulp.task('release:push:npm', function(callback) {
gulp.task('build', function() {
var build = extend(pkg);
build.version = process.argv[4] || pkg.version;
- return gulp.src(pkg.main)
+
+ gulp.src('jquery.matchHeight.js')
+ .pipe(replace("jquery-match-height master", "jquery-match-height " + build.version))
+ .pipe(replace("version = 'master'", "version = '" + build.version + "'"))
+ .pipe(gulp.dest(buildDirectory));
+
+ return gulp.src('jquery.matchHeight.js')
.pipe(replace("version = 'master'", "version = '" + build.version + "'"))
.pipe(uglify({ output: { max_line_len: 500 } }))
.pipe(header(banner, { build: build }))
.pipe(rename({ suffix: '-min' }))
- .pipe(gulp.dest('.'));
+ .pipe(gulp.dest(buildDirectory));
});
gulp.task('lint', function() {