Skip to content

Commit

Permalink
Update docs, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthornton committed May 3, 2020
1 parent 40bfdfd commit 1915a42
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 29 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Timepicker Plugin for jQuery
========================

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

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

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.

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

1. Install dependencies (jquery + grunt) `npm install`
2. For sanity checks and minification run `grunt`, or just `grunt lint` to have the code linted
After cloning, install dev dependencies with `npm install`.

* `npm run build`: compile timepicker and place updated output in `dist/`
* `npm run watch`: rebuild every time one of the source files changes
* `npm run format`: apply code formatting rules
* `npm run test`: run the jest test suite


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

- - -

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)
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)
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jt.timepicker",
"version": "1.13.4",
"version": "1.13.5",
"description": "A jQuery timepicker plugin inspired by Google Calendar.",
"homepage": "http://jonthornton.github.com/jquery-timepicker",
"main": ["./jquery.timepicker.js", "./jquery.timepicker.css"],
Expand Down
11 changes: 5 additions & 6 deletions dist/jquery.timepicker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*!
* jquery-timepicker v1.13.5 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.
* Copyright (c) 2020 Jon Thornton - https://www.jonthornton.com/jquery-timepicker/
* License: MIT
*/
(function () {
'use strict';

Expand Down Expand Up @@ -266,12 +271,6 @@
}
}

/*!
* jquery-timepicker v1.13.4 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.
* Copyright (c) 2015 Jon Thornton - http://jonthornton.github.com/jquery-timepicker/
* License: MIT
*/

(function(factory) {
if (
typeof exports === "object" &&
Expand Down
7 changes: 1 addition & 6 deletions dist/jquery.timepicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jt.timepicker.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jt.timepicker",
"version": "1.6.0",
"version": "1.13.5",
"title": "jquery-timepicker",
"description": "A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "timepicker",
"version": "1.13.4",
"version": "1.13.5",
"title": "jquery-timepicker",
"author": {
"name": "Jon Thornton",
Expand All @@ -10,7 +10,6 @@
"build": "rollup --config rollup.config.js",
"watch": "rollup -w --config rollup.config.js",
"format": "prettier-eslint --write \"src/**/*.js\"",
"lint": "eslint",
"test": "jest"
},
"license": "MIT",
Expand Down
9 changes: 8 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import { terser } from "rollup-plugin-terser";
import copy from 'rollup-plugin-copy'
import { version } from './package.json';

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

export default {
input: 'src/jquery.timepicker.js',
output: [
{
file: 'dist/jquery.timepicker.js',
format: 'iife'
format: 'iife',
banner: banner
},
{
file: 'dist/jquery.timepicker.min.js',
Expand Down
6 changes: 0 additions & 6 deletions src/jquery.timepicker.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/*!
* jquery-timepicker v1.13.4 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.
* Copyright (c) 2015 Jon Thornton - http://jonthornton.github.com/jquery-timepicker/
* License: MIT
*/

import Timepicker from "./timepicker/index.js";
import moduloSeconds from "./timepicker/rounding.js";
import { ONE_DAY } from "./timepicker/constants.js";
Expand Down

2 comments on commit 1915a42

@PikachuEXE
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you forgot to change main in package.json?

@jonthornton
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PikachuEXE good catch, thanks!

Please sign in to comment.