Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added gruntfile, updated plugin information json's.
  • Loading branch information
pavelthq committed Nov 4, 2015
1 parent 80146d8 commit a0e538c
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 9 deletions.
52 changes: 52 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,52 @@
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
// Task configuration.
pkg: grunt.file.readJSON('package.json'),

// License banner text
banner: '/*\n' +
' * <%= pkg.nativeName %> v<%= pkg.version %>\n' +
' * <%= pkg.homepage %>\n' +
' *\n' +
' * Copyright 2014-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
' * Released under <%= pkg.license %> license\n' +
' * <%= pkg.licenseUrl %>\n' +
' */\n',
uglify: {
main: {
options: {
banner: '<%= banner %>',
sourceMap: false,
mangle: true,
compress: true,
beautify: false
},
files: {
'jquery.twbsPagination.min.js':'jquery.twbsPagination.js'
}
}
},
// Run predefined tasks whenever watched file changed or deleted
watch: {
js: {
options: {
atBegin: true
},
files: ['jquery.twbsPagination.js'],
tasks: [
'build'
]
}
}
});

// These plugins provide necessary tasks.
require('load-grunt-tasks')(grunt);

// Default task.
grunt.registerTask('default', ['watch:js']);
//
//// Custom tasks
grunt.registerTask('build', ['uglify:main']);
};
1 change: 0 additions & 1 deletion bower.json
Expand Up @@ -24,7 +24,6 @@
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
16 changes: 10 additions & 6 deletions package.json
@@ -1,23 +1,27 @@
{
"name": "twbs-pagination",
"version": "1.2.6",
"nativeName": "jQuery Bootstrap Pagination",
"homepage": "https://github.com/esimakin/twbs-pagination",
"author": "Eugene Simakin <eugenesimakin@mail.ru>",
"description": "jQuery simple pagination plugin for bootstrap-style webpages",
"main": "jquery.twbsPagination",
"dependencies": {
"jquery": ">=1.7.0"
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-cli": "~0.1.13",
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-uglify": "^0.9.2",
"load-grunt-tasks": "^3.1.0"
},
"keywords": [
"pagination",
"jQuery",
"jQuery-plugin",
"bootstrap"
],
"volo": {
"dependencies": {
"jquery": "jquery/jquery/>=1.7.0"
}
},
"license": "Apache 2.0"
"license": "Apache 2.0",
"licenseUrl": "http://apache.org/licenses/LICENSE-2.0.html"
}
4 changes: 2 additions & 2 deletions twbs-pagination.jquery.json
@@ -1,7 +1,7 @@
{
"name": "twbs-pagination",
"version": "1.2.6",
"title": "Twbs Pagination",
"title": "jQuery Bootstrap Pagination",
"author": {
"name": "Eugene Simakin",
"email": "mail@esimakin.com",
Expand All @@ -14,7 +14,7 @@
}
],
"dependencies": {
"jquery": "> 1.10.2"
"jquery": "> 1.7"
},
"description": "Twbs Pagination is a jQuery plugin that provides pagination for your web site or application. Check out the demo!",
"keywords": [
Expand Down

0 comments on commit a0e538c

Please sign in to comment.