Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = function(grunt) {
- grunt.initConfig({
- pkg: grunt.file.readJSON('package.json'),
- copy: {
- main: {
- files: [
- {expand: true, src: ['src/images/**'], dest: 'stage/images'}
- ]
- }
- },
- stylus: {
- compile: {
- expand: true,
- cwd: 'src/styles/',
- src: '**/*.styl',
- dest: 'stage/styles/',
- ext: '.css',
- }
- },
- coffee: {
- compile: {
- expand: true,
- cwd: 'src/scripts/',
- src: '**/*.coffee',
- dest: 'stage/scripts/',
- ext: '.js',
- }
- },
- jade: {
- compile: {
- expand: true,
- cwd: 'src/pages/',
- src: '*.jade',
- dest: 'stage/pages/',
- ext: '.html',
- }
- },
- watch: {
- filed: ['src/**/*'],
- tasks: ['stylus:compile', 'coffee:compile', 'jade:compile'],
- }
- });
- grunt.loadNpmTasks('grunt-contrib-watch');
- grunt.loadNpmTasks('grunt-contrib-coffee');
- grunt.loadNpmTasks('grunt-contrib-copy');
- grunt.loadNpmTasks('grunt-contrib-jade');
- grunt.loadNpmTasks('grunt-contrib-stylus');
- grunt.registerTask('default', ['stylus', 'coffee', 'jade']);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement