Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
bumped version to 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Dec 7, 2015
1 parent 12f3264 commit bed0e17
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/daterangepicker.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* knockout-daterangepicker
* version: 0.0.1
* version: 0.0.3
* authors: Sensor Tower team
* license: MIT
* https://sensortower.github.io/daterangepicker
Expand Down
2 changes: 1 addition & 1 deletion dist/daterangepicker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* knockout-daterangepicker
* version: 0.0.1
* version: 0.0.3
* authors: Sensor Tower team
* license: MIT
* https://sensortower.github.io/daterangepicker
Expand Down
2 changes: 1 addition & 1 deletion dist/daterangepicker.min.css

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

2 changes: 1 addition & 1 deletion dist/daterangepicker.min.js

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

16 changes: 14 additions & 2 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,21 @@ gulp.task('github:pages', ['build:website'], () => {
.pipe($.ghPages());
});

gulp.task('github:release', ['build:min'], () => {
gulp.task('consistency-check', ['build:min'], (cb) => {
const exec = require('child_process').exec;
exec('git status', function callback(error, stdout, stderr) {
const pendingChanges = stdout.match(/modified:\s*dist/)
if (pendingChanges) {
throw new Error('consistency check failed');
} else {
cb();
}
});
});

gulp.task('github:release', ['consistency-check'], () => {
if (!process.env.GITHUB_TOKEN) {
throw "env.GITHUB_TOKEN is empty";
throw new Error('env.GITHUB_TOKEN is empty');
}

const manifest = require('./package.json');
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": "knockout-daterangepicker",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"engines": {
"node": ">=0.12.0"
Expand All @@ -11,6 +11,7 @@
"del": "^1.1.1",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^2.3.1",
"gulp-bump": "^1.0.0",
"gulp-cache": "^0.2.8",
"gulp-coffee": "^2.3.1",
"gulp-ext-replace": "^0.2.0",
Expand Down

0 comments on commit bed0e17

Please sign in to comment.