Commit da5ae5ca authored by Alexey Golubev's avatar Alexey Golubev

Delete *.cache files on build sdk-all.js

parent 8a9b92f1
......@@ -161,6 +161,7 @@ module.exports = function(grunt) {
var sdkDstFolder = packageFile['compile']['sdk']['dst'];
var sdkAllMinDst = sdkDstFolder + '/sdk-all-min.js';
var sdkAllDst = sdkDstFolder + '/sdk-all.js';
var sdkAllCashe = sdkDstFolder + '/*.cache'
var sdkOpt = {
compilation_level: level,
warning_level: 'QUIET',
......@@ -203,10 +204,18 @@ module.exports = function(grunt) {
dest: sdkAllDst
}
},
clean: [
sdkTmp,
tmp_sdk_path
],
clean: {
tmp: {
options: {
force: true
},
src: [
sdkTmp,
tmp_sdk_path,
sdkAllCashe
]
}
},
replace: {
version: {
options: {
......@@ -226,4 +235,4 @@ module.exports = function(grunt) {
grunt.registerTask('concat_sdk', ['concat_sdk_init', 'concat', 'clean']);
grunt.registerTask('compile_sdk', ['concat_sdk', 'compile_sdk_init', 'closure-compiler', 'splitfile', 'concat', 'replace', 'clean']);
grunt.registerTask('default', ['build_all']);
};
\ No newline at end of file
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment