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)
......
......@@ -23,7 +23,7 @@
"../../common/Charts/DrawingArea.js",
"../../common/Charts/DrawingObjects.js",
"../../common/Charts/ChartsDrawer.js",
"../../common/Charts/3DTransformation.js",
"../../common/Charts/3DTransformation.js",
"../../common/FontsFreeType/font_engine.js",
"../../common/FontsFreeType/FontFile.js",
"../../common/FontsFreeType/FontManager.js",
......@@ -44,7 +44,7 @@
"../../cell/model/ConditionalFormatting.js",
"../../cell/model/FormulaObjects/parserFormula.js",
"../../cell/model/FormulaObjects/_xlfnFunctions.js",
"../../cell/model/FormulaObjects/dateandtimeFunctions.js",
"../../cell/model/FormulaObjects/dateandtimeFunctions.js",
"../../cell/model/FormulaObjects/engineeringFunctions.js",
"../../cell/model/FormulaObjects/cubeFunctions.js",
"../../cell/model/FormulaObjects/databaseFunctions.js",
......@@ -133,10 +133,10 @@
"../../word/Editor/Document.js",
"../../word/Editor/DocumentContent.js",
"../../word/Editor/Table.js",
"../../word/Editor/Table/TableRecalculate.js",
"../../word/Editor/Table/TableDraw.js",
"../../word/Editor/Table/TableRow.js",
"../../word/Editor/Table/TableCell.js",
"../../word/Editor/Table/TableRecalculate.js",
"../../word/Editor/Table/TableDraw.js",
"../../word/Editor/Table/TableRow.js",
"../../word/Editor/Table/TableCell.js",
"../../word/Editor/Serialize2.js",
"../../word/Editor/FontClassification.js",
"../../word/Editor/Spelling.js",
......@@ -155,29 +155,29 @@
"../../word/Math/operators.js",
"../../word/Math/accent.js",
"../../word/Math/borderBox.js",
"../../common/CollaborativeEditingBase.js",
"../../common/CollaborativeEditingBase.js",
"../../cell/model/DrawingObjects/GlobalCounters.js",
"../../word/apiCommon.js",
"../../cell/apiCommonExport.js",
"../../common/apiBase.js",
"../../cell/api.js",
"../../common/Private/license.js",
"../../cell/Private/comments.js",
"../../common/Local/common.js",
"../../cell/Local/api.js"
"../../common/Private/license.js",
"../../cell/Private/comments.js",
"../../common/Local/common.js",
"../../cell/Local/api.js"
],
"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",
......
......@@ -38,17 +38,17 @@
"../../word/Editor/Styles.js",
"../../word/Editor/Numbering.js",
"../../word/Drawing/Metafile.js",
"../../common/CollaborativeEditingBase.js",
"../../common/CollaborativeEditingBase.js",
"../../slide/Editor/CollaborativeEditing.js",
"../../word/Drawing/GraphicsEvents.js",
"../../word/Drawing/WorkEvents.js",
"../../common/Controls.js",
"../../word/Drawing/Rulers.js",
"../../word/Editor/Table.js",
"../../word/Editor/Table/TableRecalculate.js",
"../../word/Editor/Table/TableDraw.js",
"../../word/Editor/Table/TableRow.js",
"../../word/Editor/Table/TableCell.js",
"../../word/Editor/Table/TableRecalculate.js",
"../../word/Editor/Table/TableDraw.js",
"../../word/Editor/Table/TableRow.js",
"../../word/Editor/Table/TableCell.js",
"../../word/Editor/Common.js",
"../../word/Editor/Sections.js",
"../../common/scroll.js",
......@@ -134,8 +134,8 @@
"../../slide/Editor/Format/GraphicFrame.js",
"../../common/apiBase.js",
"../../slide/api.js",
"../../common/Private/license.js",
"../../slide/Private/comments.js",
"../../common/Private/license.js",
"../../slide/Private/comments.js",
"../../slide/apiCommon.js",
"../../word/apiCommon.js",
"../../slide/apiExport.js",
......@@ -146,19 +146,19 @@
"../../cell/model/CellInfo.js",
"../../common/AdvancedOptions.js",
"../../common/Private/Locks.js",
"../../common/Local/common.js",
"../../slide/Local/api.js"
"../../common/Local/common.js",
"../../slide/Local/api.js"
],
"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",
......
......@@ -37,7 +37,7 @@
"../../word/Drawing/translations.js",
"../../common/Charts/charts.js",
"../../common/Charts/ChartsDrawer.js",
"../../common/Charts/3DTransformation.js",
"../../common/Charts/3DTransformation.js",
"../../common/Charts/DrawingArea.js",
"../../common/Charts/DrawingObjects.js",
"../../common/NumFormat.js",
......@@ -94,10 +94,10 @@
"../../word/Editor/Common.js",
"../../word/Editor/DocumentContent.js",
"../../word/Editor/Table.js",
"../../word/Editor/Table/TableRecalculate.js",
"../../word/Editor/Table/TableDraw.js",
"../../word/Editor/Table/TableRow.js",
"../../word/Editor/Table/TableCell.js",
"../../word/Editor/Table/TableRecalculate.js",
"../../word/Editor/Table/TableDraw.js",
"../../word/Editor/Table/TableRow.js",
"../../word/Editor/Table/TableCell.js",
"../../word/Editor/Serialize2.js",
"../../word/Editor/Search.js",
"../../word/Editor/FontClassification.js",
......@@ -107,7 +107,7 @@
"../../word/Drawing/HatchPattern.js",
"../../word/Drawing/ShapeDrawer.js",
"../../word/Drawing/Metafile.js",
"../../common/CollaborativeEditingBase.js",
"../../common/CollaborativeEditingBase.js",
"../../word/Drawing/DrawingDocument.js",
"../../word/Drawing/GraphicsEvents.js",
"../../common/Scrolls/iscroll.js",
......@@ -121,9 +121,9 @@
"../../word/apiDefines.js",
"../../common/apiBase.js",
"../../word/api.js",
"../../common/Private/license.js",
"../../common/Private/versionHistory.js",
"../../word/Private/comments.js",
"../../common/Private/license.js",
"../../common/Private/versionHistory.js",
"../../word/Private/comments.js",
"../../word/Private/StyleManager.js",
"../../word/Private/MailMerge.js",
"../../word/Private/TrackRevisions.js",
......@@ -151,19 +151,19 @@
"../../cell/model/CellInfo.js",
"../../common/AdvancedOptions.js",
"../../common/Private/Locks.js",
"../../common/Local/common.js",
"../../word/Local/api.js"
"../../common/Local/common.js",
"../../word/Local/api.js"
],
"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