Skip to content

Commit

Permalink
Release 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Wood committed Feb 4, 2017
1 parent 8ec5f40 commit b1d1e94
Show file tree
Hide file tree
Showing 632 changed files with 95,030 additions and 6,093 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"
}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dist/*.zip
doc/fonts
doc/scripts
node_modules
report
src/bower_components
20 changes: 20 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"bitwise": true,
"browser": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"forin": true,
"freeze": true,
"immed": true,
"indent": 4,
"jquery": true,
"latedef": true,
"newcap": true,
"noarg": true,
"nonew": true,
"quotmark": "single",
"strict": true,
"undef": true,
"unused": true
}
213 changes: 213 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
'use strict';

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

var config = {
pkg: grunt.file.readJSON('package.json'),
clean: {
build: ['dist/*', 'doc/*', 'report/*', 'temp/*'],
tests: ['test/*.lang.tests.html', 'test/*.min.tests.html']
},
concat: {
options: {
banner: '/*! http://keith-wood.name/calendars.html\n' +
' Calendars localisations. */\n',
stripBanners: false
},
all: {
src: ['src/js/jquery.calendars.js', 'src/js/jquery.calendars.plus.js', 'src/js/jquery.calendars.picker.js'],
dest: 'dist/js/jquery.calendars.all.js'
},
lang: {
src: 'src/js/jquery.calendars-*.js',
dest: 'dist/js/jquery.calendars.lang.js'
},
lang2: {
src: 'src/js/jquery.calendars.picker-*.js',
dest: 'dist/js/jquery.calendars.picker.lang.js'
}
},
copy: {
dist: {
files: [
{
expand: true,
cwd: 'src',
src: ['*.html', 'css/*.*', 'img/*.*', 'js/*.*'],
dest: 'dist'
},
{
expand: true,
cwd: 'src/bower_components/kbw-plugin/dist/js',
src: ['*.*'],
dest: 'dist/js'
}
]
}
},
jsdoc: {
options: {
destination: 'doc'
},
all: ['src/js/*.js', '!src/js/*-*.js']
},
jshint: {
options: {
jshintrc: true
},
all: ['src/js/*.js']
},
qunit: {
options: {
coverage: {
disposeCollector: true,
src: ['src/js/*.js', '!src/js/*-*.js'],
instrumentedFiles: 'temp/',
htmlReport: 'report/',
linesThresholdPct: 85,
statementsThresholdPct: 85,
functionsThresholdPct: 85,
branchesThresholdPct: 80
}
},
all: ['test/*.html']
},
replace: {
dist: {
src: ['dist/index.html'],
dest: 'dist/index.html',
replacements: [
{
from: /bower_components\/jquery\/dist\/jquery.min.js/,
to: 'http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'
},
{
from: /bower_components\/kbw-plugin\/dist\/js\/jquery.plugin.min.js/,
to: 'js/jquery.plugin.min.js'
}
]
},
testlang: {
src: ['test/calendars.tests.html'],
dest: 'test/calendars.lang.tests.html',
replacements: [
{
from: /src\/js\/jquery.*-.*\.js/g,
to: 'dist/js/jquery.calendars.lang.js'
}
]
},
testmin: {
src: ['test/calendars.tests.html'],
dest: 'test/calendars.min.tests.html',
replacements: [
{
from: /src\/js\/jquery.*-.*\.js/g,
to: 'dist/js/jquery.calendars.lang.min.js'
},
{
from: /src\/js\/jquery\.(.*)\.js/g,
to: 'dist/js/jquery.$1.min.js'
}
]
},
testpickerlang: {
src: ['test/calendarsPicker.tests.html'],
dest: 'test/calendarsPicker.lang.tests.html',
replacements: [
{
from: /src\/js\/jquery.*picker-.*\.js/g,
to: 'dist/js/jquery.calendars.picker.lang.js'
},
{
from: /src\/js\/jquery.*-.*\.js/g,
to: 'dist/js/jquery.calendars.lang.js'
}
]
},
testpickermin: {
src: ['test/calendarsPicker.tests.html'],
dest: 'test/calendarsPicker.min.tests.html',
replacements: [
{
from: /src\/js\/jquery.*picker-.*\.js/g,
to: 'dist/js/jquery.calendars.picker.lang.min.js'
},
{
from: /src\/js\/jquery.*-.*\.js/g,
to: 'dist/js/jquery.calendars.lang.min.js'
},
{
from: /src\/js\/jquery\.(.*)\.js/g,
to: 'dist/js/jquery.$1.min.js'
}
]
}
},
uglify: {
options: {
preserveComments: 'some',
sourceMap: true
},
plugin: {
files: [
{
expand: true,
cwd: 'src/js',
src: ['*.js', '!*-*.js'],
dest: 'dist/js',
ext: '.min.js',
extDot: 'last'
},
{
src: 'dist/js/jquery.calendars.all.js',
dest: 'dist/js/jquery.calendars.all.min.js'
},
{
src: 'dist/js/jquery.calendars.lang.js',
dest: 'dist/js/jquery.calendars.lang.min.js'
},
{
src: 'dist/js/jquery.calendars.picker.lang.js',
dest: 'dist/js/jquery.calendars.picker.lang.min.js'
}
]
}
},
zip: {
all: {
cwd: 'dist',
src: ['dist/*.html', 'dist/css/*.*', 'dist/img/*.*', 'dist/js/*.*'],
dest: 'dist/jquery.calendars.package-<%= pkg.version %>.zip'
}
}
};

grunt.initConfig(config);

grunt.registerTask('dist', [
'copy:dist',
'replace:dist',
'zip'
]);

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

grunt.registerTask('default', [
'clean:build',
'jshint',
'concat',
'uglify',
'test',
'jsdoc',
'dist'
]);
};
93 changes: 48 additions & 45 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,49 @@
{
"name": "kbwood_calendars",
"version": "2.0.2",
"description": "This plugin provides support for various world calendars, including a datepicker. * Calendars: Gregorian, Julian, Taiwanese, Thai, Persian, Islamic, Umm al-Qura, Hebrew, Ethiopian, Coptic, Nepali, Mayan, Nanakshahi, and Discworld. * Parse and format dates in all these calendars. * Style the datepicker using one of five themes, or use any of the standard Themeroller themes. * Over 70 localisations for Gregorian/Julian calendars.",
"keywords": [
"calendar",
"coptic",
"date",
"datepicker",
"discworld",
"ethiopian",
"gregorian",
"hebrew",
"i18n",
"input",
"islamic",
"julian",
"mayan",
"nanakshahi",
"nepali",
"persian",
"taiwanese",
"thai",
"ui",
"umm al-qura",
"validation"
],
"license": "http://keith-wood.name/licence.html",
"authors": [
"Keith Wood"
],
"main": "jquery.calendars.js",
"ignore": [
"*.gif",
"*.html",
"*.json",
"*.md",
"*.png",
"jquery.calendars-*.js",
"jquery.calendars.picker-*.js",
"jquery.*.min.js"
],
"dependencies": {
"jquery": ">=1.7"
}
{
"name": "kbw-calendars",
"description": "This plugin provides support for various world calendars, including a datepicker.",
"keywords": [
"calendar",
"coptic",
"date",
"datepicker",
"discworld",
"ethiopian",
"gregorian",
"hebrew",
"i18n",
"input",
"islamic",
"julian",
"mayan",
"nanakshahi",
"nepali",
"persian",
"taiwanese",
"thai",
"ui",
"umm al-qura",
"validation"
],
"homepage": "https://github.com/kbwood/calendars",
"authors": [
"Keith Wood <[email protected]> (http://keith-wood.name)"
],
"licence": "MIT",
"main": [
"src/css/jquery.calendars.picker.css",
"src/js/jquery.calendars.js"
],
"ignore": [
"**/.*",
"node_modules",
"src/bower_components"
],
"dependencies": {
"jquery": ">=1.7",
"kbw-plugin": "~1.0.3"
},
"devDependencies": {
"jquery-validation": "~1.12",
"qunit": "~1.23"
}
}
43 changes: 0 additions & 43 deletions calendarsPickerBasic.html

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit b1d1e94

Please sign in to comment.