Skip to content

Commit 1915a42

Browse files
committed
Update docs, version bump
1 parent 40bfdfd commit 1915a42

9 files changed

+28
-29
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Timepicker Plugin for jQuery
22
========================
33

4-
[<img src="http://jonthornton.github.com/jquery-timepicker/lib/screenshot.png" alt="timepicker screenshot" />](http://jonthornton.github.com/jquery-timepicker)
4+
[<img src="http://jonthornton.github.com/jquery-timepicker/lib/screenshot.png" alt="timepicker screenshot" />](https://www.jonthornton.com/jquery-timepicker)
55

6-
[See a demo and examples here](http://jonthornton.github.com/jquery-timepicker)
6+
[See a demo and examples here](https://www.jonthornton.com/jquery-timepicker)
77

88
jquery.timepicker is a lightweight timepicker plugin for jQuery inspired by Google Calendar. It supports both mouse and keyboard navigation, and weighs in at 5.5kb minified and gzipped.
99

@@ -288,11 +288,16 @@ Submit a [GitHub Issues request](https://github.com/jonthornton/jquery-timepicke
288288
Development guidelines
289289
----------------------
290290

291-
1. Install dependencies (jquery + grunt) `npm install`
292-
2. For sanity checks and minification run `grunt`, or just `grunt lint` to have the code linted
291+
After cloning, install dev dependencies with `npm install`.
292+
293+
* `npm run build`: compile timepicker and place updated output in `dist/`
294+
* `npm run watch`: rebuild every time one of the source files changes
295+
* `npm run format`: apply code formatting rules
296+
* `npm run test`: run the jest test suite
297+
293298

294299
jquery-timepicker follows [semantic versioning](http://semver.org/).
295300

296301
- - -
297302

298-
This software is made available under the open source MIT License. &copy; 2014 [Jon Thornton](http://www.jonthornton.com) and [contributors](https://github.com/jonthornton/jquery-timepicker/graphs/contributors)
303+
This software is made available under the open source MIT License. &copy; 2020 [Jon Thornton](https://www.jonthornton.com) and [contributors](https://github.com/jonthornton/jquery-timepicker/graphs/contributors)

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jt.timepicker",
3-
"version": "1.13.4",
3+
"version": "1.13.5",
44
"description": "A jQuery timepicker plugin inspired by Google Calendar.",
55
"homepage": "http://jonthornton.github.com/jquery-timepicker",
66
"main": ["./jquery.timepicker.js", "./jquery.timepicker.css"],

dist/jquery.timepicker.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*!
2+
* jquery-timepicker v1.13.5 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.
3+
* Copyright (c) 2020 Jon Thornton - https://www.jonthornton.com/jquery-timepicker/
4+
* License: MIT
5+
*/
16
(function () {
27
'use strict';
38

@@ -266,12 +271,6 @@
266271
}
267272
}
268273

269-
/*!
270-
* jquery-timepicker v1.13.4 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.
271-
* Copyright (c) 2015 Jon Thornton - http://jonthornton.github.com/jquery-timepicker/
272-
* License: MIT
273-
*/
274-
275274
(function(factory) {
276275
if (
277276
typeof exports === "object" &&

dist/jquery.timepicker.min.js

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jt.timepicker.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jt.timepicker",
3-
"version": "1.6.0",
3+
"version": "1.13.5",
44
"title": "jquery-timepicker",
55
"description": "A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.",
66
"author": {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "timepicker",
3-
"version": "1.13.4",
3+
"version": "1.13.5",
44
"title": "jquery-timepicker",
55
"author": {
66
"name": "Jon Thornton",
@@ -10,7 +10,6 @@
1010
"build": "rollup --config rollup.config.js",
1111
"watch": "rollup -w --config rollup.config.js",
1212
"format": "prettier-eslint --write \"src/**/*.js\"",
13-
"lint": "eslint",
1413
"test": "jest"
1514
},
1615
"license": "MIT",

rollup.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
import { terser } from "rollup-plugin-terser";
22
import copy from 'rollup-plugin-copy'
3+
import { version } from './package.json';
34

5+
const banner = `/*!
6+
* jquery-timepicker v${version} - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.
7+
* Copyright (c) 2020 Jon Thornton - https://www.jonthornton.com/jquery-timepicker/
8+
* License: MIT
9+
*/`;
410

511
export default {
612
input: 'src/jquery.timepicker.js',
713
output: [
814
{
915
file: 'dist/jquery.timepicker.js',
10-
format: 'iife'
16+
format: 'iife',
17+
banner: banner
1118
},
1219
{
1320
file: 'dist/jquery.timepicker.min.js',

src/jquery.timepicker.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/*!
2-
* jquery-timepicker v1.13.4 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.
3-
* Copyright (c) 2015 Jon Thornton - http://jonthornton.github.com/jquery-timepicker/
4-
* License: MIT
5-
*/
6-
71
import Timepicker from "./timepicker/index.js";
82
import moduloSeconds from "./timepicker/rounding.js";
93
import { ONE_DAY } from "./timepicker/constants.js";

0 commit comments

Comments
 (0)