Skip to content

Commit

Permalink
Added command-line JS testing with Grunt.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacc committed Jan 15, 2013
1 parent cbabd2d commit 9b30a7a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ marketing/.sass-cache/*
test/.sass-cache/*
test/stylesheets/styles.css
*.orig
node_modules
27 changes: 27 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -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']);
};
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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.