From 9a7042b8dcba356b1c2aa1d90436572dacfda6ec Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 31 Mar 2014 13:31:31 +0100 Subject: [PATCH] Add grunt build and travis-ci --- .travis.yml | 5 +++++ Gruntfile.js | 24 ++++++++++++++++++++++++ package.json | 2 ++ 3 files changed, 31 insertions(+) create mode 100644 .travis.yml create mode 100644 Gruntfile.js diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..85fc71b2d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: node_js +node_js: + - "0.10" + - "0.8" + diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 000000000..608972049 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,24 @@ +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + simplemocha: { + options: { + globals: ['expect'], + timeout: 3000, + ignoreLeaks: false, + ui: 'bdd', + reporter: 'tap' + }, + all: { src: ['test/*.js'] } + } + }); + + // Load the plugin that provides the "uglify" task. + grunt.loadNpmTasks('grunt-simple-mocha'); + + // Default task(s). + grunt.registerTask('default', ['simplemocha']); + +}; diff --git a/package.json b/package.json index 4002ec21c..0d0cec7d9 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,8 @@ "mkdirp":"~0.3.5" }, "devDependencies": { + "grunt": "~0.4.4", + "grunt-simple-mocha": "^0.4.0", "mocha": "~1.12.0", "should": "~1.2.2" },