Commit fcb09e78 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add path to config files

parent d7680d97
module.exports = function(grunt) {
require('google-closure-compiler').grunt(grunt);
var revision="unknown", defaultConfig, packageFile;
var path = grunt.option('src') || './sdk_configs';
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
......@@ -26,7 +27,7 @@ module.exports = function(grunt) {
});
grunt.registerTask('build_webword_init', 'Initialize build WebWord SDK.', function(){
defaultConfig = './sdk_configs/webword.json';
defaultConfig = path + '/webword.json';
packageFile = require(defaultConfig);
if (packageFile)
......@@ -36,7 +37,7 @@ module.exports = function(grunt) {
});
grunt.registerTask('build_nativeword_init', 'Initialize build NativeWord SDK.', function(){
defaultConfig = './sdk_configs/nativeword.json';
defaultConfig = path + '/nativeword.json';
packageFile = require(defaultConfig);
if (packageFile)
......@@ -46,7 +47,7 @@ module.exports = function(grunt) {
});
grunt.registerTask('build_webexcel_init', 'Initialize build WebExcel SDK.', function(){
defaultConfig = './sdk_configs/webexcel.json';
defaultConfig = path + '/webexcel.json';
packageFile = require(defaultConfig);
if (packageFile)
......@@ -56,7 +57,7 @@ module.exports = function(grunt) {
});
grunt.registerTask('build_webpowerpoint_init', 'Initialize build WebPowerPoint SDK.', function(){
defaultConfig = './sdk_configs/webpowerpoint.json';
defaultConfig = path + '/webpowerpoint.json';
packageFile = require(defaultConfig);
if (packageFile)
......
......@@ -169,15 +169,15 @@
"dst": "../../cell/sdk-all.js",
"externs": [
"../../common/Build/Externs.js",
"../../common/3rdparty/jquery/jquery.min.js",
"../../common/3rdparty/Underscore/underscore-min.js",
"../../common/3rdparty/Sockjs/sockjs.min.js",
"../../common/3rdparty/XRegExp/xregexp-all-min.js",
"../../common/3rdparty/jszip/jszip.min.js",
"../../common/3rdparty/jszip-utils/jszip-utils.min.js",
"../../common/3rdparty/jsrsasign/jsrsasign-latest-all-min.js",
"../../common/3rdparty/perfect-scrollbar/jquery.mousewheel.js",
"../../common/3rdparty/perfect-scrollbar/perfect-scrollbar.js"
"../../../web-apps/vendor/jquery/jquery.min.js",
"../../../web-apps/vendor/Underscore/underscore-min.js",
"../../../web-apps/vendor/Sockjs/sockjs.min.js",
"../../../web-apps/vendor/XRegExp/xregexp-all-min.js",
"../../../web-apps/vendor/jszip/jszip.min.js",
"../../../web-apps/vendor/jszip-utils/jszip-utils.min.js",
"../../../web-apps/vendor/jsrsasign/jsrsasign-latest-all-min.js",
"../../../web-apps/vendor/perfect-scrollbar/src/jquery.mousewheel.js",
"../../../web-apps/vendor/perfect-scrollbar/src/perfect-scrollbar.js"
],
"map": "sdk-all.js.map",
"log": "../../cell/Build/Log"
......@@ -194,70 +194,6 @@
"url": "http://localhost:8080/sdk/Excel"
}
},
"deploy": {
"copy": {
"common": {
"expand": true,
"cwd": "../../common/Charts/",
"src": "DrawingObjects.js",
"dest": "<%= pkg.menu_path %>/cell/model/"
},
"api": {
"expand": true,
"cwd": "../../cell/",
"src": [
"../common/apiBase.js",
"api.js",
"apiDefines.js",
"view/EventsController.js",
"view/HandlerList.js",
"../common/AdvancedOptions.js",
"model/CellInfo.js",
"model/CellComment.js",
"utils/utils.js",
"css/*.css"
],
"dest": "<%= pkg.menu_path %>/cell/"
},
"sdk": {
"expand": true,
"cwd": "../../cell/",
"src": "sdk-all.js",
"dest": "<%= pkg.menu_path %>/cell/"
},
"doc": {
"expand": true,
"cwd": "../../cell/",
"src": "document/**",
"dest": "<%= pkg.menu_path %>/cell/"
},
"log": {
"expand": true,
"cwd": "../../cell/",
"src": "sdk-all.js.map",
"dest": "<%= pkg.menu_path %>/cell/"
},
"samlpe": {
"expand": true,
"cwd": "../../cell/",
"src": "Spreadsheet.html.deploy",
"dest": "<%= pkg.menu_path %>/cell/"
},
"samlpe_files": {
"expand": true,
"cwd": "../../cell/",
"src": [
"jquery/jquery-1.7.1.js",
"css/nav-buttons.png",
"css/gradient.png"
],
"dest": "<%= pkg.menu_path %>/cell/"
}
},
"store_log": {
"dst": "../../cell/Build/Log"
}
},
"tasks": {
"build": [
"increment_build",
......
......@@ -152,13 +152,13 @@
"dst": "../../slide/sdk-all.js",
"externs": [
"../../common/Build/Externs.js",
"../../common/3rdparty/jquery/jquery.min.js",
"../../common/3rdparty/Underscore/underscore-min.js",
"../../common/3rdparty/Sockjs/sockjs.min.js",
"../../common/3rdparty/XRegExp/xregexp-all-min.js",
"../../common/3rdparty/jszip/jszip.min.js",
"../../common/3rdparty/jszip-utils/jszip-utils.min.js",
"../../common/3rdparty/jsrsasign/jsrsasign-latest-all-min.js"
"../../../web-apps/vendor/jquery/jquery.min.js",
"../../../web-apps/vendor/Underscore/underscore-min.js",
"../../../web-apps/vendor/Sockjs/sockjs.min.js",
"../../../web-apps/vendor/XRegExp/xregexp-all-min.js",
"../../../web-apps/vendor/jszip/jszip.min.js",
"../../../web-apps/vendor/jszip-utils/jszip-utils.min.js",
"../../../web-apps/vendor/jsrsasign/jsrsasign-latest-all-min.js"
],
"map": "sdk-all.js.map",
"log": "../../slide/Build/Log"
......@@ -176,56 +176,6 @@
"url": "http://localhost:8080/sdk/PowerPoint"
}
},
"deploy": {
"copy": {
"api": {
"expand": true,
"cwd": "../../slide/",
"src": [
"../common/apiBase.js",
"api.js",
"apiCommon.js",
"apiDefines.js"
],
"dest": "<%= pkg.menu_path %>/slide/"
},
"sdk": {
"expand": true,
"cwd": "../../slide/",
"src": [
"sdk-all.js",
"themes/theme*/**"
],
"dest": "<%= pkg.menu_path %>/slide/"
},
"doc": {
"expand": true,
"cwd": "../../slide/",
"src": "document/**",
"dest": "<%= pkg.menu_path %>/slide/"
},
"log": {
"expand": true,
"cwd": "../../slide/",
"flatten": true,
"src": [
"sdk-all.js.map",
"Build/Log/property.map",
"Build/Log/variable.map"
],
"dest": "<%= pkg.menu_path %>/slide/"
},
"sample": {
"expand": true,
"cwd": "../../slide/",
"src": "index.html.deploy",
"dest": "<%= pkg.menu_path %>/slide/"
}
},
"store_log": {
"dst": "../../slide/Build/Log"
}
},
"tasks": {
"build": [
"increment_build",
......
......@@ -157,13 +157,13 @@
"dst": "../../word/sdk-all.js",
"externs": [
"../../common/Build/Externs.js",
"../../common/3rdparty/jquery/jquery.min.js",
"../../common/3rdparty/Underscore/underscore-min.js",
"../../common/3rdparty/Sockjs/sockjs.min.js",
"../../common/3rdparty/XRegExp/xregexp-all-min.js",
"../../common/3rdparty/jszip/jszip.min.js",
"../../common/3rdparty/jszip-utils/jszip-utils.min.js",
"../../common/3rdparty/jsrsasign/jsrsasign-latest-all-min.js"
"../../../web-apps/vendor/jquery/jquery.min.js",
"../../../web-apps/vendor/Underscore/underscore-min.js",
"../../../web-apps/vendor/Sockjs/sockjs.min.js",
"../../../web-apps/vendor/XRegExp/xregexp-all-min.js",
"../../../web-apps/vendor/jszip/jszip.min.js",
"../../../web-apps/vendor/jszip-utils/jszip-utils.min.js",
"../../../web-apps/vendor/jsrsasign/jsrsasign-latest-all-min.js"
],
"map": "sdk-all.js.map",
"log": "../../word/Build/Log"
......@@ -180,59 +180,6 @@
"url": "http://localhost:8080/sdk/Word"
}
},
"deploy": {
"copy": {
"api": {
"expand": true,
"cwd": "../../word/",
"src": [
"../common/apiBase.js",
"api.js",
"apiCommon.js",
"apiDefines.js"
],
"dest": "<%= pkg.menu_path %>/word/"
},
"sdk": {
"expand": true,
"cwd": "../../word/",
"src": "sdk-all.js",
"dest": "<%= pkg.menu_path %>/word/"
},
"doc": {
"expand": true,
"cwd": "../../word/",
"src": "document/**",
"dest": "<%= pkg.menu_path %>/word/"
},
"apisettings": {
"expand": true,
"cwd": "../../common/",
"src": [
"spellcheckapisettings.js",
"commonDefines.js",
"apiCommon.js",
"downloaderfiles.js",
"Images/*.cur",
"Native/jquery_native.js",
"Native/native.js"
],
"dest": "<%= pkg.menu_path %>/common/"
},
"log": {
"expand": true,
"cwd": "../../word/",
"src": [
"Build/Log/property.map",
"Build/Log/variable.map"
],
"dest": "<%= pkg.menu_path %>/word/"
}
},
"store_log": {
"dst": "../../word/Build/Log"
}
},
"tasks": {
"build": [
"increment_build",
......
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