mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
added minification
This commit is contained in:
parent
a38440319e
commit
6a7d7e17bb
31
Gruntfile.js
31
Gruntfile.js
@ -14,17 +14,19 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-sass');
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
grunt.loadNpmTasks('grunt-contrib-requirejs');
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
rig: {
|
||||
standalone: {
|
||||
src: ['javascripts/jquery.datetimepicker.js'],
|
||||
dest: 'dist/jquery.datetimepicker.js'
|
||||
dest: 'dist/javascripts/jquery.datetimepicker.js'
|
||||
},
|
||||
moment: {
|
||||
src: ['javascripts/jquery.moment.datetimepicker.js'],
|
||||
dest: 'dist/jquery.moment.datetimepicker.js'
|
||||
dest: 'dist/javascripts/jquery.moment.datetimepicker.js'
|
||||
},
|
||||
mousewheel: {
|
||||
src: ['javascripts/import.mousewheel.js'],
|
||||
@ -48,8 +50,8 @@ module.exports = function(grunt) {
|
||||
copy:{
|
||||
sass:{
|
||||
files:[
|
||||
{src:'stylesheets/jquery.datetimepicker.scss',dest:'dist/jquery.datetimepicker.scss'},
|
||||
{src:'stylesheets/_options.scss',dest:'dist/_options.scss'}
|
||||
{src:'stylesheets/jquery.datetimepicker.scss',dest:'dist/stylesheets/jquery.datetimepicker.scss'},
|
||||
{src:'stylesheets/_options.scss',dest:'dist/stylesheets/_options.scss'}
|
||||
]
|
||||
}
|
||||
},
|
||||
@ -59,27 +61,30 @@ module.exports = function(grunt) {
|
||||
},
|
||||
dist: {
|
||||
files: {
|
||||
'dist/jquery.datetimepicker.css': 'dist/jquery.datetimepicker.scss'
|
||||
'dist/stylesheets/jquery.datetimepicker.css': 'dist/stylesheets/jquery.datetimepicker.scss'
|
||||
}
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
standalone: {
|
||||
src: ['dist/jquery.datetimepicker.js'],
|
||||
dest: 'dist/jquery.datetimepicker.min.js'
|
||||
src: ['dist/javascripts/jquery.datetimepicker.js'],
|
||||
dest: 'dist/javascripts/jquery.datetimepicker.min.js'
|
||||
},
|
||||
moment: {
|
||||
src: ['dist/jquery.moment.datetimepicker.js'],
|
||||
dest: 'dist/jquery.moment.datetimepicker.min.js'
|
||||
src: ['dist/javascripts/jquery.moment.datetimepicker.js'],
|
||||
dest: 'dist/javascripts/jquery.moment.datetimepicker.min.js'
|
||||
}
|
||||
},
|
||||
css:{
|
||||
src: ['stylesheets/jquery.datetimepicker.scss'],
|
||||
dest: 'stylesheets/jquery.moment.datetimepicker.min.css'
|
||||
cssmin: {
|
||||
target: {
|
||||
files: {
|
||||
'dist/stylesheets/jquery.datetimepicker.min.css': ['dist/stylesheets/jquery.datetimepicker.css', 'bar.css']
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Default task.
|
||||
grunt.registerTask('default', ['rig:moment','rig:mousewheel', 'requirejs','rig:standalone', 'copy', 'sass']);
|
||||
grunt.registerTask('release', ['default', 'uglify', 'copy', 'compress']);
|
||||
grunt.registerTask('release', ['default', 'uglify','cssmin']);
|
||||
};
|
@ -2,8 +2,8 @@
|
||||
"name": "datetimepicker",
|
||||
"version": "2.4.1",
|
||||
"main": [
|
||||
"jquery.datetimepicker.js",
|
||||
"jquery.datetimepicker.css"
|
||||
"dist/javascripts/jquery.datetimepicker.js",
|
||||
"dist/stylesheets/jquery.datetimepicker.css"
|
||||
],
|
||||
"ignore": [
|
||||
"**/screen",
|
||||
|
2
dist/javascripts/jquery.datetimepicker.min.js
vendored
Normal file
2
dist/javascripts/jquery.datetimepicker.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/javascripts/jquery.moment.datetimepicker.min.js
vendored
Normal file
1
dist/javascripts/jquery.moment.datetimepicker.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
11
dist/jquery.datetimepicker.css.map
vendored
11
dist/jquery.datetimepicker.css.map
vendored
@ -1,11 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"file": "jquery.datetimepicker.css",
|
||||
"sources": [
|
||||
"jquery.datetimepicker.scss",
|
||||
"_options.scss"
|
||||
],
|
||||
"sourcesContent": [],
|
||||
"mappings": "AAEA,AACE,AAAY,AACZ,ACHe,ADIf,AAAe,AACf,AAAa,AACb,AAAc,AACd,AAAY,AACZ,ACAiB,ADCjB,AAAa,AACb,AAAS,AACT,AAAc,AACd,AAAa,AACb,AAAU,AACV,AAAS,AACT,AAAiB,AACjB,AAAY,AACZ,AAAS,AAAX,AAAuB,AAEnB,AAAU,AACV,AAAM,AACN,AAAK,AACL,AAAO,AACP,AAAQ,AACR,AAAY,AACZ,AAAQ,AACZ,AAAuB,AAEnB,AAAQ,AAMZ,AACE,AAAuB,AACvB,AAAqB,AACrB,AAAoB,AACpB,AAAkB,AAClB,AAAiB,AACjB,AAAgB,AAChB,AAAa,AAAf,AAAgB,AAAa,AAAgB,AAEzC,AAAY,AAIhB,AAAsB,AAElB,AAAS,AACT,AAAU,AACV,AAAY,AAChB,AAAuB,AAEnB,AAAiB,AACjB,AAAY,AACZ,AAAS,AACT,AAAQ,AACZ,AAAuB,AAAoB,AAAuB,AAE9D,AAAS,AACb,AAAuB,AAAkB,AAAS,AAAuB,AAAkB,AAEvF,AAAS,AACb,AAAuB,AAEnB,AAAO,AACP,AAAO,AACP,AAAa,AACjB,AAAsB,AAAkB,AAEpC,AAAO,AACX,AAAuB,AAEnB,AAAO,AACP,AAAO,AACP,AAAY,AACZ,AAAa,AACb,AAAY,AAChB,AAAuB,AAAkB,AAAU,AAE/C,AAAY,AACZ,AAAe,AACnB,AAAuB,AAEnB,AAAU,AACV,AAAY,AAChB,AAAuB,AAAc,AAAG,AAAuB,AAAc,AAAuB,AAAc,AAAuB,AAErI,AAAkB,AACtB,AAAuB,AAAc,AAEjC,AAAS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AAAsB,AAAa,AAAgB,AAAiB,AAAM,AAAc,AAE9E,ACjYS,ADkYT,AC7YS,AD8YnB,AAAsB,AAAa,AAAgB,AAAiB,AAAM,AAAc,AAE9E,ACxXW,ADyXX,AAAY,AACZ,ACvYS,AD0YnB,AAAsB,AAAa,AAAc,AAE3C,AC7XY,AD+XlB,AAAsB,AAAa,AAAc,AAAsB,AAAa,AAAc,AAAsB,AAAa,AAEjI,ACjYc,ADmYlB,AAAsB,AAAa,AAAiB,AAE9C,AChZiB,ADiZjB,AAAQ,AACR,ACjZmB,ADkZzB,AAAsB,AAAa,AAAiB,AAE9C,AAAQ,AACR,ACrZmB,ADsZnB,AClZiB,ADoZvB,AAAsB,AAAa,AAAiB,AAAE,AAE9C,AClZa,ADmZrB,AAAsB,AAAa,AAAiB,AAAE,AAAiB,AAAsB,AAAa,AAAiB,AAAE,AAErH,ACrZa,ADsZb,AAAY,AACZ,ACpaW,ADuanB,AAAsB,AAAa,AAAmB,AAAmB,AAAM,AAAG,AAE9E,AC5ZiB,AD6ZjB,AAAY,AACZ,AC3ae,AD4anB,AAAsB,AAAa,AAAiB,AAAE,AAAQ,AAAsB,AAAa,AAAmB,AAAmB,AAAM,AAAG,AAE5I,AAAO,AACP,AAAY,AAChB,AAAsB,AAAa,AAAiB,AAEhD,ACxauB,ADya3B,AAAsB,AAAa,AAE/B,AAAO,AAAX,AAAsB,AAAa,AAAkB,AAE/C,AAAO,AAAb,AAAsB,AAAa,AAAkB,AAAC,AAE9C,AAAO,AAMf,AAAa,AAET,AAAQ,AACZ,AAAa,AAAoB,AAE7B,AAAY",
|
||||
"names": []
|
||||
}
|
11
dist/stylesheets/jquery.datetimepicker.css.map
vendored
Normal file
11
dist/stylesheets/jquery.datetimepicker.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/stylesheets/jquery.datetimepicker.min.css
vendored
Normal file
1
dist/stylesheets/jquery.datetimepicker.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -29,6 +29,7 @@
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-contrib": ">=0.1.0",
|
||||
"grunt-contrib-copy": "^0.7.0",
|
||||
"grunt-contrib-cssmin": "^0.11.0",
|
||||
"grunt-contrib-requirejs": "^0.4.4",
|
||||
"grunt-rigger": "~0.5.0",
|
||||
"grunt-sass": "^0.17.0",
|
||||
|
Loading…
Reference in New Issue
Block a user