Permalink
Browse files

Added command-line JS testing with Grunt.

  • Loading branch information...
1 parent cbabd2d commit 9b30a7ade4c3989b35c2a369c94b8fd755a87f24 @joshuacc joshuacc committed Jan 15, 2013
Showing with 37 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +27 −0 Gruntfile.js
  3. +9 −0 package.json
View
@@ -21,3 +21,4 @@ marketing/.sass-cache/*
test/.sass-cache/*
test/stylesheets/styles.css
*.orig
+node_modules
View
@@ -0,0 +1,27 @@
+module.exports = function(grunt) {
+
+ grunt.loadNpmTasks('grunt-contrib-qunit');
+ grunt.loadNpmTasks('grunt-contrib-watch');
+
+ grunt.initConfig({
+ qunit: {
+ all: ['test/javascripts/tests/**/*.html']
+ },
+ watch: {
+ all: {
+ files: [
+ 'test/javascripts/tests/**/*.html',
+ 'test/javascripts/tests/**/*.js',
+ 'lib/assets/javascripts/foundation/*.js'
+ ],
+ tasks: 'default',
+ options: {
+ interrupt: true
+ }
+ }
+ }
+ });
+
+ // Default task.
+ grunt.registerTask('default', ['qunit']);
+};
View
@@ -0,0 +1,9 @@
+{
+ "name": "zurb-foundation",
+ "version": "4.0.0-wip",
+ "devDependencies": {
+ "grunt": "~0.4.0",
+ "grunt-contrib-watch": "~0.1.0",
+ "grunt-contrib-qunit": "~0.1.1"
+ }
+}

0 comments on commit 9b30a7a

Please sign in to comment.