Skip to content

Commit

Permalink
add grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
kalyazin committed Apr 23, 2014
1 parent 6b00858 commit 64bfdb2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')

coffee:
glob_to_multiple:
expand: true
cwd: 'src'
src: ['*.coffee']
dest: 'lib'
ext: '.js'

coffeelint:
src: ['src/**/*.coffee']
gruntfile: ['Gruntfile.coffee']

grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-coffeelint')

grunt.registerTask('lint', ['coffeelint'])
grunt.registerTask('default', ['lint', 'coffee'])
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,11 @@
},
"dependencies": {
"nexpect": "~0.4.0"
},
"devDependencies": {
"grunt-cli": "~0.1.13",
"grunt": "~0.4.4",
"grunt-contrib-coffee": "~0.10.1",
"grunt-coffeelint": "0.0.10"
}
}

0 comments on commit 64bfdb2

Please sign in to comment.