forked from rrdelaney/codacy-coffeescript
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
37 lines (30 loc) · 1005 Bytes
/
Gruntfile.coffee
File metadata and controls
37 lines (30 loc) · 1005 Bytes
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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
src_dir: 'src'
target_dir: 'target'
coffee:
dist:
expand: true
cwd: '<%= src_dir %>'
src: ['**/*.coffee']
dest: '<%= target_dir %>'
ext: '.js'
options:
bare: yes
coffeelint:
dist: ['<%= src_dir %>/**/*.coffee']
options:
max_line_length:
level: 'ignore'
indentation:
level: 'ignore'
clean:
dist: ['<%= target_dir %>']
grunt.loadTasks 'tasks/'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.registerTask 'dist', ['clean:dist', 'coffeelint:dist', 'coffee:dist']
grunt.registerTask 'default', ['dist', 'patterns']
return