Skip to content

Instantly share code, notes, and snippets.

@Chandler
Last active December 19, 2015 11:09
Show Gist options
  • Save Chandler/5945657 to your computer and use it in GitHub Desktop.
Save Chandler/5945657 to your computer and use it in GitHub Desktop.
#This works
grunt.initConfig({
coffee: {
glob_to_multiple: {
options: {
bare: true
},
flatten: true,
expand: true,
cwd: 'client',
src: ['**/*.coffee'],
dest: 'public/js/',
ext: '.js'
}
}
})
grunt.registerTask('run', 'coffee');
#But this doesn't work..even though it should
grunt.initConfig({
coffee: {
foo: {
glob_to_multiple: {
options: {
bare: true
},
flatten: true,
expand: true,
cwd: 'client',
src: ['**/*.coffee'],
dest: 'public/js/',
ext: '.js'
}
}
}
})
grunt.registerTask('run', 'coffee:foo');
> grunt run
Running "coffee:app" (coffee) task
Done, without errors.
nothing happened
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment