Last change
on this file was
516,
checked in by hendrikvanantwerpen, 11 years ago
|
Enable deployment with Grunt.
|
File size:
933 bytes
|
Line | |
---|
1 | module.exports = (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 | # a target that overrides default options |
---|
14 | one: |
---|
15 | files: |
---|
16 | src: ['test/fixtures/*.coffee'] |
---|
17 | options: |
---|
18 | indentation: |
---|
19 | value: 2 |
---|
20 | level: 'warn' |
---|
21 | 'no_trailing_semicolons': |
---|
22 | level: 'warn' |
---|
23 | |
---|
24 | # a simple target |
---|
25 | two: ['test/fixtures/correct.coffee', 'test/fixtures/some.coffee'] |
---|
26 | |
---|
27 | # Load local tasks. |
---|
28 | grunt.loadTasks 'tasks' |
---|
29 | |
---|
30 | grunt.loadNpmTasks 'grunt-npm' |
---|
31 | grunt.loadNpmTasks 'grunt-bump' |
---|
32 | |
---|
33 | # Default task. |
---|
34 | grunt.registerTask 'default', 'coffeelint' |
---|
35 | |
---|
36 | grunt.registerTask 'test', 'coffeelint' |
---|
37 | |
---|
38 | grunt.registerTask 'release', 'Bump version, push to NPM.', (type)-> |
---|
39 | grunt.task.run [ |
---|
40 | "bump:#{type || 'patch'}" |
---|
41 | 'npm-publish' |
---|
42 | ] |
---|
Note: See
TracBrowser
for help on using the repository browser.