Skip to content

Commit 8b6b533

Browse files
committed
2 parents f46683c + a3db179 commit 8b6b533

File tree

98 files changed

+5140
-985
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+5140
-985
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
/node_modules/
12
*.iml
23
.idea

.jshintrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"curly": true,
3+
"eqeqeq": true,
4+
"immed": true,
5+
"latedef": true,
6+
"newcap": true,
7+
"noarg": true,
8+
"sub": true,
9+
"undef": true,
10+
"unused": true,
11+
"boss": true,
12+
"eqnull": true,
13+
"node": true,
14+
"es5": true
15+
}

CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions

Gruntfile.js

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
'use strict';
2+
3+
module.exports = function(grunt) {
4+
5+
// Project configuration.
6+
grunt.initConfig({
7+
// Metadata.
8+
pkg: grunt.file.readJSON('jquery-ui-timepicker-addon.json'),
9+
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
10+
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
11+
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
12+
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
13+
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
14+
// Task configuration.
15+
clean: {
16+
files: ['dist']
17+
},
18+
copy: {
19+
dist: {
20+
files: [
21+
//{ src: 'src/index.html', dest: 'dist/index.html' },
22+
{ src: 'src/<%= pkg.name %>.css', dest: 'dist/<%= pkg.name %>.css' },
23+
{ src: 'src/i18n/jquery-ui-timepicker-*.js', dest: 'dist/i18n/', expand:true, flatten: true },
24+
]
25+
}
26+
},
27+
concat: {
28+
dist: {
29+
options: {
30+
banner: '<%= banner %>',
31+
stripBanners: true
32+
},
33+
src: ['src/<%= pkg.name %>.js'],
34+
dest: 'dist/<%= pkg.name %>.js'
35+
},
36+
docs: {
37+
src: [
38+
'src/docs/header.html',
39+
'src/docs/intro.html',
40+
'src/docs/options.html',
41+
'src/docs/formatting.html',
42+
'src/docs/i18n.html',
43+
'src/docs/examples.html',
44+
'src/docs/footer.html'
45+
],
46+
dest: 'dist/index.html'
47+
}
48+
},
49+
uglify: {
50+
options: {
51+
banner: '<%= banner %>'
52+
},
53+
dist: {
54+
src: '<%= concat.dist.dest %>',
55+
dest: 'dist/<%= pkg.name %>.min.js'
56+
},
57+
},
58+
cssmin: {
59+
options: {
60+
banner: '<%= banner %>'
61+
},
62+
dist: {
63+
src: 'dist/<%= pkg.name %>.css',
64+
dest: 'dist/<%= pkg.name %>.min.css'
65+
},
66+
},
67+
jasmine: {
68+
src: 'src/<%= pkg.name %>.js',
69+
options: {
70+
specs: 'test/*_spec.js',
71+
vendor: [
72+
'http://code.jquery.com/jquery-1.10.1.min.js',
73+
'http://code.jquery.com/ui/1.10.3/jquery-ui.min.js'
74+
]
75+
}
76+
},
77+
jshint: {
78+
gruntfile: {
79+
options: {
80+
jshintrc: '.jshintrc'
81+
},
82+
src: 'Gruntfile.js'
83+
},
84+
src: {
85+
options: {
86+
jshintrc: 'src/.jshintrc'
87+
},
88+
src: ['src/**/*.js']
89+
},
90+
test: {
91+
options: {
92+
jshintrc: 'test/.jshintrc'
93+
},
94+
src: ['test/**/*.js']
95+
},
96+
},
97+
watch: {
98+
gruntfile: {
99+
files: '<%= jshint.gruntfile.src %>',
100+
tasks: ['jshint:gruntfile']
101+
},
102+
src: {
103+
files: 'src/**',//'<%= jshint.src.src %>',
104+
tasks: ['jshint:src', 'clean', 'less', 'copy', 'concat', 'uglify', 'cssmin']
105+
},
106+
test: {
107+
files: '<%= jshint.test.src %>',
108+
tasks: ['jshint:test', 'jasmine']
109+
},
110+
},
111+
});
112+
113+
// These plugins provide necessary tasks.
114+
grunt.loadNpmTasks('grunt-contrib-clean');
115+
grunt.loadNpmTasks('grunt-contrib-concat');
116+
grunt.loadNpmTasks('grunt-contrib-copy');
117+
grunt.loadNpmTasks('grunt-contrib-uglify');
118+
grunt.loadNpmTasks('grunt-contrib-cssmin');
119+
grunt.loadNpmTasks('grunt-contrib-jasmine');
120+
grunt.loadNpmTasks('grunt-contrib-jshint');
121+
grunt.loadNpmTasks('grunt-contrib-watch');
122+
123+
// Default task.
124+
grunt.registerTask('default', ['jshint', 'jasmine', 'clean', 'copy', 'concat', 'uglify', 'cssmin']);
125+
126+
};

LICENSE-MIT

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2013 Trent Richardson
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)