|
@@ -1,4 +1,5 @@
|
|
|
module.exports = function(grunt) {
|
|
module.exports = function(grunt) {
|
|
|
|
|
+ "use strict";
|
|
|
|
|
|
|
|
// Concat and Minify the src directory into dist
|
|
// Concat and Minify the src directory into dist
|
|
|
grunt.registerTask('build', [
|
|
grunt.registerTask('build', [
|
|
@@ -32,6 +33,7 @@ module.exports = function(grunt) {
|
|
|
src: '**/*',
|
|
src: '**/*',
|
|
|
dest: '<%= tempDir %>/public/',
|
|
dest: '<%= tempDir %>/public/',
|
|
|
});
|
|
});
|
|
|
|
|
+ grunt.config('clean.dest_dir', ['<%= destDir %>']);
|
|
|
grunt.config('copy.backend_bin', {
|
|
grunt.config('copy.backend_bin', {
|
|
|
cwd: '../bin',
|
|
cwd: '../bin',
|
|
|
expand: true,
|
|
expand: true,
|
|
@@ -46,6 +48,7 @@ module.exports = function(grunt) {
|
|
|
dest: '<%= tempDir %>'
|
|
dest: '<%= tempDir %>'
|
|
|
});
|
|
});
|
|
|
grunt.task.run('copy:dist_to_tmp');
|
|
grunt.task.run('copy:dist_to_tmp');
|
|
|
|
|
+ grunt.task.run('clean:dest_dir');
|
|
|
grunt.task.run('copy:backend_bin');
|
|
grunt.task.run('copy:backend_bin');
|
|
|
grunt.task.run('copy:backend_conf');
|
|
grunt.task.run('copy:backend_conf');
|
|
|
}
|
|
}
|