summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Banks <mjbanks@gmail.com>2013-09-05 11:22:13 -0400
committerMatt Banks <mjbanks@gmail.com>2013-09-05 11:22:13 -0400
commit9b3bcd77998795b0a292f8328f4a23ec5040dc30 (patch)
treeebc50c4bdfa1665ae37855a9ee2de3f198dc79d6
parent713b7f840f800b57e6011b4a429f8cc284d37665 (diff)
downloadjQuery.equalHeights-9b3bcd77998795b0a292f8328f4a23ec5040dc30.zip
jQuery.equalHeights-9b3bcd77998795b0a292f8328f4a23ec5040dc30.tar.gz
jQuery.equalHeights-9b3bcd77998795b0a292f8328f4a23ec5040dc30.tar.bz2
add Grunt for linting and minification
-rw-r--r--.gitignore2
-rw-r--r--.jshintrc23
-rw-r--r--Gruntfile.js47
-rw-r--r--package.json13
4 files changed, 85 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9daa824
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.DS_Store
+node_modules
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000..7ad16b0
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,23 @@
+{
+ "bitwise": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "immed": true,
+ "newcap": true,
+ "esnext": true,
+ "camelcase": true,
+ "latedef": true,
+ "noarg": true,
+ "node": true,
+ "undef": true,
+ "browser": true,
+ "trailing": true,
+ "jquery": true,
+ "curly": true,
+ "supernew": true,
+ "globals": {
+ "Backbone": true,
+ "_": true,
+ "jQuery": true
+ }
+}
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..1ba3442
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,47 @@
+'use strict';
+module.exports = function(grunt) {
+
+ // load all grunt tasks matching the `grunt-*` pattern
+ require('load-grunt-tasks')(grunt);
+
+ grunt.initConfig({
+
+ // watch for changes and trigger compass, jshint, uglify and livereload
+ watch: {
+ js: {
+ files: '<%= jshint.all %>',
+ tasks: ['jshint', 'uglify']
+ },
+ livereload: {
+ options: { livereload: true },
+ files: ['*.js', '**/*.html']
+ }
+ },
+
+ // javascript linting with jshint
+ jshint: {
+ options: {
+ jshintrc: '.jshintrc',
+ "force": true
+ },
+ all: [ 'jquery.equalheights.js' ]
+ },
+
+ // uglify to concat, minify, and make source maps
+ uglify: {
+ options: {
+ preserveComments: 'some'
+ },
+ main: {
+ files: {
+ 'jquery.equalheights.min.js': [ 'jquery.equalheights.js' ]
+ }
+ }
+ }
+
+ });
+
+ // register task
+ grunt.registerTask('default', ['watch']);
+
+};
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..de62729
--- /dev/null
+++ b/package.json
@@ -0,0 +1,13 @@
+{
+ "name": "jquery.equalHeights",
+ "version": "1.5.0",
+ "dependencies": {
+ "load-grunt-tasks": "~0.1.0"
+ },
+ "devDependencies": {
+ "grunt": "~0.4.1",
+ "grunt-contrib-jshint": "~0.6.4",
+ "grunt-contrib-uglify": "~0.2.4",
+ "grunt-contrib-watch": "~0.5.3"
+ }
+}