diff options
Diffstat (limited to 'libs/bower_components/jScrollPane/build/Gruntfile.js')
-rw-r--r-- | libs/bower_components/jScrollPane/build/Gruntfile.js | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/libs/bower_components/jScrollPane/build/Gruntfile.js b/libs/bower_components/jScrollPane/build/Gruntfile.js new file mode 100644 index 0000000000..c48aba2f70 --- /dev/null +++ b/libs/bower_components/jScrollPane/build/Gruntfile.js @@ -0,0 +1,49 @@ +/* + * jScrollPane build script + * http://jscrollpane.kelvinluck.com/ + * + * Copyright (c) 2013 Kelvin Luck + * Licensed under the MIT license. + */ + +'use strict'; + +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + + uglify: { + jsp: { + files: { + '../script/jquery.jscrollpane.min.js': '../script/jquery.jscrollpane.js' + }, + options: { + preserveComments: 'some' + } + } + }, + watch: { + content: { + files: ['../script/jquery.jscrollpane.js'], + tasks: 'uglify' + } + }, + connect: { + site: { + options: { + base: '../' + } + } + } + + }); + + grunt.loadNpmTasks('grunt-contrib-connect'); + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + + grunt.registerTask('default', ['uglify']); + grunt.registerTask('serve', ['uglify', 'connect', 'watch']); + +}; |