Skip to content

Instantly share code, notes, and snippets.

@whisher
Created June 3, 2014 14:02
Show Gist options
  • Save whisher/339bc916935ea77a66ad to your computer and use it in GitHub Desktop.
Save whisher/339bc916935ea77a66ad to your computer and use it in GitHub Desktop.
npm install grunt-contrib-copy --save-dev
```javascript
lib: 'public/system/lib',
copy: {
bootstrapFonts: {
cwd: '<%= lib %>/bootstrap/fonts/',
src: '*',
dest: 'public/build/fonts',
expand: true
},
awesomeFonts: {
cwd: '<%= lib %>/font-awesome/fonts/',
src: '*',
dest: 'public/build/fonts',
expand: true
}
},
//Default task(s).
if (process.env.NODE_ENV === 'production') {
grunt.registerTask('default', ['clean','cssmin', 'uglify', 'copy', 'concurrent']);
} else {
grunt.registerTask('default', ['clean','jshint', 'csslint', 'concurrent']);
}
//Test task.
grunt.registerTask('test', ['env:test', 'mochaTest', 'karma:unit']);
// For Heroku users only.
// Docs: https://github.com/linnovate/mean/wiki/Deploying-on-Heroku
grunt.registerTask('heroku:production', ['cssmin', 'uglify', 'copy']);
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment