Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
vsn4ik committed Dec 5, 2015
1 parent ab3d86f commit 5971a53
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 24 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Files to ignore
*-dist.zip

# Folders to ignore
/node_modules/
32 changes: 29 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ module.exports = function(grunt) {
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
// Task configuration.
clean: {
files: ['dist']
dist: [
'dist',
'*-dist.zip'
]
},
concat: {
options: {
Expand Down Expand Up @@ -60,17 +63,40 @@ module.exports = function(grunt) {
src: 'less/bootstrap-spinner.less',
dest: 'dist/css/bootstrap-spinner.css'
}
},
compress: {
dist: {
options: {
archive: '<%= compress.dist.dest %>.zip'
},
expand: true,
cwd: 'dist',
src: '**',
dest: '<%= pkg.name %>-<%= pkg.version %>-dist'
}
}
});

// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-less');

// Default task.
grunt.registerTask('default', ['jshint', 'qunit', 'clean', 'concat', 'uglify', 'less']);
grunt.registerTask('default', [
'jshint',
'qunit',
'clean',
'concat',
'uglify',
'less'
]);

grunt.registerTask('prep-release', [
'default',
'compress'
]);
};
1 change: 0 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "jquery-spinner",
"version": "0.1.6",
"description": "A Number-Spinner based-on jQuery, Support keyboard operations and continuous changing",
"keywords": [
"spinner",
Expand Down
2 changes: 1 addition & 1 deletion dist/js/jquery.spinner.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jQuery spinner - v0.1.6 - 2015-11-29
/*! jQuery spinner - v0.2.0 - 2015-12-05
* https://github.com/xixilive/jquery-spinner
* Copyright (c) 2015 xixilive; Licensed MIT */
;(function($){
Expand Down
2 changes: 1 addition & 1 deletion dist/js/jquery.spinner.min.js

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

2 changes: 1 addition & 1 deletion js/jquery.spinner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* spinner
* https://github.com/xixilive/jquery-spinner
* https://github.com/vsn4ik/jquery-spinner
*
* Copyright (c) 2013 xixilive
* Licensed under the MIT license.
Expand Down
32 changes: 16 additions & 16 deletions less/bootstrap-spinner.less
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
.spinner.input-group{
.input-group-addon{
.spinner.input-group {
.input-group-addon {
.spin-up,
.spin-down{
.spin-down {
height: 10px;
width: 10px;
overflow: hidden;
display: block;
text-align: center;
color: #999;

&:hover{
&:hover {
color: #555;
}

.fa{
.fa {
margin-top: -8px;
vertical-align: middle;
}

.glyphicon{
.glyphicon {
font-size: 10px;
top: -2px;
}
}

a.spin-up,
a.spin-down{
a.spin-down {
text-decoration: none;
}

button.spin-up,
button.spin-down{
button.spin-down {
background: none;
border: none;
padding: 0;
}
}

&.input-group-sm .input-group-addon{
&.input-group-sm .input-group-addon {
.spin-up,
.spin-down{
.spin-down {
height: 8px;

.fa{
.fa {
margin-top: -12px;
}

.glyphicon{
.glyphicon {
font-size: 8px;
top: -5px;
}
}
}

&.input-group-lg .input-group-addon{
&.input-group-lg .input-group-addon {
.spin-up,
.spin-down{
.spin-down {
height: 12px;
width: 12px;

.fa{
.fa {
margin-top: -16px;
}

.glyphicon{
.glyphicon {
font-size: 12px;
top: -6px;
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-clean": "~0.7.0",
"grunt-contrib-compress": "~0.14.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-jshint": "~0.6.0",
"grunt-contrib-less": "~0.5.0",
Expand Down
2 changes: 1 addition & 1 deletion spinner.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "spinner",
"title": "jQuery spinner",
"description": "A Number-Spinner based-on jQuery, Support Keyboard operations and continuous changing",
"version": "0.1.6",
"version": "0.2.0",
"homepage": "https://github.com/xixilive/jquery-spinner",
"demo": "http://xixilive.github.io/jquery-spinner",
"author": {
Expand Down

0 comments on commit 5971a53

Please sign in to comment.