Last change
on this file since 484 was
484,
checked in by hendrikvanantwerpen, 11 years ago
|
Commit node_modules, to make checkouts and builds more deterministic.
|
File size:
1.0 KB
|
Line | |
---|
1 | module.exports = function(grunt) { |
---|
2 | |
---|
3 | // Project configuration. |
---|
4 | grunt.initConfig({ |
---|
5 | |
---|
6 | coffeelint: { |
---|
7 | // global options |
---|
8 | options: { |
---|
9 | indentation: { |
---|
10 | value: 4, |
---|
11 | level: 'warn' |
---|
12 | } |
---|
13 | }, |
---|
14 | |
---|
15 | // a target that overrides default options |
---|
16 | one: { |
---|
17 | files: { |
---|
18 | src: ['test/fixtures/*.coffee'] |
---|
19 | }, |
---|
20 | options: { |
---|
21 | indentation: { |
---|
22 | value: 2, |
---|
23 | level: 'warn' |
---|
24 | }, |
---|
25 | 'no_trailing_semicolons': { |
---|
26 | level: 'warn' |
---|
27 | } |
---|
28 | } |
---|
29 | }, |
---|
30 | |
---|
31 | // a simple target |
---|
32 | two: ['test/fixtures/correct.coffee', 'test/fixtures/some.coffee'] |
---|
33 | } |
---|
34 | }); |
---|
35 | |
---|
36 | // Load local tasks. |
---|
37 | grunt.loadTasks('tasks'); |
---|
38 | |
---|
39 | grunt.loadNpmTasks('grunt-npm'); |
---|
40 | grunt.loadNpmTasks('grunt-bump'); |
---|
41 | |
---|
42 | // Default task. |
---|
43 | grunt.registerTask('default', 'coffeelint'); |
---|
44 | |
---|
45 | grunt.registerTask('release', 'Bump version, push to NPM.', function(type) { |
---|
46 | grunt.task.run([ |
---|
47 | 'bump:' + (type || 'patch'), |
---|
48 | 'npm-publish' |
---|
49 | ]); |
---|
50 | }); |
---|
51 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.