Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Commit

Permalink
build: release v0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Aug 5, 2017
1 parent a21dc96 commit 09bc65e
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 50 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog


## 0.5.4 (Aug 5, 2017)

- Fix the issue of date repicking (#75).


## 0.5.3 (May 30, 2017)

- Highlight the current year and month.
Expand Down
12 changes: 4 additions & 8 deletions dist/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v0.5.3
* Datepicker v0.5.4
* https://github.com/fengyuanchen/datepicker
*
* Copyright (c) 2014-2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-06-15T11:00:53.003Z
* Date: 2017-08-05T07:14:03.474Z
*/

(function (factory) {
Expand Down Expand Up @@ -976,9 +976,8 @@
viewMonth = view === 'day prev' ? viewMonth - 1 : view === 'day next' ? viewMonth + 1 : viewMonth;
viewDay = parseInt($target.text(), 10);
this.date = new Date(viewYear, viewMonth, viewDay);
$target.addClass(options.pickedClass)
.siblings()
.removeClass(options.pickedClass);
this.viewDate = new Date(viewYear, viewMonth, viewDay);
this.fillDays();

if (view === 'day') {
this.hideView();
Expand All @@ -988,9 +987,6 @@
break;

case 'day picked':
$target.addClass(options.pickedClass)
.siblings()
.removeClass(options.pickedClass);
this.hideView();
this.pick('day');
break;
Expand Down
11 changes: 1 addition & 10 deletions dist/datepicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<!-- Jumbotron -->
<div class="jumbotron docs-jumbotron">
<div class="container">
<h1>Datepicker <small class="version">v0.5.3</small></h1>
<h1>Datepicker <small class="version">v0.5.4</small></h1>
<p class="lead">A simple jQuery datepicker plugin.</p>
<div class="docs-carbonads-container">
<div class="docs-carbonads">
Expand Down
12 changes: 4 additions & 8 deletions docs/js/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v0.5.3
* Datepicker v0.5.4
* https://github.com/fengyuanchen/datepicker
*
* Copyright (c) 2014-2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-06-15T11:00:53.003Z
* Date: 2017-08-05T07:14:03.474Z
*/

(function (factory) {
Expand Down Expand Up @@ -976,9 +976,8 @@
viewMonth = view === 'day prev' ? viewMonth - 1 : view === 'day next' ? viewMonth + 1 : viewMonth;
viewDay = parseInt($target.text(), 10);
this.date = new Date(viewYear, viewMonth, viewDay);
$target.addClass(options.pickedClass)
.siblings()
.removeClass(options.pickedClass);
this.viewDate = new Date(viewYear, viewMonth, viewDay);
this.fillDays();

if (view === 'day') {
this.hideView();
Expand All @@ -988,9 +987,6 @@
break;

case 'day picked':
$target.addClass(options.pickedClass)
.siblings()
.removeClass(options.pickedClass);
this.hideView();
this.pick('day');
break;
Expand Down
11 changes: 1 addition & 10 deletions docs/js/datepicker.min.js

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var cssnext = require('postcss-cssnext');
var pkg = require('./package');
var scripts = {
name: 'datepicker.js',
Expand Down Expand Up @@ -72,22 +73,24 @@ gulp.task('js', ['jshint', 'jscs'], function () {
.pipe(gulp.dest(scripts.docs))
.pipe(plugins.rename(scripts.min))
.pipe(plugins.uglify({
preserveComments: 'license'
output: {
comments: 'some'
}
}))
.pipe(gulp.dest(scripts.dest))
.pipe(gulp.dest(scripts.docs));
});

gulp.task('sass', function () {
gulp.task('postcss', function () {
return gulp.src(styles.src)
.pipe(plugins.sass({
outputStyle: 'expanded'
}))
.pipe(plugins.postcss([
cssnext()
]))
.pipe(gulp.dest(styles.dest))
.pipe(gulp.dest(styles.docs));
});

gulp.task('csslint', ['sass'], function () {
gulp.task('csslint', ['postcss'], function () {
return gulp.src(styles.all)
.pipe(plugins.csslint('.csslintrc'))
.pipe(plugins.csslint.formatter());
Expand Down Expand Up @@ -134,7 +137,7 @@ gulp.task('release', ['test', 'docs']);

gulp.task('watch', function () {
gulp.watch(scripts.src, ['jscopy']);
gulp.watch(styles.src, ['sass']);
gulp.watch(styles.src, ['postcss']);
});

gulp.task('default', ['watch']);
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fengyuanchen/datepicker",
"description": "A simple jQuery datepicker plugin.",
"version": "0.5.3",
"version": "0.5.4",
"main": "dist/datepicker.js",
"license": "MIT",
"repository": "fengyuanchen/datepicker",
Expand All @@ -28,18 +28,19 @@
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.1",
"gulp-autoprefixer": "^4.0.0",
"gulp-csscomb": "^3.0.8",
"gulp-csslint": "^1.0.0",
"gulp-jscs": "^4.0.0",
"gulp-jshint": "^2.0.4",
"gulp-load-plugins": "^1.5.0",
"gulp-minify-css": "^1.2.4",
"gulp-postcss": "^7.0.0",
"gulp-qunit": "^1.5.0",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
"gulp-sass": "^3.1.0",
"gulp-uglify": "^2.1.2",
"jshint": "^2.9.4"
"gulp-replace": "^0.6.1",
"gulp-uglify": "^3.0.0",
"jshint": "^2.9.5",
"postcss-cssnext": "^3.0.2"
}
}

0 comments on commit 09bc65e

Please sign in to comment.