Skip to content

Commit

Permalink
minor bug fix and added gulp-bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Fooidge committed Oct 26, 2014
1 parent cb58f32 commit 0759f27
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pleasejs",
"version": "0.4.0",
"version": "0.4.1",
"homepage": "https://github.com/Fooidge/PleaseJS",
"authors": [
"Fooidge"
Expand Down
2 changes: 1 addition & 1 deletion dist/Please.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
watch = require('gulp-watch');
watch = require('gulp-watch'),
bump = require('gulp-bump');

gulp.task('uglify', function(){
gulp.src('src/Please.js')
Expand All @@ -15,6 +16,21 @@ gulp.task('lint', function(){
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
gulp.task('bump-major', function(){
gulp.src(['./bower.json', './component.json', './package.json'])
.pipe(bump({type:'major'}))
.pipe(gulp.dest('./'));
});
gulp.task('bump-minor', function(){
gulp.src(['./bower.json', './component.json', './package.json'])
.pipe(bump({type:'minor'}))
.pipe(gulp.dest('./'));
});
gulp.task('bump-patch', function(){
gulp.src(['./bower.json', './component.json', './package.json'])
.pipe(bump({type:'patch'}))
.pipe(gulp.dest('./'));
});
/*
gulp.task('watch', function(){
gulp.watch('Please.js',['uglify']);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pleasejs",
"version": "0.4.0",
"version": "0.4.1",
"description": "JS library to generate random pleasing colors/color schemes",
"main": "./dist/Please.js",
"scripts": {
Expand All @@ -23,6 +23,7 @@
"homepage": "https://github.com/Fooidge/PleaseJS",
"devDependencies": {
"gulp": "^3.8.9",
"gulp-bump": "^0.1.11",
"gulp-jshint": "^1.7.1",
"gulp-uglify": "^0.3.2",
"gulp-watch": "^0.6.10",
Expand Down
1 change: 1 addition & 0 deletions src/Please.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@
//clone base please options
var scheme_options = copy_object( make_scheme_default ),
adjusted,
secondary,
adjusted_h,
adjusted_s,
adjusted_v,
Expand Down

0 comments on commit 0759f27

Please sign in to comment.