Commit 8bc38736 authored by Alexey.Golubev's avatar Alexey.Golubev

Build sdk.js in application folder

parent a1a60033
......@@ -91,7 +91,10 @@ module.exports = function(grunt) {
grunt.registerTask('build_all', ['build_webword_init', 'build_sdk', 'build_webexcel_init', 'build_sdk', 'build_webpowerpoint_init', 'build_sdk']);
grunt.registerTask('concat_sdk_init', function() {
var sdkTmp = 'sdk-tmp.js', sdkAllTmp = 'sdk-all-tmp.js', sdkAllMinTmp = 'sdk-all-min-tmp.js';
var sdkDstFolder = packageFile['compile']['sdk']['dst'];
var sdkTmp = sdkDstFolder + '/sdk-tmp.js';
var sdkAllTmp = sdkDstFolder + '/sdk-all-tmp.js';
var sdkAllMinTmp = sdkDstFolder + '/sdk-all-min-tmp.js';
var srcFilesMin = packageFile['compile']['sdk']['min'];
var srcFilesAll = packageFile['compile']['sdk']['common'];
var sdkOpt = {};
......@@ -147,18 +150,25 @@ module.exports = function(grunt) {
dest: sdkTmp
}
},
clean: [
sdkAllMinTmp,
sdkAllTmp
]
clean: {
tmp: {
options: {
force: true
},
src: [
sdkAllMinTmp,
sdkAllTmp
]
}
}
});
});
grunt.registerTask('compile_sdk_init', function() {
var sdkTmp = 'sdk-tmp.js';
var splitLine = '';
var tmp_sdk_path = 'sdk-js-tmp.js';
var sdkDstFolder = packageFile['compile']['sdk']['dst'];
var sdkTmp = sdkDstFolder + '/sdk-tmp.js';
var tmp_sdk_path = sdkDstFolder + '/sdk-js-tmp.js';
var sdkAllMinDst = sdkDstFolder + '/sdk-all-min.js';
var sdkAllDst = sdkDstFolder + '/sdk-all.js';
var sdkAllCashe = sdkDstFolder + '/*.cache'
......
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