Changeset 533 for Dev/trunk/Gruntfile.js


Ignore:
Timestamp:
06/08/15 20:05:47 (10 years ago)
Author:
hendrikvanantwerpen
Message:

Add watch command to ease client development.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/Gruntfile.js

    r531 r533  
    2727                     //,'amd-check' // too smart about plugins, r.js can't find them
    2828                       ]);
     29    grunt.registerTask('watch-client',
     30                       "Watch client source and recompile when things change.",
     31                       ['watch:client']);
    2932    grunt.registerTask('run',
    3033                       "Compile and start the server locally with foreman.",
     
    287290                                         banner: '/* This JS file is generated, All edits will be lost on recompile. */'},
    288291                               files: { src: dest(coffeeMap) }}
     292        },
     293        watch: {
     294            client: {
     295                files: [ srcDir+'client/qed-client/**' ],
     296                tasks: [ 'compile' ]
     297            }
    289298        }
    290299    });
     
    300309    grunt.loadNpmTasks('grunt-contrib-jshint');
    301310    grunt.loadNpmTasks('grunt-contrib-less');
     311    grunt.loadNpmTasks('grunt-contrib-watch');
    302312    grunt.loadNpmTasks('grunt-dojo');
    303313    grunt.loadNpmTasks('grunt-git-deploy');
Note: See TracChangeset for help on using the changeset viewer.