Skip to content

Commit

Permalink
v1.3.1 - added bower and Grunt task runner, now hints cleanly
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray Walker committed Mar 24, 2014
1 parent 38476ff commit 6cb1508
Show file tree
Hide file tree
Showing 13 changed files with 1,329 additions and 1,174 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
codekit-config.json
codekit-config.json
/node_modules/
60 changes: 60 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {// https://www.npmjs.org/package/grunt-contrib-jshint
options: {
curly: true,
eqeqeq: true,
eqnull: true,
browser: true,
globals: {
jQuery: true,
Modernizr: true,
console: true
}
},
files: ['jquery.<%= pkg.name %>.js', 'jquery.<%= pkg.name %>-transform.js']
},
uglify: {
options: {
banner: '/** <%= pkg.name %> - <%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> - <%= pkg.license %>*/\n'
},
build: {
src: 'jquery.<%= pkg.name %>.js',
dest: 'jquery.<%= pkg.name %>.min.js'
},
cssBuild: {
src: 'jquery.<%= pkg.name %>-transform.js',
dest: 'jquery.<%= pkg.name %>-transform.min.js'
}
},
watch: {
options: {
spawn: false,
reporter: require('jshint-stylish')
},
target: {
files: ['jquery.<%= pkg.name %>.js', 'jquery.<%= pkg.name %>-transform.js'],
tasks: ['javascript']

}
}
});

// Javascript code quality assurance
grunt.loadNpmTasks('grunt-contrib-jshint');

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');

// Javascript code quality assurance
grunt.loadNpmTasks('grunt-contrib-watch');

// Default task(s).
grunt.registerTask('default', ['jshint', 'uglify']);

grunt.registerTask('javascript', ['jshint', 'uglify']);

};
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#<a id="docs" href="#docs">jPanelMenu</a>

###Version 1.3.0
###Version 1.3.1

jPanelMenu is a [jQuery](http://jquery.com) plugin that creates a paneled-style menu (like the type seen in the mobile versions of [Facebook](http://m.facebook.com) and [Google](http://google.com), as well as in many native iPhone applications).

Expand Down
24 changes: 24 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "jpanelmenu-raywalker",
"version": "1.3.1",
"authors": [
"Anthony Colangelo",
"Ray Walker <[email protected]>"
],
"description": "Forked from Anthony Colangelo's jPanelMenu for strict mode and updated bower installs",
"main": "jquery.jpanelmenu.js",
"moduleType": [
"globals"
],
"keywords": [
"jpanelmenu",
"jquery",
"menu"
],
"license": "MIT",
"homepage": "http://jpanelmenu.com/",
"ignore": [
"**/.*",
"docs"
]
}
Loading

0 comments on commit 6cb1508

Please sign in to comment.