Skip to content

Commit

Permalink
Release 5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Wood committed Oct 3, 2016
1 parent a5fd266 commit 807bc93
Show file tree
Hide file tree
Showing 152 changed files with 24,804 additions and 1,333 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "src/bower_components"
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
doc/fonts
doc/scripts
node_modules
package
src/bower_components
22 changes: 22 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"bitwise": true,
"browser": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"esnext": true,
"immed": true,
"indent": 4,
"jquery": true,
"latedef": true,
"newcap": true,
"noarg": true,
"node": true,
"quotmark": "single",
"regexp": true,
"smarttabs": true,
"strict": true,
"trailing": true,
"undef": true,
"unused": true,
}
143 changes: 143 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
'use strict';

module.exports = function (grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

var config = {
clean: {
build: {
files: [
{
dot: true,
src: ['dist/*', '!dist/.git', 'doc/*', 'package/*']
}
]
},
package: {
files: [
{
dot: true,
src: ['src/js/*.min.js', 'src/js/*.map', 'src/js/*lang.js']
}
]
},
tests: {
files: [
{
dot: true,
src: ['test/*.lang.tests.html', 'test/*.min.tests.html']
}
]
}
},
concat: {
options: {
banner: '/*! http://keith-wood.name/datepick.html\n' +
' Datepicker localisations. */\n',
stripBanners: false
},
lang: {
src: 'src/js/jquery.datepick-*.js',
dest: 'dist/jquery.datepick.lang.js'
}
},
copy: {
package: {
files: [
{
expand: true,
cwd: 'dist',
src: ['*.*'],
dest: 'src/js'
}
]
}
},
jsdoc: {
options: {
destination: 'doc'
},
all: {
src: ['src/js/jquery.*.js', '!src/js/jquery.*-.*.js'],
}
},
jshint: {
all: ['src/js/jquery.*.js']
},
qunit: {
all: ['test/**/*.html']
},
replace: {
langtest: {
src: ['test/datepick.tests.html'],
dest: 'test/datepick.lang.tests.html',
replacements: [
{
from: /src\/js\/jquery.*-.*\.js/g,
to: 'dist/jquery.datepick.lang.js'
}
]
},
mintest: {
src: ['test/datepick.tests.html'],
dest: 'test/datepick.min.tests.html',
replacements: [
{
from: /src\/js\/jquery.*-.*\.js/g,
to: 'dist/jquery.datepick.lang.min.js'
},
{
from: /src\/js\/jquery\.(.*)\.js/g,
to: 'dist/jquery.$1.min.js'
}
]
}
},
uglify: {
options: {
preserveComments: 'some',
sourceMap: true
},
plugin: {
files: {
'dist/jquery.datepick.min.js': ['src/js/jquery.datepick.js'],
'dist/jquery.datepick.ext.min.js': ['src/js/jquery.datepick.ext.js'],
'dist/jquery.datepick.validation.min.js': ['src/js/jquery.datepick.validation.js'],
'dist/jquery.datepick.lang.min.js': ['dist/jquery.datepick.lang.js']
}
}
},
zip: {
all: {
cwd: 'src',
src: ['src/*.html', 'src/css/*.datepick.css', 'src/img/*.gif',
'src/js/jquery.datepick*.js', 'src/js/jquery.datepick*.map'],
dest: 'package/jquery.datepick.package.zip'
}
}
};

grunt.initConfig(config);

grunt.registerTask('package', [
'copy:package',
'zip',
'clean:package'
]);

grunt.registerTask('test', [
'replace',
'qunit',
'clean:tests'
]);

grunt.registerTask('build', [
'clean:build',
'jshint',
'concat',
'uglify',
'test',
'jsdoc',
'package'
]);
};
35 changes: 35 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "kbw-datepick",
"description": "This plugin attaches a popup calendar to your input fields or shows an inline calendar for selecting individual dates or date ranges.",
"keywords": [
"calendar",
"date",
"datepicker",
"input",
"jQuery",
"localisation",
"validation"
],
"homepage": "https://github.com/kbwood/datepick",
"authors": [
"Keith Wood <wood.keith@optusnet.com.au> (http://keith-wood.name)"
],
"licence": "MIT",
"main": [
"src/css/jquery.datepick.css",
"src/js/jquery.datepick.js"
],
"ignore": [
"**/.*",
"node_modules",
"src/bower_components"
],
"dependencies": {
"jquery": ">=1.12.0",
"kbw-plugin": "~1.0.2"
},
"devDependencies": {
"jquery-validation": "~1.12",
"qunit": "~1.23"
}
}
7 changes: 7 additions & 0 deletions dist/jquery.datepick.ext.min.js

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

1 change: 1 addition & 0 deletions dist/jquery.datepick.ext.min.map

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

Loading

0 comments on commit 807bc93

Please sign in to comment.