-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Keith Wood
committed
Feb 4, 2017
1 parent
8ec5f40
commit b1d1e94
Showing
632 changed files
with
95,030 additions
and
6,093 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "src/bower_components" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.