forked from pahen/madge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
50 lines (44 loc) · 1.08 KB
/
Gruntfile.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = (grunt) ->
'use strict'
# Grunt project configuration.
# ----------------------
@initConfig
pkg: grunt.file.readJSON("package.json")
# Make a release.
# https://github.com/geddski/grunt-release
# ----------------------------------------------
release:
options:
commit: true
tag: true
push: true
pushTags: true
npm: false
commitMessage: "Bump to version <%= version %>"
tagMessage: "Tagged <%= version %>"
# JSHint task.
# https://github.com/gruntjs/grunt-contrib-jshint
# -----------------------------------------------
jshint:
options:
jshintrc: ".jshintrc"
all: ['test/*.js', 'bin', 'lib']
# Mocha test task.
# https://github.com/pghalliday/grunt-mocha-test
# -----------------------------------------
mochaTest:
test:
options:
reporter: 'spec'
src: ['test/*.js']
# Load tasks.
# -----------
@loadNpmTasks "grunt-contrib-jshint"
@loadNpmTasks "grunt-mocha-test"
@loadNpmTasks "grunt-release"
# Register tasks.
# ---------------
@registerTask "default", [
"jshint"
"mochaTest"
]