Line | |
---|
1 | #
|
---|
2 | # * grunt-svninfo
|
---|
3 | # * https://github.com/liqweed/grunt-svninfo
|
---|
4 | # *
|
---|
5 | # * Copyright (c) 2013 liqweed
|
---|
6 | # * Licensed under the MIT license.
|
---|
7 | #
|
---|
8 | "use strict"
|
---|
9 | module.exports = (grunt) ->
|
---|
10 |
|
---|
11 | # Project configuration.
|
---|
12 | grunt.initConfig
|
---|
13 |
|
---|
14 | # Before generating any new files, remove any previously-created files.
|
---|
15 | clean:
|
---|
16 | tests: ["tmp"]
|
---|
17 |
|
---|
18 | # Unit tests.
|
---|
19 | nodeunit:
|
---|
20 | tests: ["test/*_test.js"]
|
---|
21 |
|
---|
22 | coffeelint:
|
---|
23 | app: ['Gruntfile.coffee','tasks/*.coffee', 'test/*.coffee']
|
---|
24 | options:
|
---|
25 | 'no_trailing_whitespace':
|
---|
26 | 'level': 'error'
|
---|
27 | 'max_line_length':
|
---|
28 | value: 100,
|
---|
29 | level: "warn"
|
---|
30 | svninfo:
|
---|
31 | options:
|
---|
32 | cwd:"test/fixtures/svninfo/"
|
---|
33 |
|
---|
34 | # Actually load this plugin's task(s).
|
---|
35 | grunt.loadTasks "tasks"
|
---|
36 |
|
---|
37 | # These plugins provide necessary tasks.
|
---|
38 | grunt.loadNpmTasks "grunt-coffeelint"
|
---|
39 | grunt.loadNpmTasks "grunt-contrib-clean"
|
---|
40 | grunt.loadNpmTasks "grunt-contrib-nodeunit"
|
---|
41 |
|
---|
42 | # Whenever the "test" task is run, first clean the "tmp" dir, then run this
|
---|
43 | # plugin's task(s), then test the result.
|
---|
44 | grunt.registerTask "test", ["clean", "svninfo", "nodeunit"]
|
---|
45 |
|
---|
46 | # By default, lint and run all tests.
|
---|
47 | grunt.registerTask "default", ["coffeelint"] |
---|
Note: See
TracBrowser
for help on using the repository browser.