Advertisement
Guest User

Untitled

a guest
Jul 14th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. module.exports = function(grunt) {
  2. grunt.initConfig({
  3. pkg: grunt.file.readJSON('package.json'),
  4. copy: {
  5. main: {
  6. files: [
  7. {expand: true, src: ['src/images/**'], dest: 'stage/images'}
  8. ]
  9. }
  10. },
  11. stylus: {
  12. compile: {
  13. expand: true,
  14. cwd: 'src/styles/',
  15. src: '**/*.styl',
  16. dest: 'stage/styles/',
  17. ext: '.css',
  18. }
  19. },
  20. coffee: {
  21. compile: {
  22. expand: true,
  23. cwd: 'src/scripts/',
  24. src: '**/*.coffee',
  25. dest: 'stage/scripts/',
  26. ext: '.js',
  27. }
  28. },
  29. jade: {
  30. compile: {
  31. expand: true,
  32. cwd: 'src/pages/',
  33. src: '*.jade',
  34. dest: 'stage/pages/',
  35. ext: '.html',
  36. }
  37. },
  38. watch: {
  39. filed: ['src/**/*'],
  40. tasks: ['stylus:compile', 'coffee:compile', 'jade:compile'],
  41. }
  42. });
  43.  
  44. grunt.loadNpmTasks('grunt-contrib-watch');
  45. grunt.loadNpmTasks('grunt-contrib-coffee');
  46. grunt.loadNpmTasks('grunt-contrib-copy');
  47. grunt.loadNpmTasks('grunt-contrib-jade');
  48. grunt.loadNpmTasks('grunt-contrib-stylus');
  49.  
  50. grunt.registerTask('default', ['stylus', 'coffee', 'jade']);
  51.  
  52. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement