Created
June 3, 2014 14:02
-
-
Save whisher/339bc916935ea77a66ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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