forked from monkeecreate/jquery.simpleWeather
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added gulp for a build process and speed up pushing out a release. Au…
…tomate ALL THE THINGS. Also some code cleanup and bug fixes. Fix for 3200 (not available) condition code and related image [monkeecreate#77]. Fixed my assumption of query being present [monkeecreate#72].
- Loading branch information
Showing
6 changed files
with
146 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
var gulp = require('gulp'), | ||
uglify = require('gulp-uglify'), | ||
jshint = require('gulp-jshint'), | ||
rename = require('gulp-rename'), | ||
bump = require('gulp-bump'), | ||
notify = require('gulp-notify'), | ||
git = require('gulp-git'), | ||
size = require('gulp-size'), | ||
pkg = require('./package.json'); | ||
|
||
var source = "jquery.simpleWeather.js", | ||
sourceMin = "jquery.simpleWeather.min.js"; | ||
|
||
gulp.task('lint', function () { | ||
return gulp.src(source) | ||
.pipe(jshint('.jshintrc')) | ||
.pipe(jshint.reporter('jshint-stylish')); | ||
}); | ||
|
||
|
||
gulp.task('build', ['lint'], function () { | ||
return gulp.src(source) | ||
.pipe(rename(sourceMin)) | ||
.pipe(uglify({preserveComments: 'all'})) | ||
.pipe(size()) | ||
.pipe(gulp.dest('./')); | ||
}); | ||
|
||
gulp.task('bump', function () { | ||
return gulp.src(['./bower.json', './component.json', 'simpleweather.jquery.json']) | ||
.pipe(bump({version: pkg.version})) | ||
.pipe(gulp.dest('./')); | ||
}); | ||
|
||
gulp.task('tag', ['bump'], function () { | ||
return gulp.src('./') | ||
.pipe(git.commit('Version '+pkg.version)) | ||
.pipe(git.tag(pkg.version, 'Version '+pkg.version)) | ||
.pipe(git.push('monkee', 'master', '--tags')) | ||
.pipe(gulp.dest('./')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.