Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Grunt tasks and Minor CSS improvements #2

Merged
merged 3 commits into from
Nov 2, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
*.swo
*.swn
*.swm
node_modules
.DS_Store
33 changes: 33 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = function(grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

var config = {
srcDir: 'src/'
, minDir: 'min/'
, name: 'jquery.rateyo'
};

grunt.initConfig({
config: config
, pkg: grunt.file.readJSON('package.json')

, uglify: {
minify: {
files: {
'<%= config.minDir %><%= config.name %>.min.js': ['<%= config.srcDir %><%= config.name %>.js']
}
}
}

, cssmin: {
minify: {
files: {
'<%= config.minDir %><%= config.name %>.min.css': ['<%= config.srcDir %><%= config.name %>.css']
}
}
}
});

grunt.registerTask('build', ['uglify:minify', 'cssmin:minify']);
grunt.registerTask('default', 'build');
};
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rateYo
======

A simple and flexible, jQuery star rating Plugin,
A simple and flexible, jQuery star rating Plugin,

it uses SVG to render rating, so no images required.

Expand All @@ -13,4 +13,4 @@ just create a div, throw some styles, initialize and thats it!.
http://prrashi.github.io/rateYo/

**Browser Support**"
Supported by all modren browsers from IE9
Supported by all modern browsers from IE9
2 changes: 1 addition & 1 deletion min/jquery.rateyo.min.css

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

2 changes: 1 addition & 1 deletion min/jquery.rateyo.min.js

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

23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "rateYo"
, "version": "1.0.0"
, "description": "A simple and flexible star rating plugin"
, "main": "js/jquery.rateyo.js"
, "repository": {
"type": "git"
, "url": "git://github.com/prrashi/rateYo.git"
}
, "author": "prashanth pamidi (https://github.com/prrashi)"
, "bugs": {
"url": "https://github.com/prrashi/rateYo/issues"
}
, "devDependencies": {
"grunt": "~0.4.5"
, "grunt-contrib-clean": "~0.6.0"
, "grunt-contrib-watch": "~0.6.1"
, "grunt-contrib-uglify": "~0.6.0"
, "grunt-contrib-cssmin": "~0.10.0"
, "matchdep": "~0.3.0"
}
, "homepage": "http://rateyo.fundoocode.ninja/"
}
14 changes: 6 additions & 8 deletions src/jquery.rateyo.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
.jq-ry-container {
position: relative;
padding: 0px;
line-height: 0px;
padding: 0 5px;
line-height: 0;
display: block;
padding-right: 5px;
padding-left: 5px;
}
.jq-ry-container > .jq-ry-group-wrapper {
position: relative;
Expand All @@ -13,7 +11,7 @@
}
.jq-ry-container > .jq-ry-group-wrapper > .jq-ry-group {
position: relative;
line-height: 0px;
line-height: 0;
z-index: 10;
white-space: nowrap;
}
Expand All @@ -24,10 +22,10 @@
width: 100%;
}
.jq-ry-container > .jq-ry-group-wrapper > .jq-ry-group.jq-ry-rated-group {
width: 0%;
width: 0;
z-index: 11;
position: absolute;
top: 0px;
left: 0px;
top: 0;
left: 0;
overflow: hidden;
}