Commit 868bf375 authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete unused opensource configs

parent 0ae1f82b
module.exports = function(grunt) {
var defaultConfig, packageFile;
grunt.loadNpmTasks('grunt-contrib');
grunt.registerTask('build_webword_init', 'Initialize build WebWord SDK.', function(){
defaultConfig = './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_webexcel_init', 'Initialize build WebExcel SDK.', function(){
defaultConfig = './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 = './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', ['build_webword_init', 'build_sdk']);
grunt.registerTask('build_webexcel', ['build_webexcel_init', 'build_sdk']);
grunt.registerTask('build_webpowerpoint', ['build_webpowerpoint_init', 'build_sdk']);
grunt.registerTask('build_all', ['build_webword_init', 'build_sdk', 'build_webexcel_init', 'build_sdk', 'build_webpowerpoint_init', 'build_sdk']);
grunt.registerTask('compile_sdk_init', function() {
var pkg = grunt.file.readJSON(defaultConfig);
pkg.info.rev = "unknown";
if(undefined !== process.env['BUILD_NUMBER'])
pkg.info.build = parseInt(process.env['BUILD_NUMBER']);
if(undefined !== process.env['SVN_REVISION'])
pkg.info.rev = parseInt(process.env['SVN_REVISION']);
grunt.initConfig({
pkg: pkg,
uglify: {
options: {
banner: '/*\n' +
' * (c) Copyright Ascensio System SIA 2010-<%= grunt.template.today("yyyy") %>\n' +
' *\n' +
' * This program is a free software product. You can redistribute it and/or \n' +
' * modify it under the terms of the GNU Affero General Public License (AGPL) \n' +
' * version 3 as published by the Free Software Foundation. In accordance with \n' +
' * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \n' +
' * that Ascensio System SIA expressly excludes the warranty of non-infringement\n' +
' * of any third-party rights.\n' +
' *\n' +
' * This program is distributed WITHOUT ANY WARRANTY; without even the implied \n' +
' * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \n' +
' * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\n' +
' *\n' +
' * You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\n' +
' * EU, LV-1021.\n' +
' *\n' +
' * The interactive user interfaces in modified source and object code versions\n' +
' * of the Program must display Appropriate Legal Notices, as required under \n' +
' * Section 5 of the GNU AGPL version 3.\n' +
' *\n' +
' * Pursuant to Section 7(b) of the License you must retain the original Product\n' +
' * logo when distributing the program. Pursuant to Section 7(e) we decline to\n' +
' * grant you any rights under trademark law for use of our trademarks.\n' +
' *\n' +
' * All the Product\'s GUI elements, including illustrations and icon sets, as\n' +
' * well as technical writing content are licensed under the terms of the\n' +
' * Creative Commons Attribution-ShareAlike 4.0 International. See the License\n' +
' * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\n' +
' *\n' +
' * Version: <%= pkg.info.version %> (build:<%= pkg.info.build %>, rev:<%= pkg.info.rev %>)\n' +
' */'
},
sdk: {
src: packageFile['compile']["sdk"]['src'],
dest: packageFile['compile']["sdk"]['dst']
}
}
});
});
grunt.registerTask('compile_sdk', ['compile_sdk_init', 'uglify']);
grunt.registerTask('default', 'build_all');
};
\ No newline at end of file
@echo off
cd /D %~dp0
@echo on
call grunt.cmd --no-color
@echo off
cd /D %~dp0
echo Installation grunt-cli
call npm install -g grunt-cli
call npm install
{
"name": "common",
"version": "0.0.0",
"homepage": "http://www.onlyoffice.com",
"private": true,
"dependencies": {
"grunt": "0.4.2",
"grunt-contrib": "0.9.0"
}
}
\ No newline at end of file
{
"info": {
"version": "3.5.0",
"build": 1,
"homepage": "http://www.onlyoffice.com"
},
"compile": {
"sdk": {
"src": [
"../../common/browser.js",
"../../common/docscoapicommon.js",
"../../common/docscoapi.js",
"../../common/downloaderfiles.js",
"../../common/apiCommon.js",
"../../common/commonDefines.js",
"../../common/editorscommon.js",
"../../common/NumFormat.js",
"../../common/Charts/charts.js",
"../../common/Charts/DrawingArea.js",
"../../common/Charts/DrawingObjects.js",
"../../common/Charts/ChartsDrawer.js",
"../../common/FontsFreeType/font_engine.js",
"../../common/FontsFreeType/FontFile.js",
"../../common/FontsFreeType/FontManager.js",
"../../common/FontsFreeType/font_map.js",
"../../word/Drawing/HatchPattern.js",
"../../word/Drawing/WorkEvents.js",
"../../word/Drawing/Externals.js",
"../../word/Drawing/Metafile.js",
"../../common/GlobalLoaders.js",
"../../cell/apiDefines.js",
"../../cell/document/empty-workbook.js",
"../../cell/utils/utils.js",
"../../cell/model/clipboard.js",
"../../cell/model/autofilters.js",
"../../cell/graphics/DrawingContext.js",
"../../cell/graphics/pdfprinter.js",
"../../cell/model/CollaborativeEditing.js",
"../../cell/model/ConditionalFormatting.js",
"../../cell/model/FormulaObjects/parserFormula.js",
"../../cell/model/FormulaObjects/_xlfnFunctions.js",
"../../cell/model/FormulaObjects/dateandtimeFunctions.js",
"../../cell/model/FormulaObjects/engineeringFunctions.js",
"../../cell/model/FormulaObjects/cubeFunctions.js",
"../../cell/model/FormulaObjects/databaseFunctions.js",
"../../cell/model/FormulaObjects/textanddataFunctions.js",
"../../cell/model/FormulaObjects/statisticalFunctions.js",
"../../cell/model/FormulaObjects/financialFunctions.js",
"../../cell/model/FormulaObjects/mathematicFunctions.js",
"../../cell/model/FormulaObjects/lookupandreferenceFunctions.js",
"../../cell/model/FormulaObjects/informationFunctions.js",
"../../cell/model/FormulaObjects/logicalFunctions.js",
"../../cell/model/Serialize.js",
"../../cell/model/WorkbookElems.js",
"../../cell/model/Workbook.js",
"../../cell/model/CellInfo.js",
"../../common/AdvancedOptions.js",
"../../cell/model/History.js",
"../../cell/model/UndoRedo.js",
"../../cell/model/CellComment.js",
"../../cell/view/mobileTouch.js",
"../../cell/view/iscroll.js",
"../../cell/view/StringRender.js",
"../../cell/view/CellTextRender.js",
"../../cell/view/CellEditorView.js",
"../../cell/view/WorksheetView.js",
"../../cell/view/HandlerList.js",
"../../cell/view/EventsController.js",
"../../cell/view/WorkbookView.js",
"../../common/scroll.js",
"../../word/Editor/SerializeCommon.js",
"../../common/Drawings/Math.js",
"../../common/Drawings/ArcTo.js",
"../../word/Drawing/ColorArray.js",
"../../common/Shapes/Serialize.js",
"../../common/Shapes/SerializeWriter.js",
"../../common/SerializeCommonWordExcel.js",
"../../common/SerializeChart.js",
"../../common/Drawings/Hit.js",
"../../common/Drawings/States.js",
"../../common/Drawings/DrawingObjectsHandlers.js",
"../../common/Drawings/TrackObjects/AdjustmentTracks.js",
"../../common/Drawings/TrackObjects/ResizeTracks.js",
"../../common/Drawings/TrackObjects/RotateTracks.js",
"../../common/Drawings/TrackObjects/NewShapeTracks.js",
"../../common/Drawings/TrackObjects/PolyLine.js",
"../../common/Drawings/TrackObjects/Spline.js",
"../../common/Drawings/TrackObjects/MoveTracks.js",
"../../common/Drawings/CommonController.js",
"../../common/Drawings/Format/Constants.js",
"../../common/Drawings/Format/Format.js",
"../../common/Drawings/Format/CreateGeometry.js",
"../../common/Drawings/Format/Geometry.js",
"../../common/Drawings/Format/Path.js",
"../../common/Drawings/Format/Shape.js",
"../../common/Drawings/Format/GroupShape.js",
"../../common/Drawings/Format/Image.js",
"../../common/Drawings/Format/ChartSpace.js",
"../../common/Drawings/Format/ChartFormat.js",
"../../common/Drawings/Format/TextBody.js",
"../../common/Drawings/TextDrawer.js",
"../../common/wordcopypaste.js",
"../../cell/view/DrawingObjectsController.js",
"../../cell/model/DrawingObjects/Graphics.js",
"../../cell/model/DrawingObjects/Overlay.js",
"../../common/Controls.js",
"../../cell/model/DrawingObjects/ShapeDrawer.js",
"../../cell/model/DrawingObjects/DrawingDocument.js",
"../../cell/model/DrawingObjects/Format/ShapePrototype.js",
"../../cell/model/DrawingObjects/Format/ImagePrototype.js",
"../../cell/model/DrawingObjects/Format/GroupPrototype.js",
"../../cell/model/DrawingObjects/Format/ChartSpacePrototype.js",
"../../slide/Editor/Format/GraphicFrame.js",
"../../word/Editor/Comments.js",
"../../word/Editor/Styles.js",
"../../word/Editor/FlowObjects.js",
"../../word/Editor/ParagraphContent.js",
"../../word/Editor/ParagraphContentBase.js",
"../../word/Editor/Hyperlink.js",
"../../word/Editor/Field.js",
"../../word/Editor/Run.js",
"../../word/Editor/Math.js",
"../../word/Editor/Paragraph.js",
"../../word/Editor/Paragraph_Recalculate.js",
"../../word/Editor/Sections.js",
"../../word/Editor/Numbering.js",
"../../word/Editor/HeaderFooter.js",
"../../word/Editor/Document.js",
"../../word/Editor/DocumentContent.js",
"../../word/Editor/Table.js",
"../../word/Editor/Serialize2.js",
"../../word/Editor/FontClassification.js",
"../../word/Editor/Spelling.js",
"../../word/Editor/GraphicObjects/WrapManager.js",
"../../word/Editor/Common.js",
"../../word/Math/mathTypes.js",
"../../word/Math/mathText.js",
"../../word/Math/mathContent.js",
"../../word/Math/base.js",
"../../word/Math/fraction.js",
"../../word/Math/degree.js",
"../../word/Math/matrix.js",
"../../word/Math/limit.js",
"../../word/Math/nary.js",
"../../word/Math/radical.js",
"../../word/Math/operators.js",
"../../word/Math/accent.js",
"../../word/Math/borderBox.js",
"../../common/CollaborativeEditingBase.js",
"../../cell/model/DrawingObjects/GlobalCounters.js",
"../../word/apiCommon.js",
"../../common/apiBase.js",
"../../cell/api.js",
"../../common/Shapes/EditorSettings.js"
],
"dst": "../../cell/sdk-all.js"
}
},
"tasks": {
"build": "compile_sdk"
}
}
\ No newline at end of file
{
"info": {
"version": "3.5.0",
"build": 1,
"homepage": "http://www.onlyoffice.com"
},
"compile": {
"sdk": {
"src": [
"../../common/browser.js",
"../../common/FontsFreeType/font_engine.js",
"../../common/FontsFreeType/FontFile.js",
"../../common/FontsFreeType/FontManager.js",
"../../common/FontsFreeType/font_map.js",
"../../word/Drawing/Externals.js",
"../../common/GlobalLoaders.js",
"../../common/commonDefines.js",
"../../common/apiCommon.js",
"../../common/downloaderfiles.js",
"../../common/docscoapicommon.js",
"../../common/docscoapi.js",
"../../common/wordcopypaste.js",
"../../common/editorscommon.js",
"../../slide/Drawing/ThemeLoader.js",
"../../common/Charts/DrawingObjects.js",
"../../common/SerializeCommonWordExcel.js",
"../../common/SerializeChart.js",
"../../common/Charts/charts.js",
"../../common/Charts/ChartsDrawer.js",
"../../common/Charts/DrawingArea.js",
"../../common/NumFormat.js",
"../../word/Editor/Serialize2.js",
"../../word/Editor/Styles.js",
"../../word/Editor/Numbering.js",
"../../word/Drawing/Metafile.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/Common.js",
"../../word/Editor/Sections.js",
"../../common/scroll.js",
"../../word/Editor/History.js",
"../../common/Drawings/Hit.js",
"../../common/Drawings/States.js",
"../../common/Drawings/DrawingObjectsHandlers.js",
"../../common/Drawings/TrackObjects/AdjustmentTracks.js",
"../../common/Drawings/TrackObjects/ResizeTracks.js",
"../../common/Drawings/TrackObjects/RotateTracks.js",
"../../common/Drawings/TrackObjects/NewShapeTracks.js",
"../../common/Drawings/TrackObjects/PolyLine.js",
"../../common/Drawings/TrackObjects/Spline.js",
"../../common/Drawings/TrackObjects/MoveTracks.js",
"../../word/Drawing/HatchPattern.js",
"../../word/Drawing/Graphics.js",
"../../word/Drawing/Overlay.js",
"../../word/Drawing/ShapeDrawer.js",
"../../slide/Drawing/Transitions.js",
"../../slide/Drawing/DrawingDocument.js",
"../../slide/Drawing/HtmlPage.js",
"../../slide/apiDefines.js",
"../../common/Drawings/Format/Constants.js",
"../../common/Shapes/Serialize.js",
"../../common/Shapes/SerializeWriter.js",
"../../word/Editor/SerializeCommon.js",
"../../common/Drawings/Math.js",
"../../common/Drawings/ArcTo.js",
"../../word/Drawing/ColorArray.js",
"../../slide/Editor/Format/Presentation.js",
"../../common/Drawings/CommonController.js",
"../../cell/view/DrawingObjectsController.js",
"../../slide/Editor/DrawingObjectsController.js",
"../../common/Drawings/Format/Format.js",
"../../common/Drawings/Format/CreateGeometry.js",
"../../common/Drawings/Format/Geometry.js",
"../../common/Drawings/Format/Path.js",
"../../common/Drawings/Format/Shape.js",
"../../common/Drawings/Format/Image.js",
"../../common/Drawings/Format/GroupShape.js",
"../../common/Drawings/Format/ChartSpace.js",
"../../common/Drawings/Format/ChartFormat.js",
"../../common/Drawings/Format/TextBody.js",
"../../common/Drawings/TextDrawer.js",
"../../slide/Editor/Format/Slide.js",
"../../slide/Editor/Format/SlideMaster.js",
"../../slide/Editor/Format/Layout.js",
"../../slide/Editor/Format/Comments.js",
"../../word/Editor/Styles.js",
"../../word/Editor/Numbering.js",
"../../word/Editor/ParagraphContent.js",
"../../word/Editor/ParagraphContentBase.js",
"../../word/Editor/Hyperlink.js",
"../../word/Editor/Field.js",
"../../word/Editor/Run.js",
"../../word/Math/mathTypes.js",
"../../word/Math/mathText.js",
"../../word/Math/mathContent.js",
"../../word/Math/base.js",
"../../word/Math/fraction.js",
"../../word/Math/degree.js",
"../../word/Math/matrix.js",
"../../word/Math/limit.js",
"../../word/Math/nary.js",
"../../word/Math/radical.js",
"../../word/Math/operators.js",
"../../word/Math/accent.js",
"../../word/Math/borderBox.js",
"../../word/Editor/FlowObjects.js",
"../../word/Editor/Paragraph.js",
"../../word/Editor/Paragraph_Recalculate.js",
"../../word/Editor/Document.js",
"../../word/Editor/DocumentContent.js",
"../../word/Editor/HeaderFooter.js",
"../../word/Editor/Table.js",
"../../word/Editor/Math.js",
"../../word/Editor/Spelling.js",
"../../word/Editor/Search.js",
"../../word/Editor/FontClassification.js",
"../../slide/Editor/Format/ShapePrototype.js",
"../../slide/Editor/Format/ImagePrototype.js",
"../../slide/Editor/Format/GroupPrototype.js",
"../../slide/Editor/Format/ChartSpacePrototype.js",
"../../slide/Editor/Format/GraphicFrame.js",
"../../common/apiBase.js",
"../../slide/api.js",
"../../slide/apiCommon.js",
"../../word/apiCommon.js",
"../../cell/utils/utils.js",
"../../cell/model/Serialize.js",
"../../cell/model/WorkbookElems.js",
"../../cell/model/Workbook.js",
"../../cell/model/CellInfo.js",
"../../common/AdvancedOptions.js",
"../../common/Shapes/EditorSettings.js",
"../../slide/themes/Themes.js"
],
"dst": "../../slide/sdk-all.js"
}
},
"tasks": {
"build": "compile_sdk"
}
}
\ No newline at end of file
{
"info": {
"version": "3.5.0",
"build": 1,
"homepage": "http://www.onlyoffice.com"
},
"compile": {
"sdk": {
"src": [
"../../common/browser.js",
"../../common/docscoapicommon.js",
"../../common/docscoapi.js",
"../../common/apiCommon.js",
"../../common/spellcheckapi.js",
"../../common/wordcopypaste.js",
"../../common/spellCheckLanguage.js",
"../../common/spellCheckLanguagesAll.js",
"../../common/downloaderfiles.js",
"../../common/commonDefines.js",
"../../common/editorscommon.js",
"../../common/Shapes/Serialize.js",
"../../common/Shapes/SerializeWriter.js",
"../../common/SerializeCommonWordExcel.js",
"../../common/SerializeChart.js",
"../../common/Drawings/Format/Constants.js",
"../../common/Drawings/Format/Format.js",
"../../common/FontsFreeType/font_engine.js",
"../../common/FontsFreeType/FontFile.js",
"../../common/FontsFreeType/FontManager.js",
"../../common/FontsFreeType/font_map.js",
"../../word/Drawing/Externals.js",
"../../common/GlobalLoaders.js",
"../../word/Drawing/translations.js",
"../../common/Charts/charts.js",
"../../common/Charts/ChartsDrawer.js",
"../../common/Charts/DrawingArea.js",
"../../common/Charts/DrawingObjects.js",
"../../common/NumFormat.js",
"../../common/Drawings/TrackObjects/AdjustmentTracks.js",
"../../common/Drawings/TrackObjects/MoveTracks.js",
"../../common/Drawings/TrackObjects/NewShapeTracks.js",
"../../common/Drawings/TrackObjects/PolyLine.js",
"../../common/Drawings/TrackObjects/ResizeTracks.js",
"../../common/Drawings/TrackObjects/RotateTracks.js",
"../../common/Drawings/TrackObjects/Spline.js",
"../../common/Drawings/ArcTo.js",
"../../common/Drawings/ColorArray.js",
"../../common/Drawings/CommonController.js",
"../../common/Drawings/DrawingObjectsHandlers.js",
"../../common/Drawings/Hit.js",
"../../common/Drawings/Joined.js",
"../../common/Drawings/Math.js",
"../../common/Drawings/Format/Shape.js",
"../../common/Drawings/Format/Image.js",
"../../common/Drawings/Format/GroupShape.js",
"../../common/Drawings/Format/ChartSpace.js",
"../../common/Drawings/Format/ChartFormat.js",
"../../common/Drawings/Format/CreateGeometry.js",
"../../common/Drawings/Format/Geometry.js",
"../../common/Drawings/Format/Path.js",
"../../common/Drawings/Format/TextBody.js",
"../../common/Drawings/TextDrawer.js",
"../../word/Editor/GraphicObjects/Format/ShapePrototype.js",
"../../word/Editor/GraphicObjects/Format/ImagePrototype.js",
"../../word/Editor/GraphicObjects/Format/GroupPrototype.js",
"../../word/Editor/GraphicObjects/Format/ChartSpacePrototype.js",
"../../slide/Editor/Format/GraphicFrame.js",
"../../word/Editor/GraphicObjects/DrawingStates.js",
"../../word/Editor/GraphicObjects/GraphicObjects.js",
"../../word/Editor/GraphicObjects/GraphicPage.js",
"../../word/Editor/GraphicObjects/WrapManager.js",
"../../word/Editor/CollaborativeEditing.js",
"../../word/Editor/Comments.js",
"../../word/Editor/History.js",
"../../word/Editor/Styles.js",
"../../word/Editor/FlowObjects.js",
"../../word/Editor/ParagraphContent.js",
"../../word/Editor/ParagraphContentBase.js",
"../../word/Editor/Hyperlink.js",
"../../word/Editor/Field.js",
"../../word/Editor/Run.js",
"../../word/Editor/Math.js",
"../../word/Editor/Paragraph.js",
"../../word/Editor/Paragraph_Recalculate.js",
"../../word/Editor/Sections.js",
"../../word/Editor/Numbering.js",
"../../word/Editor/HeaderFooter.js",
"../../word/Editor/Document.js",
"../../word/Editor/Common.js",
"../../word/Editor/DocumentContent.js",
"../../word/Editor/Table.js",
"../../word/Editor/Serialize2.js",
"../../word/Editor/Search.js",
"../../word/Editor/FontClassification.js",
"../../word/Editor/Spelling.js",
"../../word/Drawing/Graphics.js",
"../../word/Drawing/Overlay.js",
"../../word/Drawing/HatchPattern.js",
"../../word/Drawing/ShapeDrawer.js",
"../../word/Drawing/Metafile.js",
"../../common/CollaborativeEditingBase.js",
"../../word/Drawing/DrawingDocument.js",
"../../word/Drawing/GraphicsEvents.js",
"../../common/Scrolls/iscroll.js",
"../../word/Drawing/WorkEvents.js",
"../../common/Controls.js",
"../../word/Drawing/Rulers.js",
"../../word/Drawing/HtmlPage.js",
"../../word/Drawing/documentrenderer.js",
"../../common/scroll.js",
"../../word/Editor/SerializeCommon.js",
"../../word/apiDefines.js",
"../../common/apiBase.js",
"../../word/api.js",
"../../word/apiCommon.js",
"../../word/document/empty.js",
"../../word/Math/mathTypes.js",
"../../word/Math/mathText.js",
"../../word/Math/mathContent.js",
"../../word/Math/base.js",
"../../word/Math/fraction.js",
"../../word/Math/degree.js",
"../../word/Math/matrix.js",
"../../word/Math/limit.js",
"../../word/Math/nary.js",
"../../word/Math/radical.js",
"../../word/Math/operators.js",
"../../word/Math/accent.js",
"../../word/Math/borderBox.js",
"../../cell/utils/utils.js",
"../../cell/model/CellComment.js",
"../../cell/model/Serialize.js",
"../../cell/model/WorkbookElems.js",
"../../cell/model/Workbook.js",
"../../cell/model/CellInfo.js",
"../../common/AdvancedOptions.js",
"../../common/Shapes/EditorSettings.js"
],
"dst": "../../word/sdk-all.js"
}
},
"tasks": {
"build": "compile_sdk"
}
}
\ 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