Commit 7d62b4c8 authored by Alexey.Golubev's avatar Alexey.Golubev Committed by Alexander.Trofimov

Рефакторинг офиса.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@46982 954022d7-b5bf-4e40-9824-e11837661b57
parent 670add6a
This diff is collapsed.
@echo off
cd /D %~dp0
@echo on
call grunt.cmd build_all
pause
\ No newline at end of file
module.exports = function(grunt) {
var defaultConfig, packageFile, toolsConfig, toolsFile;
grunt.loadNpmTasks('grunt-contrib');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-closure-tools');
grunt.loadNpmTasks('grunt-replace');
grunt.registerTask('setup_tools', 'Initialize tools.', function(){
toolsConfig = 'tools.json';
toolsFile = require('./' + toolsConfig);
if (toolsFile)
grunt.log.ok('Tools config loaded successfully'.green);
else
grunt.log.error().writeln('Could not load config file'.red);
});
grunt.registerTask('cleanup_deploy_folder_init', 'Initialize tools.', function(){
grunt.initConfig({
clean: [
toolsFile['menu_path']
]
});
});
grunt.registerTask('cleanup_deploy_folder', 'cleanup_deploy_folder_init clean');
grunt.registerTask('build_webword_init', 'Initialize build WebWord SDK.', function(){
defaultConfig = './sdk_configs/webword.json';
packageFile = require(defaultConfig);
if (packageFile)
grunt.log.ok('WebWord config loaded successfully'.green);
else
grunt.log.error().writeln('Could not load config file'.red);
});
grunt.registerTask('build_webword_server_init', 'Initialize build WebWord SDK.', function(){
defaultConfig = './sdk_configs/webword_server.json';
packageFile = require(defaultConfig);
if (packageFile)
grunt.log.ok('WebWord_server config loaded successfully'.green);
else
grunt.log.error().writeln('Could not load config file'.red);
});
grunt.registerTask('build_webexcel_init', 'Initialize build WebExcel SDK.', function(){
defaultConfig = './sdk_configs/webexcel.json';
packageFile = require(defaultConfig);
if (packageFile)
grunt.log.ok('WebExcel config loaded successfully'.green);
else
grunt.log.error().writeln('Could not load config file'.red);
});
grunt.registerTask('build_webpowerpoint_init', 'Initialize build WebPowerPoint SDK.', function(){
defaultConfig = './sdk_configs/webpowerpoint.json';
packageFile = require(defaultConfig);
if (packageFile)
grunt.log.ok('WebPowerPoint config loaded successfully'.green);
else
grunt.log.error().writeln('Could not load config file'.red);
});
grunt.registerTask('build_sdk', 'Build sdk.', function(){
if (packageFile) {
if (packageFile['tasks']['build'])
grunt.task.run(packageFile['tasks']['build']);
else
grunt.log.error().writeln('Not found "build" task in configure'.red);
} else {
grunt.log.error().writeln('Is not load configure file.'.red);
}
});
grunt.registerTask('build_webword', 'setup_tools build_webword_init build_sdk');
grunt.registerTask('build_webword_server', 'setup_tools build_webword_server_init build_sdk');
grunt.registerTask('build_webexcel', 'setup_tools build_webexcel_init build_sdk');
grunt.registerTask('build_webpowerpoint', 'setup_tools build_webpowerpoint_init build_sdk');
grunt.registerTask('build_all', 'setup_tools build_webword_init build_sdk build_webexcel_init build_sdk build_webpowerpoint_init build_sdk');
grunt.registerTask('cleanup_and_build_all', 'setup_tools cleanup_deploy_folder build_webword_init build_sdk build_webexcel_init build_sdk build_webpowerpoint_init build_sdk');
grunt.registerTask('up_sdk_src_init', 'Update SDK source', function() {
grunt.initConfig({
exec: {
update_sources: {
command: 'svn.exe up -q --non-interactive -r ' + packageFile['update_src']['revision'] + ' ' + packageFile['update_src']['src'],
stdout: true
},
update_logs: {
command: 'svn.exe up -q --non-interactive -r HEAD ' + packageFile['compile']['sdk']['log'],
stdout: true
}
}
});
});
grunt.registerTask('update_sources_webword', 'build_webword_init up_sdk_src_init exec');
grunt.registerTask('update_sources_webexcel', 'build_webexcel_init up_sdk_src_init exec');
grunt.registerTask('update_sources_webpowerpoint', 'build_webpowerpoint_init up_sdk_src_init exec');
grunt.registerTask('update_sources', 'update_sources_webword update_sources_webexcel update_sources_webpowerpoint');
grunt.registerTask('commit_logs_init', function() {
var commit_message ='\"Version: '+ packageFile['info']['version'] +
' (build:' + packageFile['info']['build'] + ')' +
' from svn rev: ' + packageFile['update_src']['revision'] + '\"';
grunt.initConfig({
exec: {
store_log: {
command: 'svn.exe commit ' + packageFile['deploy']['store_log']['dst'] + ' -q -m ' + commit_message,
stdout: false
}
}
});
});
grunt.registerTask('commit_logs_webword', 'build_webword_init commit_logs_init exec');
grunt.registerTask('commit_logs_webexcel', 'build_webexcel_init commit_logs_init exec');
grunt.registerTask('commit_logs_webpowerpoint', 'build_webpowerpoint_init commit_logs_init exec');
grunt.registerTask('commit_logs', 'commit_logs_webword commit_logs_webexcel commit_logs_webpowerpoint');
grunt.registerTask('increment_build', function() {
var pkg = grunt.file.readJSON(defaultConfig);
pkg.info.build = parseInt(pkg.info.build) + 1;
if(undefined !== process.env['BUILD_NUMBER']) {
grunt.log.ok('Use Jenkins build number as sdk-all build number!'.yellow);
packageFile['info']['build'] = parseInt(process.env['BUILD_NUMBER']);
pkg.info.build = packageFile['info']['build'];
}
grunt.file.write(defaultConfig, JSON.stringify(pkg, null, 4));
});
grunt.registerTask('concat_js_api_init', 'Concatinate JS API', function() {
grunt.initConfig({
concat: packageFile['concat_api']
});
});
grunt.registerTask('concat_js_api', 'concat_js_api_init concat');
grunt.registerTask('extract_js_api_init', 'Extract JS API', function(){
grunt.initConfig({
exec: {
api: {
command: 'bin\\ExtractJSApi.exe ' + packageFile['extract_api']['src'] + ' ' + packageFile['extract_api']['dst'],
stdout: false
}
}
});
});
grunt.registerTask('extract_js_api', 'extract_js_api_init exec');
grunt.registerTask('create_map_file', function() {
// , .
var map_file_path = packageFile['compile']['sdk']['dst'] + '.map';
var map_record = '//@ sourceMappingURL=' + packageFile['compile']['source_map']['url'] + '/' + map_file_path;
var map_record_file_path = map_file_path + '.tmp';
grunt.file.write(map_record_file_path, map_record);
});
grunt.registerTask('compile_sdk_init', function() {
var map_file_path = packageFile['compile']['sdk']['dst'] + '.map';
var map_record_file_path = map_file_path + '.tmp';
var concat_res = {};
concat_res[packageFile['compile']['sdk']['dst']] = [
packageFile['compile']['sdk']['dst'],
packageFile['compile']['defines']['dst'],
map_record_file_path ];
grunt.initConfig({
closureCompiler: {
sdk: {
closureCompiler: toolsFile['closure_compiler'],
js: packageFile['compile']['sdk']['src'],
output_file: packageFile['compile']['sdk']['dst'],
options: {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
externs: packageFile['compile']['sdk']['externs'],
define: packageFile['compile']['sdk']['define'],
warning_level: 'QUIET',
variable_map_output_file: packageFile['compile']['sdk']['log'] + '/variable.map',
property_map_output_file: packageFile['compile']['sdk']['log'] + '/property.map',
create_source_map: map_file_path,
source_map_format: "V3"
}
},
defines: {
closureCompiler: toolsFile['closure_compiler'],
js: packageFile['compile']['defines']['src'],
output_file: packageFile['compile']['defines']['dst'],
options: {
compilation_level: 'SIMPLE_OPTIMIZATIONS',
warning_level: 'QUIET'
}
}
},
create_map_file: {},
concat: concat_res,
clean: [
packageFile['compile']['defines']['dst'],
map_record_file_path
],
pkg: '<json:' + defaultConfig + '>',
replace: {
version: {
options: {
variables: {
Version: packageFile['info']['version'],
Build: packageFile['info']['build'].toString()
}
},
files: {
'<%= pkg.compile.sdk.dst %>': '<%= pkg.compile.sdk.dst %>'
}
}
}
});
});
grunt.registerTask('compile_sdk', 'compile_sdk_init closureCompiler create_map_file concat replace clean');
grunt.registerTask('deploy_sdk_init', function() {
grunt.initConfig({
pkg: '<json:' + toolsConfig + '>',
copy: packageFile['deploy']['copy']
});
});
grunt.registerTask('deploy_sdk', 'deploy_sdk_init copy');
grunt.registerTask('default', 'update_sources build_all commit_logs');
};
\ No newline at end of file
@echo off
echo Installation grunt and grunt-contrib
call npm install -g grunt
call npm install grunt-contrib
call npm install grunt-closure-tools
call npm install grunt-exec
call npm install grunt-replace
{
"info": {
"version": "1.1",
"build": 145
},
"update_src": {
"revision": "HEAD",
"src": "../OfficeWebCommon ../OfficeWebWord ../OfficeWebExcel ../OfficeWebPowerPoint"
},
"extract_api": {
"src": "../OfficeWebWord/WebWord/apiCommon.js",
"dst": "../OfficeWebExcel/.build/Log/apiCommonExport.js"
},
"compile": {
"sdk": {
"src": [
"../OfficeWebCommon/Build/License.js",
"../OfficeWebCommon/docscoapisettings.js",
"../OfficeWebCommon/docscoapicommon.js",
"../OfficeWebCommon/docscoapi.js",
"../OfficeWebCommon/downloaderfiles.js",
"../OfficeWebCommon/commonDefines.js",
"../OfficeWebCommon/editorscommon.js",
"../OfficeWebCommon/NumFormat.js",
"../OfficeWebCommon/Charts/charts.js",
"../OfficeWebCommon/Charts/DrawingObjects.js",
"../OfficeWebWord/FontsFreeType/font_engine.js",
"../OfficeWebWord/FontsFreeType/FontFile.js",
"../OfficeWebWord/FontsFreeType/FontManager.js",
"../OfficeWebWord/WebWord/Drawing/Externals.js",
"../OfficeWebWord/WebWord/Drawing/Graphics.js",
"../OfficeWebWord/WebWord/Drawing/Metafile.js",
"../OfficeWebWord/WebWord/Drawing/AllFonts.js",
"../OfficeWebWord/WebWord/Drawing/GlobalLoaders.js",
"../OfficeWebWord/FontsFreeType/FontExport.js",
"../OfficeWebExcel/offlinedocs/test-workbook9/Editor.js",
"../OfficeWebExcel/offlinedocs/empty-workbook.js",
"../OfficeWebExcel/utils/utils.js",
"../OfficeWebExcel/model/clipboard.js",
"../OfficeWebExcel/model/autofilters.js",
"../OfficeWebExcel/graphics/DrawingContext.js",
"../OfficeWebExcel/graphics/pdfprinter.js",
"../OfficeWebExcel/model/CollaborativeEditing.js",
"../OfficeWebExcel/model/parserFormula.js",
"../OfficeWebExcel/model/Serialize.js",
"../OfficeWebExcel/model/WorkbookElems.js",
"../OfficeWebExcel/model/Workbook.js",
"../OfficeWebExcel/model/CellInfo.js",
"../OfficeWebExcel/model/AdvancedOptions.js",
"../OfficeWebExcel/model/History.js",
"../OfficeWebExcel/model/UndoRedo.js",
"../OfficeWebExcel/model/CellComment.js",
"../OfficeWebExcel/view/StringRender.js",
"../OfficeWebExcel/view/CellTextRender.js",
"../OfficeWebExcel/view/CellEditorView.js",
"../OfficeWebExcel/view/WorksheetView.js",
"../OfficeWebExcel/view/HandlerList.js",
"../OfficeWebExcel/view/EventsController.js",
"../OfficeWebExcel/view/WorkbookView.js",
"../OfficeWebExcel/view/scroll.js",
"../OfficeWebWord/WebWord/Editor/SerializeCommon.js",
"../OfficeWebWord/WebWord/Editor/GraphicObjects/ObjectTypes/Format.js",
"../OfficeWebCommon/Shapes/Serialize.js",
"../OfficeWebCommon/Shapes/SerializeWriter.js",
"../OfficeWebCommon/SerializeCommonWordExcel.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.common.core.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.common.annotate.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.common.context.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.common.effects.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.common.key.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.common.resizing.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.common.tooltips.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.common.zoom.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.bar.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.bipolar.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.gantt.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.hbar.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.line.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.pie.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.radar.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.rose.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.rscatter.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.scatter.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.waterfall.js",
"../OfficeWebCommon/Charts/libraries/OfficeExcel.chartProperties.js",
"../OfficeWebCommon/Charts/libraries/hsv.js",
"../OfficeWebCommon/Charts/libraries/rgbcolor.js",
"../OfficeWebWord/WebWord/apiCommon.js",
"../OfficeWebExcel/.build/Log/apiCommonExport.js",
"../OfficeWebExcel/api.js",
"../OfficeWebExcel/apiDefines.js"
],
"dst": "../OfficeWebExcel/sdk-all.js",
"externs": [
"../OfficeWebCommon/Build/Externs.js",
"../OfficeWebExcel/jquery/jquery-1.7.1.js",
"../OfficeWebExcel/jquery/jquery.mousewheel-3.0.6.js",
"../OfficeWebCommon/3rdparty/XRegExp/xregexp-all-min.js"
],
"map": "sdk-all.js.map",
"log": "../OfficeWebExcel/.build/Log",
"define": [
"ASC_DOCS_API_LOAD_COAUTHORING_SETTINGS=false",
"ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT=true"
]
},
"defines": {
"src": [
"../OfficeWebCommon/Shapes/EditorSettings.js",
"../OfficeWebCommon/commonDefines.js",
"../OfficeWebExcel/apiDefines.js"
],
"dst": "apiDefines.min.js"
},
"source_map": {
"url": "http://localhost:8080/sdk/OfficeWebExcel"
}
},
"deploy": {
"copy": {
"common": {
"files": {
"<%= pkg.menu_path %>/OfficeWebExcel/model/": [
"../OfficeWebCommon/Charts/DrawingObjects.js"
]
}
},
"api": {
"files": {
"<%= pkg.menu_path %>/OfficeWebExcel/": [
"../OfficeWebExcel/api.js",
"../OfficeWebExcel/apiDefines.js",
"../OfficeWebExcel/view/EventsController.js",
"../OfficeWebExcel/view/HandlerList.js",
"../OfficeWebExcel/model/AdvancedOptions.js",
"../OfficeWebExcel/model/CellInfo.js",
"../OfficeWebExcel/model/CellComment.js",
"../OfficeWebExcel/utils/utils.js",
"../OfficeWebExcel/css/*.css"
]
}
},
"sdk": {
"files": {
"<%= pkg.menu_path %>/OfficeWebExcel/": "../OfficeWebExcel/sdk-all.js"
}
},
"doc": {
"files": {
"<%= pkg.menu_path %>/OfficeWebExcel/offlinedocs/test-workbook9/": "../OfficeWebExcel/offlinedocs/test-workbook9/**"
}
},
"log": {
"files": {
"<%= pkg.menu_path %>/OfficeWebExcel/": "../OfficeWebExcel/sdk-all.js.map"
}
},
"samlpe": {
"files": {
"<%= pkg.menu_path %>/OfficeWebExcel/Spreadsheet.html": "../OfficeWebExcel/Spreadsheet.html.deploy"
}
},
"samlpe_files": {
"files": {
"<%= pkg.menu_path %>/OfficeWebExcel/": [
"../OfficeWebExcel/jquery/jquery-1.7.1.js",
"../OfficeWebExcel/jquery/jquery.mousewheel-3.0.6.js",
"../OfficeWebExcel/css/nav-buttons.png",
"../OfficeWebExcel/css/gradient.png"
]
}
}
},
"store_log": {
"dst": "../OfficeWebExcel/.build/Log"
}
},
"tasks": {
"build": "increment_build extract_js_api compile_sdk deploy_sdk"
}
}
\ No newline at end of file
{
"info": {
"version": "1.1",
"build": 147
},
"update_src": {
"revision": "HEAD",
"src": "../OfficeWebCommon ../OfficeWebWord ../OfficeWebPowerPoint"
},
"concat_api": {
"../OfficeWebPowerPoint/api-all.js": [
"../OfficeWebPowerPoint/api.js",
"../OfficeWebPowerPoint/apiCommon.js"
]
},
"extract_api": {
"src": "../OfficeWebPowerPoint/api-all.js",
"dst": "../OfficeWebPowerPoint/Build/Log/apiExport.js"
},
"compile": {
"sdk": {
"src": [
"../OfficeWebCommon/Build/License.js",
"../OfficeWebCommon/docscoapisettings.js",
"../OfficeWebCommon/docscoapicommon.js",
"../OfficeWebCommon/docscoapi.js",
"../OfficeWebCommon/wordcopypaste.js",
"../OfficeWebCommon/downloaderfiles.js",
"../OfficeWebCommon/editorscommon.js",
"../OfficeWebCommon/Shapes/Serialize.js",
"../OfficeWebCommon/Shapes/SerializeWriter.js",
"../OfficeWebWord/FontsFreeType/font_engine.js",
"../OfficeWebWord/FontsFreeType/FontFile.js",
"../OfficeWebWord/FontsFreeType/FontManager.js",
"../OfficeWebWord/WebWord/Drawing/Externals.js",
"../OfficeWebWord/WebWord/Drawing/AllFonts.js",
"../OfficeWebWord/WebWord/Drawing/GlobalLoaders.js",
"../OfficeWebPowerPoint/Drawing/ThemeLoader.js",
"../OfficeWebPowerPoint/Editor/CollaborativeEditing.js",
"../OfficeWebWord/FontsFreeType/FontExport.js",
"../OfficeWebPowerPoint/Editor/Styles.js",
"../OfficeWebPowerPoint/Editor/ParagraphContent.js",
"../OfficeWebWord/WebWord/Drawing/Metafile.js",
"../OfficeWebWord/WebWord/Drawing/GraphicsEvents.js",
"../OfficeWebWord/WebWord/Drawing/WorkEvents.js",
"../OfficeWebWord/WebWord/Drawing/Controls.js",
"../OfficeWebWord/WebWord/Drawing/Rulers.js",
"../OfficeWebPowerPoint/Editor/Table.js",
"../OfficeWebWord/WebWord/Editor/Common.js",
"../OfficeWebWord/WebWord/Editor/Sections.js",
"../OfficeWebWord/WebWord/Editor/CollaborativeEditing.js",
"../OfficeWebWord/WebWord/Drawing/scrolls/scroll.js",
"../OfficeWebPowerPoint/Editor/History.js",
"../OfficeWebPowerPoint/Editor/Paragraph.js",
"../OfficeWebPowerPoint/Editor/FlowObjects.js",
"../OfficeWebPowerPoint/Editor/DocumentContent.js",
"../OfficeWebPowerPoint/Editor/Presentation.js",
"../OfficeWebPowerPoint/Editor/SlideShowInfo.js",
"../OfficeWebPowerPoint/Editor/PresentationProperties.js",
"../OfficeWebPowerPoint/Editor/Shape.js",
"../OfficeWebPowerPoint/Editor/GraphicFrame.js",
"../OfficeWebPowerPoint/Editor/Numbering.js",
"../OfficeWebPowerPoint/Editor/TextBody.js",
"../OfficeWebPowerPoint/Editor/TableShape.js",
"../OfficeWebPowerPoint/Editor/Drawing/Geometry.js",
"../OfficeWebPowerPoint/Editor/Drawing/CreateGoemetry.js",
"../OfficeWebPowerPoint/Editor/Drawing/ColorArray.js",
"../OfficeWebPowerPoint/Editor/Drawing/Math.js",
"../OfficeWebPowerPoint/Editor/Drawing/Path.js",
"../OfficeWebPowerPoint/Editor/Drawing/ArcTo.js",
"../OfficeWebPowerPoint/Editor/Drawing/GraphicFigure.js",
"../OfficeWebPowerPoint/Editor/Drawing/Clone.js",
"../OfficeWebPowerPoint/Editor/Drawing/CImage.js",
"../OfficeWebPowerPoint/Editor/Drawing/StatesAutoShapes.js",
"../OfficeWebPowerPoint/Editor/Drawing/AutoShapesContainer.js",
"../OfficeWebPowerPoint/Editor/Drawing/Spline.js",
"../OfficeWebPowerPoint/Editor/Drawing/PolyLine.js",
"../OfficeWebPowerPoint/Editor/Drawing/PolyLine2.js",
"../OfficeWebPowerPoint/Editor/Drawing/Hit.js",
"../OfficeWebPowerPoint/Editor/Drawing/GroupShape.js",
"../OfficeWebPowerPoint/Editor/Drawing/Joined.js",
"../OfficeWebWord/WebWord/Drawing/Graphics.js",
"../OfficeWebWord/WebWord/Drawing/Overlay.js",
"../OfficeWebWord/WebWord/Drawing/ShapeDrawer.js",
"../OfficeWebPowerPoint/Drawing/DrawingDocument.js",
"../OfficeWebPowerPoint/Drawing/HtmlPage.js",
"../OfficeWebPowerPoint/Editor/Format.js",
"../OfficeWebPowerPoint/apiDefines.js",
"../OfficeWebPowerPoint/api-all.js",
"../OfficeWebPowerPoint/Build/Log/apiExport.js"
],
"dst": "../OfficeWebPowerPoint/sdk-all.js",
"externs": [
"../OfficeWebCommon/Build/Externs.js",
"../OfficeWebWord/WebWord/Drawing/scrolls/jquery.min.js",
"../OfficeWebCommon/3rdparty/Underscore/underscore-min.js",
"../OfficeWebCommon/3rdparty/Sockjs/sockjs-0.3.min.js"
],
"map": "sdk-all.js.map",
"log": "../OfficeWebPowerPoint/Build/Log",
"define": [
"ASC_DOCS_API_LOAD_COAUTHORING_SETTINGS=false",
"ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT=true"
]
},
"defines": {
"src": [
"../OfficeWebCommon/Shapes/EditorSettings.js",
"../OfficeWebPowerPoint/themes/Themes.js",
"../OfficeWebPowerPoint/apiDefines.js"
],
"dst": "apiDefines.min.js"
},
"source_map": {
"url": "http://localhost:8080/sdk/OfficeWebPowerPoint"
}
},
"deploy": {
"copy": {
"api": {
"files": {
"<%= pkg.menu_path %>/OfficeWebPowerPoint/": [
"../OfficeWebPowerPoint/api.js",
"../OfficeWebPowerPoint/apiCommon.js",
"../OfficeWebPowerPoint/apiDefines.js"
]
}
},
"sdk": {
"files": {
"<%= pkg.menu_path %>/OfficeWebPowerPoint/": [
"../OfficeWebPowerPoint/sdk-all.js",
"../OfficeWebPowerPoint/themes/theme*/**"
]
}
},
"doc": {
"files": {
"<%= pkg.menu_path %>/OfficeWebPowerPoint/document/": "../OfficeWebPowerPoint/document/**"
}
},
"log": {
"files": {
"<%= pkg.menu_path %>/OfficeWebPowerPoint/": [
"../OfficeWebPowerPoint/sdk-all.js.map",
"../OfficeWebPowerPoint/Build/Log/property.map",
"../OfficeWebPowerPoint/Build/Log/variable.map",
"../OfficeWebPowerPoint/Build/Log/apiExport.js"
]
},
"options": {
"flatten": true
}
},
"sample": {
"files": {
"<%= pkg.menu_path %>/OfficeWebPowerPoint/": [
"../OfficeWebPowerPoint/Images/**",
"../OfficeWebPowerPoint/menu/**",
"../OfficeWebPowerPoint/MenuIcons/**"
],
"<%= pkg.menu_path %>/OfficeWebPowerPoint/index.html": "../OfficeWebPowerPoint/index.html.deploy"
}
}
},
"store_log": {
"dst": "../OfficeWebPowerPoint/Build/Log"
}
},
"tasks": {
"build": "increment_build concat_js_api extract_js_api compile_sdk deploy_sdk"
}
}
\ No newline at end of file
This diff is collapsed.
{
"info": {
"version": "1.1",
"build": 35
},
"update_src": {
"revision": "HEAD",
"src": "../OfficeWebCommon ../OfficeWebWord"
},
"extract_api": {
"src": "../OfficeWebWord/WebWord/api.js",
"dst": "../OfficeWebWord/Build/Log/apiExport.js"
},
"compile": {
"sdk": {
"src": [
"../OfficeWebCommon/License.js",
"../OfficeWebWord/WebWord/merge/utils.js",
"../OfficeWebWord/WebWord/Drawing/Externals.js",
"../OfficeWebWord/WebWord/Drawing/AllFonts.js",
"../OfficeWebWord/WebWord/Drawing/GlobalLoaders.js",
"../OfficeWebWord/WebWord/Editor/CollaborativeEditing.js",
"../OfficeWebWord/WebWord/Editor/Comments.js",
"../OfficeWebWord/WebWord/Editor/History.js",
"../OfficeWebWord/WebWord/Editor/Styles.js",
"../OfficeWebWord/WebWord/Editor/DrawingObjects.js",
"../OfficeWebWord/WebWord/Editor/FlowObjects.js",
"../OfficeWebWord/WebWord/Editor/ParagraphContent.js",
"../OfficeWebWord/WebWord/Editor/Paragraph.js",
"../OfficeWebWord/WebWord/Editor/Sections.js",
"../OfficeWebWord/WebWord/Editor/Numbering.js",
"../OfficeWebWord/WebWord/Editor/HeaderFooter.js",
"../OfficeWebWord/WebWord/Editor/Document.js",
"../OfficeWebWord/WebWord/Editor/Common.js",
"../OfficeWebWord/WebWord/Editor/DocumentContent.js",
"../OfficeWebWord/WebWord/Editor/Table.js",
"../OfficeWebWord/WebWord/Editor/Serialize2.js",
"../OfficeWebWord/WebWord/apiDefines.js",
"../OfficeWebWord/WebWord/merge/api_merge.js"
],
"dst": "../OfficeWebWord/WebWord/sdk-all.js",
"externs": [
"../OfficeWebWord/Build/apiExtern.js"
],
"map": "sdk-all.js.map",
"log": "../OfficeWebWord/Build/Log"
},
"defines": {
"src": "../OfficeWebWord/WebWord/apiDefines.js",
"dst": "apiDefines.min.js"
},
"source_map": {
"url": "http://localhost:8080/sdk/OfficeWebWord"
}
},
"deploy": {
"copy": {
"api": {
"files": {
"<%= pkg.menu_path %>/OfficeWebWord/": [
"../OfficeWebWord/WebWord/api.js",
"../OfficeWebWord/WebWord/apiDefines.js"
]
}
},
"sdk": {
"files": {
"<%= pkg.menu_path %>/OfficeWebWord/WebWord/": "../OfficeWebWord/WebWord/sdk-all.js"
}
},
"doc": {
"files": {
"<%= pkg.menu_path %>/OfficeWebWord/WebWord/document/": "../OfficeWebWord/WebWord/document/**"
}
},
"log": {
"files": {
"<%= pkg.menu_path %>/OfficeWebWord/WebWord/": [
"../OfficeWebWord/Build/Log/property.map",
"../OfficeWebWord/Build/Log/variable.map",
"../OfficeWebWord/Build/Log/apiExport.js"
]
}
}
},
"store_log": {
"dst": "../OfficeWebWord/Build/Log"
}
},
"tasks": {
"build": "compile_sdk"
}
}
\ No newline at end of file
{
"closure_compiler": "C:/Bin/Google/Closure-compiler/compiler.jar",
"menu_path": "../menu/sdk"
}
\ No newline at end of file
@echo off
cd /D %~dp0
@echo on
call grunt.cmd
pause
\ 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