# potential Gruntfile.coffee
module.exports = (grunt) ->
{ concat # concatenate lists
contrib # prepends 'grunt-contrib-' to list of strings
initConfig # vs grunt.initConfig
loadNpmTasks # takes a list of npm tasks
log # grunt.log.writeln
readJSON # grunt.file.readJSON
registerTasks # special flavor of grunt.registerTask. Works with list of lists.
} = ((require 'grunt-functionalize') grunt)
initConfig
pkg: (readJSON 'package.json')
# ... your usual config ...
(loadNpmTasks (concat (contrib [ 'clean'
'coffee'
'copy'
'less'
'uglify'
'watch' ] ),
[ 'grunt-groundskeeper' ] ) )
(registerTasks [ [ 'compile:dev', [ 'less:development'
'coffee' ] ]
[ 'dev' , [ 'compile:dev'
'copy:lib_js'
'copy:jquery-ui.css' ] ]
[ 'build' , [ 'clean:js'
'less:production'
'coffee'
'uglify'
'copy:lib_build'
'copy:build_js' ] ]
[ 'default' , [ 'dev' ] ] ] )
-
Notifications
You must be signed in to change notification settings - Fork 0
spacegangster/grunt-functionalize
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Few short, list-oriented functions for grunt. For those who sit on coffeescript and cares about code beauty and clarity.
Resources
Stars
Watchers
Forks
Releases
No releases published