forked from josecebe/twbs-pagination
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added gruntfile, updated plugin information json's.
- Loading branch information
Showing
4 changed files
with
64 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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']); | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,6 @@ | |
| "**/.*", | ||
| "node_modules", | ||
| "bower_components", | ||
| "test", | ||
| "tests" | ||
| ] | ||
| } | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters