Skip to content

Commit 4e07eac

Browse files
committed
Using grunt instead of make 'cuz JS.
1 parent 00755cd commit 4e07eac

File tree

4 files changed

+42
-7
lines changed

4 files changed

+42
-7
lines changed

Gruntfile.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*global module:true */
2+
module.exports = function(grunt) {
3+
'use strict';
4+
5+
// Load our npm tasks.
6+
grunt.loadNpmTasks('grunt-contrib-jshint');
7+
grunt.loadNpmTasks('grunt-simple-mocha');
8+
grunt.loadNpmTasks('grunt-contrib-watch');
9+
10+
// Project configuration.
11+
grunt.initConfig({
12+
pkg: grunt.file.readJSON('package.json'),
13+
jshint: {
14+
all: ['eventChain.js', 'test/eventChainSpec.js', 'Gruntfile.js']
15+
},
16+
simplemocha: {
17+
options: {
18+
ui: 'bdd'
19+
},
20+
all: ['test/eventChainSpec.js']
21+
},
22+
watch: {
23+
all: {
24+
files: ['eventChain.js', 'test/eventChainSpec.js'],
25+
tasks: ['jshint', 'test']
26+
}
27+
}
28+
});
29+
30+
grunt.registerTask('test', 'simplemocha');
31+
// Give travis its own task.
32+
grunt.registerTask('travis', ['jshint', 'test']);
33+
// The default task.
34+
grunt.registerTask('default', ['jshint', 'test']);
35+
};

Makefile

Lines changed: 0 additions & 4 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@
2424
}
2525
],
2626
"devDependencies": {
27-
"mocha": "*"
27+
"mocha": "*",
28+
"grunt": "~0.4.1",
29+
"grunt-contrib-jshint": "~0.3.0",
30+
"grunt-simple-mocha": "~0.3.2",
31+
"grunt-contrib-watch": "~0.3.1"
2832
},
2933
"scripts": {
30-
"test": "make test"
34+
"test": "grunt travis --verbose"
3135
}
3236
}

test/eventChainSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*global require: true, global: true, describe: true, beforeEach: true,
2-
it: true, EventChain: true */
2+
it: true */
33
var assert = require('assert');
44

55
// Fake the Impact global namespace with good enough definitions.

0 commit comments

Comments
 (0)