forked from acolangelo/jPanelMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.3.1 - added bower and Grunt task runner, now hints cleanly
- Loading branch information
Ray Walker
committed
Mar 24, 2014
1 parent
38476ff
commit 6cb1508
Showing
13 changed files
with
1,329 additions
and
1,174 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.DS_Store | ||
codekit-config.json | ||
codekit-config.json | ||
/node_modules/ |
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,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']); | ||
|
||
}; |
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
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,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" | ||
] | ||
} |
Oops, something went wrong.