Skip to content

Commit

Permalink
Release 2.2.3-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
illuusio committed Jun 26, 2020
1 parent ce8cf23 commit 9fd4c30
Show file tree
Hide file tree
Showing 4 changed files with 1,511 additions and 1,584 deletions.
83 changes: 48 additions & 35 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,60 @@
* http://jscrollpane.kelvinluck.com/
*
* Copyright (c) 2013 Kelvin Luck
* Copyright (c) 2020 Tuukka Pasanen
* 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'
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
uglify: {
jsp: {
files: {
'script/jquery.jscrollpane.min.js': 'script/jquery.jscrollpane.js',
},
options: {
preserveComments: 'some',
},
},
},
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');
watch: {
content: {
files: ['script/jquery.jscrollpane.js'],
tasks: 'uglify',
},
},
connect: {
site: {
options: {
base: '.',
},
},
},
prettier: {
pretty: {
options: {
printWidth: 140,
tabWidth: 4,
useTabs: false,
semi: true,
singleQuote: true,
trailingComma: 'all',
bracketSpacing: true,
progress: true,
},
src: ['Gruntfile.js', 'script/jquery.jscrollpane.js'],
},
},
});

grunt.registerTask('default', ['uglify']);
grunt.registerTask('serve', ['uglify', 'connect', 'watch']);
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-prettier');

grunt.registerTask('default', ['uglify', 'prettier']);
grunt.registerTask('serve', ['uglify', 'connect', 'watch']);
};
24 changes: 23 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"grunt-cli": "^1.3.2",
"grunt-contrib-connect": "^2.1.0",
"grunt-contrib-uglify": "^4.0.1",
"grunt-contrib-watch": "^1.1.0"
"grunt-contrib-watch": "^1.1.0",
"grunt-prettier": "^2.1.0"
}
}
Loading

0 comments on commit 9fd4c30

Please sign in to comment.