init repo

This commit is contained in:
nikolay ivanov
2014-07-05 18:22:49 +00:00
commit a8be6b9e72
17348 changed files with 9229832 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
@echo off
cd /D %~dp0
@echo on
call grunt.cmd --no-color

View File

@@ -0,0 +1,424 @@
{
"version": "1.0",
"build": 0,
"homepage": "http://www.onlyoffice.com",
"sdk": {
"clean": [
"../../deploy/sdk/Common",
"../../deploy/sdk/Word"
],
"copy": {
"../../deploy/sdk/Common/": "../../sdk/Common/AllFonts.js",
"../../deploy/sdk/Word/": "../../sdk/Word/sdk-all.js"
}
},
"api": {
"clean": [
"../../deploy/apps/api"
],
"copy": {
"../../deploy/apps/api/documents/": "../../apps/api/**"
}
},
"main": {
"clean": [
"../../deploy/apps/documenteditor/main"
],
"js": {
"srcview": [
"../../apps/common/Gateway.js",
"../../apps/common/Analytics.js",
"../../apps/common/IrregularStack.js",
"../../apps/common/main/loader.js",
"../../apps/common/main/lib/plugin/ScrollPane.js",
"../../apps/common/main/lib/plugin/DataViewScrollPane.js",
"../../apps/common/main/lib/plugin/TextAreaAutoHeight.js",
"../../apps/common/main/lib/plugin/MenuExpand.js",
"../../apps/common/main/lib/component/LoadMask.js",
"../../apps/common/main/lib/component/SplitColorButton.js",
"../../apps/common/main/lib/component/MetricSpinner.js",
"../../apps/common/main/lib/component/IndeterminateCheckBox.js",
"../../apps/common/main/lib/component/SearchField.js",
"../../apps/common/main/lib/component/util/LanguageName.js",
"../../apps/common/main/lib/component/util/MetricSettings.js",
"../../apps/common/main/lib/model/User.js",
"../../apps/common/main/lib/model/ChatMessage.js",
"../../apps/common/main/lib/model/Comment.js",
"../../apps/common/main/lib/model/Reply.js",
"../../apps/common/main/lib/store/ChatMessages.js",
"../../apps/common/main/lib/store/Comments.js",
"../../apps/common/main/lib/store/Users.js",
"../../apps/common/main/lib/view/About.js",
"../../apps/common/main/lib/view/Header.js",
"../../apps/common/main/lib/view/ChatPanel.js",
"../../apps/common/main/lib/view/CommentsEditForm.js",
"../../apps/common/main/lib/view/CommentsPanel.js",
"../../apps/common/main/lib/view/CommentsPopover.js",
"../../apps/common/main/lib/view/DocumentAccessDialog.js",
"../../apps/common/main/lib/view/SearchDialog.js",
"../../apps/common/main/lib/view/Participants.js",
"../../apps/common/main/lib/controller/Chat.js",
"../../apps/common/main/lib/controller/CommentsBase.js",
"../../apps/common/main/lib/controller/CommentsList.js",
"../../apps/common/main/lib/controller/CommentsPopover.js",
"../../apps/common/main/lib/view/ComboFonts.js",
"../../apps/common/main/lib/model/Font.js",
"../../apps/common/main/lib/store/Fonts.js",
"../../apps/common/main/lib/controller/Fonts.js",
"../../apps/documenteditor/main/app/view/ChromeRecommendation.js",
"../../apps/documenteditor/main/app/view/DocumentHelp.js",
"../../apps/documenteditor/main/app/view/DocumentInfo.js",
"../../apps/documenteditor/main/app/view/DocumentSettings.js",
"../../apps/documenteditor/main/app/view/File.js",
"../../apps/documenteditor/main/app/view/CreateFile.js",
"../../apps/documenteditor/main/app/view/RecentFiles.js",
"../../apps/documenteditor/main/app/view/DocumentStatusInfo.js",
"../../apps/documenteditor/main/app/view/DocumentHolder.js",
"../../apps/documenteditor/main/app/view/MainMenu.js",
"../../apps/documenteditor/main/app/view/Viewport.js",
"../../apps/documenteditor/main/app/model/FileTemplate.js",
"../../apps/documenteditor/main/app/model/RecentFile.js",
"../../apps/documenteditor/main/app/store/FileTemplates.js",
"../../apps/documenteditor/main/app/store/RecentFiles.js",
"../../apps/documenteditor/main/app/controller/CreateFile.js",
"../../apps/documenteditor/main/app/controller/RecentFiles.js",
"../../apps/documenteditor/main/app/controller/Search.js",
"../../apps/documenteditor/main/app/controller/DocumentHolder.js",
"../../apps/documenteditor/main/app/controller/Main.js",
"../../apps/common/locale.js",
"../../apps/documenteditor/main/app.js",
"../../apps/documenteditor/main/restrictions.js",
"../../apps/documenteditor/main/environment.js.deploy"
],
"destview": "../../deploy/apps/documenteditor/main/app-view.js",
"srcedit": [
"../../apps/common/main/lib/plugin/GridScrollPane.js",
"../../apps/common/main/lib/plugin/ComboBoxScrollPane.js",
"../../apps/common/main/lib/component/util/RGBColor.js",
"../../apps/common/main/lib/component/HSBColorPicker.js",
"../../apps/common/main/lib/view/ExtendedColorDialog.js",
"../../apps/common/main/lib/component/DataViewPicker.js",
"../../apps/common/main/lib/component/MenuDataViewPicker.js",
"../../apps/common/main/lib/component/ThemeColorPalette.js",
"../../apps/common/main/lib/component/MultiSliderGradient.js",
"../../apps/common/main/lib/component/ComboDataView.js",
"../../apps/common/main/lib/view/ImageFromUrlDialog.js",
"../../apps/common/main/lib/view/CopyWarning.js",
"../../apps/common/main/lib/view/AbstractSettingsPanel.js",
"../../apps/common/main/lib/component/SynchronizeTip.js",
"../../apps/common/main/lib/model/Group.js",
"../../apps/common/main/lib/model/GroupItem.js",
"../../apps/common/main/lib/component/GroupedDataView.js",
"../../apps/documenteditor/main/app/model/ShapeGroup.js",
"../../apps/documenteditor/main/app/store/ShapeGroups.js",
"../../apps/documenteditor/main/app/component/CellStyler.js",
"../../apps/documenteditor/main/app/component/TableStyler.js",
"../../apps/documenteditor/main/app/component/ComboDropFonts.js",
"../../apps/documenteditor/main/app/component/DimensionPicker.js",
"../../apps/documenteditor/main/app/component/MenuDimensionPicker.js",
"../../apps/documenteditor/main/app/view/DocumentLanguage.js",
"../../apps/documenteditor/main/app/view/InsertTableDialog.js",
"../../apps/documenteditor/main/app/view/HyperlinkSettingsDialog.js",
"../../apps/documenteditor/main/app/view/ShapeSettingsAdvancedCnt.js",
"../../apps/documenteditor/main/app/view/ImageSettingsAdvanced.js",
"../../apps/documenteditor/main/app/view/TableSettingsAdvanced.js",
"../../apps/documenteditor/main/app/view/ParagraphSettingsAdvanced.js",
"../../apps/documenteditor/main/app/view/DropcapSettingsAdvanced.js",
"../../apps/documenteditor/main/app/view/ImageSettings.js",
"../../apps/documenteditor/main/app/view/HeaderFooterSettings.js",
"../../apps/documenteditor/main/app/view/ParagraphSettings.js",
"../../apps/documenteditor/main/app/view/TableSettings.js",
"../../apps/documenteditor/main/app/view/ShapeSettings.js",
"../../apps/documenteditor/main/app/view/RightPanel.js",
"../../apps/documenteditor/main/app/view/RightMenu.js",
"../../apps/documenteditor/main/app/view/Toolbar.js",
"../../apps/documenteditor/main/app/controller/Toolbar.js"
],
"destedit": "../../deploy/apps/documenteditor/main/app-edit.js"
},
"css": {
"srcedit": [
"../../apps/common/main/resources/css/dataview-picker.css",
"../../apps/common/main/resources/css/hsb-colorpicker.css",
"../../apps/common/main/resources/css/themecolorpalette.css",
"../../apps/common/main/resources/css/comments-panel.css",
"../../apps/common/main/resources/css/comments-popover.css",
"../../apps/common/main/resources/css/synchronize-tip.css",
"../../apps/common/main/resources/css/grouped-data-view.css",
"../../apps/common/main/resources/css/multislider-gradient.css",
"../../apps/common/main/resources/css/dataview-combo.css",
"../../apps/documenteditor/main/resources/css/right-panels.css",
"../../apps/documenteditor/main/resources/css/toolbar.css",
"../../apps/documenteditor/main/resources/css/dimension-picker.css",
"../../apps/documenteditor/main/resources/css/table-border-styler.css",
"../../apps/documenteditor/main/resources/css/advanced-settings-dialog.css"
],
"destedit": "../../deploy/apps/documenteditor/main/resources/css/app-edit.css",
"srcview": [
"../../apps/common/main/resources/css/load-mask.css",
"../../apps/common/main/resources/css/jquery.jscrollpane.css",
"../../apps/common/main/resources/css/chat-panel.css",
"../../apps/common/main/resources/css/header.css",
"../../apps/common/main/resources/css/asc.css",
"../../apps/common/main/resources/css/about.css",
"../../apps/common/main/resources/css/searchfield.css",
"../../apps/common/main/resources/css/searchdialog.css",
"../../apps/common/main/resources/css/participantspanel.css",
"../../apps/documenteditor/main/resources/css/de-main-colors.css",
"../../apps/documenteditor/main/resources/css/header.css",
"../../apps/documenteditor/main/resources/css/document-holder.css",
"../../apps/documenteditor/main/resources/css/document-statusinfo.css",
"../../apps/documenteditor/main/resources/css/main-menu.css",
"../../apps/documenteditor/main/resources/css/file.css",
"../../apps/documenteditor/main/resources/css/file-create-new.css",
"../../apps/documenteditor/main/resources/css/file-open-recent.css"
],
"destview": "../../deploy/apps/documenteditor/main/resources/css/app-view.css"
},
"copy": {
"localization": {
"../../deploy/apps/documenteditor/main/locale/": "../../apps/documenteditor/main/locale/*"
},
"help": {
"../../deploy/apps/documenteditor/main/resources/help/en/": "../../apps/documenteditor/main/resources/help/en/**",
"../../deploy/apps/documenteditor/main/resources/help/de/": "../../apps/documenteditor/main/resources/help/de/**",
"../../deploy/apps/documenteditor/main/resources/help/es/": "../../apps/documenteditor/main/resources/help/es/**",
"../../deploy/apps/documenteditor/main/resources/help/fr/": "../../apps/documenteditor/main/resources/help/fr/**",
"../../deploy/apps/documenteditor/main/resources/help/it/": "../../apps/documenteditor/main/resources/help/it/**",
"../../deploy/apps/documenteditor/main/resources/help/ru/": "../../apps/documenteditor/main/resources/help/ru/**"
},
"index-page": {
"../../deploy/apps/documenteditor/main/index.html": "../../apps/documenteditor/main/index.html.deploy"
},
"images-app": {
"../../deploy/apps/documenteditor/main/resources/img/": "../../apps/documenteditor/main/resources/img/**"
},
"images-common": {
"../../deploy/apps/documenteditor/main/Images/": "../../sdk/Word/Images/*.cur",
"../../deploy/apps/documenteditor/main/resources/img/": "../../apps/common/main/resources/img/**"
}
}
},
"mobile": {
"clean": [
"../../deploy/apps/documenteditor/mobile"
],
"js": {
"src": [
"../../apps/common/Gateway.js",
"../../apps/common/Analytics.js",
"../../apps/common/mobile/loader.js",
"../../apps/common/mobile/lib/component/PlanarSpinner.js",
"../../apps/common/mobile/lib/component/RepeatableButton.js",
"../../apps/common/mobile/lib/component/SettingsList.js",
"../../apps/common/mobile/lib/model/SettingItem.js",
"../../apps/common/mobile/lib/store/SettingsList.js",
"../../apps/common/mobile/lib/view/PopoverPanel.js",
"../../apps/common/mobile/lib/view/PopClip.js",
"../../apps/common/mobile/lib/controller/PopClip.js",
"../../apps/documenteditor/mobile/app/plugin/Pinchemu.js",
"../../apps/documenteditor/mobile/app/view/Main.js",
"../../apps/documenteditor/mobile/app/view/phone/toolbar/Search.js",
"../../apps/documenteditor/mobile/app/view/phone/toolbar/View.js",
"../../apps/documenteditor/mobile/app/view/phone/Main.js",
"../../apps/documenteditor/mobile/app/view/tablet/panel/Font.js",
"../../apps/documenteditor/mobile/app/view/tablet/panel/FontStyle.js",
"../../apps/documenteditor/mobile/app/view/tablet/panel/Insert.js",
"../../apps/documenteditor/mobile/app/view/tablet/panel/ListStyle.js",
"../../apps/documenteditor/mobile/app/view/tablet/panel/ParagraphAlignment.js",
"../../apps/documenteditor/mobile/app/view/tablet/panel/Spacing.js",
"../../apps/documenteditor/mobile/app/view/tablet/panel/TextColor.js",
"../../apps/documenteditor/mobile/app/view/tablet/toolbar/Edit.js",
"../../apps/documenteditor/mobile/app/view/tablet/toolbar/Search.js",
"../../apps/documenteditor/mobile/app/view/tablet/toolbar/View.js",
"../../apps/documenteditor/mobile/app/view/tablet/Main.js",
"../../apps/documenteditor/mobile/app/controller/Main.js",
"../../apps/documenteditor/mobile/app/controller/Document.js",
"../../apps/documenteditor/mobile/app/controller/Search.js",
"../../apps/documenteditor/mobile/app/controller/phone/Main.js",
"../../apps/documenteditor/mobile/app/controller/tablet/Main.js",
"../../apps/documenteditor/mobile/app/controller/tablet/panel/Font.js",
"../../apps/documenteditor/mobile/app/controller/tablet/panel/FontStyle.js",
"../../apps/documenteditor/mobile/app/controller/tablet/panel/Insert.js",
"../../apps/documenteditor/mobile/app/controller/tablet/panel/ParagraphAlignment.js",
"../../apps/documenteditor/mobile/app/controller/tablet/panel/Spacing.js",
"../../apps/documenteditor/mobile/app/controller/tablet/panel/Style.js",
"../../apps/documenteditor/mobile/app/controller/tablet/panel/TextColor.js",
"../../apps/documenteditor/mobile/app/controller/toolbar/Edit.js",
"../../apps/documenteditor/mobile/app/controller/toolbar/View.js",
"../../apps/documenteditor/mobile/app/profile/Phone.js",
"../../apps/documenteditor/mobile/app/profile/Tablet.js",
"../../apps/common/locale.js",
"../../apps/documenteditor/mobile/app.js"
],
"dist": "../../deploy/apps/documenteditor/mobile/app-all.js"
},
"css": {
"normal": {
"src": [
"../../apps/documenteditor/mobile/resources/css/application-normal.css"
],
"dist": "../../deploy/apps/documenteditor/mobile/resources/css/application-normal.css"
},
"retina": {
"src": [
"../../apps/documenteditor/mobile/resources/css/application-retina.css"
],
"dist": "../../deploy/apps/documenteditor/mobile/resources/css/application-retina.css"
}
},
"copy": {
"index-page": {
"../../deploy/apps/documenteditor/mobile/index.html": "../../apps/documenteditor/mobile/index.html.deploy"
},
"localization": {
"../../deploy/apps/documenteditor/mobile/locale/": "../../apps/documenteditor/mobile/locale/*"
},
"images-app": {
"../../deploy/apps/documenteditor/mobile/resources/img/": "../../apps/documenteditor/mobile/resources/img/**"
}
}
},
"embed": {
"clean": [
"../../deploy/apps/documenteditor/embed"
],
"js": {
"src": [
"../../apps/common/Gateway.js",
"../../apps/common/Analytics.js",
"../../apps/documenteditor/embed/js/ApplicationView.js",
"../../apps/documenteditor/embed/js/ApplicationController.js",
"../../apps/documenteditor/embed/js/application.js"
],
"dist": "../../deploy/apps/documenteditor/embed/app-all.js"
},
"css": {
"src": [
"../../apps/documenteditor/embed/resources/css/application.css"
],
"dist": "../../deploy/apps/documenteditor/embed/resources/css/app-all.css"
},
"copy": {
"index-page": {
"../../deploy/apps/documenteditor/embed/index.html": "../../apps/documenteditor/embed/index.html.deploy"
},
"images-app": {
"../../deploy/apps/documenteditor/embed/resources/img/": "../../apps/documenteditor/embed/resources/img/**"
}
}
},
"extjs": {
"clean": [
"../../deploy/3rdparty/extjs"
],
"copy": {
"script": {
"../../deploy/3rdparty/extjs/": "../../3rdparty/extjs/ext-all.js"
},
"css": {
"../../deploy/3rdparty/extjs/resources/css/": "../../3rdparty/extjs/resources/css/ext-all.css"
},
"images": {
"../../deploy/3rdparty/extjs/resources/themes/images/default/": "../../3rdparty/extjs/resources/themes/images/default/**"
}
}
},
"touch": {
"clean": [
"../../deploy/3rdparty/touch"
],
"copy": {
"script": {
"../../deploy/3rdparty/touch/": "../../3rdparty/touch/sencha-touch-all.js"
}
}
},
"bootstrap": {
"clean": [
"../../deploy/3rdparty/bootstrap"
],
"copy": {
"script": {
"../../deploy/3rdparty/bootstrap/js/": "../../3rdparty/bootstrap/js/bootstrap.min.js"
},
"css": {
"../../deploy/3rdparty/bootstrap/css/": "../../3rdparty/bootstrap/css/bootstrap.min.css"
},
"images": {
"../../deploy/3rdparty/bootstrap/img/": "../../3rdparty/bootstrap/img/*"
}
}
},
"jquery": {
"clean": [
"../../deploy/3rdparty/jquery"
],
"copy": {
"script": {
"../../deploy/3rdparty/jquery/": [
"../../3rdparty/jquery/jquery-1.7.1.min.js",
"../../3rdparty/jquery/jquery-1.8.1.min.js"
],
"../../deploy/3rdparty/jquery/mousewheel/": "../../3rdparty/jquery/mousewheel/jquery.mousewheel.js",
"../../deploy/3rdparty/jquery/jscrollpane/": "../../3rdparty/jquery/jscrollpane/jquery.jscrollpane.min.js"
}
}
},
"megapixel": {
"clean": [
"../../deploy/3rdparty/megapixel"
],
"copy": {
"script": {
"../../deploy/3rdparty/megapixel/": "../../3rdparty/megapixel/megapix-image-min.js"
}
}
},
"sockjs": {
"clean": [
"../../deploy/3rdparty/sockjs"
],
"copy": {
"script": {
"../../deploy/3rdparty/sockjs/": "../../3rdparty/sockjs/sockjs-0.3.min.js"
}
}
},
"xregexp": {
"clean": [
"../../deploy/3rdparty/xregexp"
],
"copy": {
"script": {
"../../deploy/3rdparty/xregexp/": "../../3rdparty/xregexp/xregexp-all-min.js"
}
}
},
"underscore": {
"clean": [
"../../deploy/3rdparty/underscore"
],
"copy": {
"script": {
"../../deploy/3rdparty/underscore/": "../../3rdparty/underscore/underscore-min.js"
}
}
},
"zeroclipboard": {
"clean": [
"../../deploy/3rdparty/ZeroClipboard"
],
"copy": {
"script": {
"../../deploy/3rdparty/ZeroClipboard/": [
"../../3rdparty/ZeroClipboard/ZeroClipboard.min.js",
"../../3rdparty/ZeroClipboard/ZeroClipboard*.swf"
]
}
}
},
"tasks": {
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-touch deploy-3rdparty-megapixel deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
}
}

View File

@@ -0,0 +1,329 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
module.exports = function (grunt) {
var defaultConfig, packageFile, deployConfig, deployFile;
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-contrib-compress");
grunt.loadNpmTasks("grunt-contrib-mincss");
grunt.registerTask("sdk-init", function () {
grunt.initConfig({
clean: packageFile["sdk"]["clean"],
copy: {
sdk: {
files: packageFile["sdk"]["copy"]
}
}
});
});
grunt.registerTask("api-init", function () {
grunt.initConfig({
clean: packageFile["api"]["clean"],
copy: {
api: {
files: packageFile["api"]["copy"]
}
}
});
});
grunt.registerTask("bootstrap-init", function () {
grunt.initConfig({
clean: packageFile["bootstrap"]["clean"],
copy: {
script: {
files: packageFile["bootstrap"]["copy"]["script"]
},
css: {
files: packageFile["bootstrap"]["copy"]["css"]
},
images: {
files: packageFile["bootstrap"]["copy"]["images"]
}
}
});
});
grunt.registerTask("extjs-init", function () {
grunt.initConfig({
clean: packageFile["extjs"]["clean"],
copy: {
script: {
files: packageFile["extjs"]["copy"]["script"]
},
css: {
files: packageFile["extjs"]["copy"]["css"]
},
images: {
files: packageFile["extjs"]["copy"]["images"]
}
}
});
});
grunt.registerTask("megapixel-init", function () {
grunt.initConfig({
clean: packageFile["megapixel"]["clean"],
copy: {
script: {
files: packageFile["megapixel"]["copy"]["script"]
}
}
});
});
grunt.registerTask("touch-init", function () {
grunt.initConfig({
clean: packageFile["touch"]["clean"],
copy: {
script: {
files: packageFile["touch"]["copy"]["script"]
}
}
});
});
grunt.registerTask("jquery-init", function () {
grunt.initConfig({
clean: packageFile["jquery"]["clean"],
copy: {
scripts: {
files: packageFile["jquery"]["copy"]["script"]
}
}
});
});
grunt.registerTask("sockjs-init", function () {
grunt.initConfig({
clean: packageFile["sockjs"]["clean"],
copy: {
script: {
files: packageFile["sockjs"]["copy"]["script"]
}
}
});
});
grunt.registerTask("xregexp-init", function () {
grunt.initConfig({
clean: packageFile["xregexp"]["clean"],
copy: {
script: {
files: packageFile["xregexp"]["copy"]["script"]
}
}
});
});
grunt.registerTask("underscore-init", function () {
grunt.initConfig({
clean: packageFile["underscore"]["clean"],
copy: {
script: {
files: packageFile["underscore"]["copy"]["script"]
}
}
});
});
grunt.registerTask("zeroclipboard-init", function () {
grunt.initConfig({
clean: packageFile["zeroclipboard"]["clean"],
copy: {
script: {
files: packageFile["zeroclipboard"]["copy"]["script"]
}
}
});
});
grunt.registerTask("main-app-init", function () {
grunt.initConfig({
pkg: "<json:" + defaultConfig + ">",
clean: packageFile["main"]["clean"],
meta: {
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.version %> (build:<%= pkg.build %>)\n" + " */"
},
min: {
scriptsview: {
src: ["<banner:meta.banner>"].concat(packageFile["main"]["js"]["srcview"]),
dest: packageFile["main"]["js"]["destview"]
},
scriptsedit: {
src: ["<banner:meta.banner>"].concat(packageFile["main"]["js"]["srcedit"]),
dest: packageFile["main"]["js"]["destedit"]
}
},
mincss: {
styles: {
files: {
"<%= pkg.main.css.destview %>": packageFile["main"]["css"]["srcview"],
"<%= pkg.main.css.destedit %>": packageFile["main"]["css"]["srcedit"]
}
}
},
copy: {
localization: {
files: packageFile["main"]["copy"]["localization"]
},
help: {
files: packageFile["main"]["copy"]["help"]
},
"index-page": {
files: packageFile["main"]["copy"]["index-page"]
},
"images-app": {
files: packageFile["main"]["copy"]["images-app"]
},
"images-common": {
files: packageFile["main"]["copy"]["images-common"]
}
}
});
});
grunt.registerTask("mobile-app-init", function () {
grunt.initConfig({
pkg: "<json:" + defaultConfig + ">",
clean: packageFile["mobile"]["clean"],
meta: {
banner: "/*\n" + ' * Copyright (c) Ascensio System SIA <%= grunt.template.today("yyyy") %>. All rights reserved\n' + " *\n" + " * <%= pkg.homepage %>\n" + " *\n" + " * Version: <%= pkg.version %> (build:<%= pkg.build %>)\n" + " */"
},
min: {
scrips: {
src: ["<banner:meta.banner>"].concat(packageFile["mobile"]["js"]["src"]),
dest: packageFile["mobile"]["js"]["dist"]
}
},
mincss: {
styles: {
files: {
"<%= pkg.mobile.css.normal.dist %>": packageFile["mobile"]["css"]["normal"]["src"],
"<%= pkg.mobile.css.retina.dist %>": packageFile["mobile"]["css"]["retina"]["src"]
}
}
},
copy: {
localization: {
files: packageFile["mobile"]["copy"]["localization"]
},
"index-page": {
files: packageFile["mobile"]["copy"]["index-page"]
},
"images-app": {
files: packageFile["mobile"]["copy"]["images-app"]
}
}
});
});
grunt.registerTask("embed-app-init", function () {
grunt.initConfig({
pkg: "<json:" + defaultConfig + ">",
clean: packageFile["embed"]["clean"],
meta: {
banner: "/*\n" + ' * Copyright (c) Ascensio System SIA <%= grunt.template.today("yyyy") %>. All rights reserved\n' + " *\n" + " * <%= pkg.homepage %>\n" + " *\n" + " * Version: <%= pkg.version %> (build:<%= pkg.build %>)\n" + " */"
},
min: {
scrips: {
src: ["<banner:meta.banner>"].concat(packageFile["embed"]["js"]["src"]),
dest: packageFile["embed"]["js"]["dist"]
}
},
mincss: {
styles: {
files: {
"<%= pkg.embed.css.dist %>": packageFile["embed"]["css"]["src"]
}
}
},
copy: {
"index-page": {
files: packageFile["embed"]["copy"]["index-page"]
},
"images-app": {
files: packageFile["embed"]["copy"]["images-app"]
}
}
});
});
grunt.registerTask("increment-build", function () {
var pkg = grunt.file.readJSON(defaultConfig);
pkg.build = parseInt(pkg.build) + 1;
grunt.file.write(defaultConfig, JSON.stringify(pkg, null, 4));
});
grunt.registerTask("deploy-api", "api-init clean copy");
grunt.registerTask("deploy-sdk", "sdk-init clean copy");
grunt.registerTask("deploy-3rdparty-bootstrap", "bootstrap-init clean copy");
grunt.registerTask("deploy-3rdparty-extjs", "extjs-init clean copy");
grunt.registerTask("deploy-3rdparty-megapixel", "megapixel-init clean copy");
grunt.registerTask("deploy-3rdparty-touch", "touch-init clean copy");
grunt.registerTask("deploy-3rdparty-jquery", "jquery-init clean copy");
grunt.registerTask("deploy-3rdparty-sockjs", "sockjs-init clean copy");
grunt.registerTask("deploy-3rdparty-xregexp", "xregexp-init clean copy");
grunt.registerTask("deploy-3rdparty-underscore", "underscore-init clean copy");
grunt.registerTask("deploy-3rdparty-zeroclipboard", "zeroclipboard-init clean copy");
grunt.registerTask("deploy-app-main", "main-app-init clean min mincss copy");
grunt.registerTask("deploy-app-mobile", "mobile-app-init clean min mincss copy");
grunt.registerTask("deploy-app-embed", "embed-app-init clean min mincss copy");
grunt.registerTask("init-build-documenteditor", "Initialize build DocumentEditor.", function () {
defaultConfig = "documenteditor.json";
packageFile = require("./" + defaultConfig);
if (packageFile) {
grunt.log.ok("DocumentEditor config loaded successfully".green);
} else {
grunt.log.error().writeln("Could not load config file".red);
}
});
grunt.registerTask("init-build-spreadsheeteditor", "Initialize build SpreadsheetEditor.", function () {
defaultConfig = "spreadsheeteditor.json";
packageFile = require("./" + defaultConfig);
if (packageFile) {
grunt.log.ok("SpreadsheetEditor config loaded successfully".green);
} else {
grunt.log.error().writeln("Could not load config file".red);
}
});
grunt.registerTask("init-build-presentationeditor", "Initialize build PresentationEditor.", function () {
defaultConfig = "presentationeditor.json";
packageFile = require("./" + defaultConfig);
if (packageFile) {
grunt.log.ok("PresentationEditor config loaded successfully".green);
} else {
grunt.log.error().writeln("Could not load config file".red);
}
});
grunt.registerTask("deploy-app", "Deploy application.", function () {
if (packageFile) {
if (packageFile["tasks"]["deploy"]) {
grunt.task.run(packageFile["tasks"]["deploy"]);
} else {
grunt.log.error().writeln('Not found "deploy" task in configure'.red);
}
} else {
grunt.log.error().writeln("Is not load configure file.".red);
}
});
grunt.registerTask("deploy-documenteditor", "init-build-documenteditor deploy-app");
grunt.registerTask("deploy-spreadsheeteditor", "init-build-spreadsheeteditor deploy-app");
grunt.registerTask("deploy-presentationeditor", "init-build-presentationeditor deploy-app");
grunt.registerTask("default", "deploy-documenteditor deploy-spreadsheeteditor deploy-presentationeditor");
};

View File

@@ -0,0 +1,8 @@
@echo off
cd /D %~dp0
echo Installation grunt and grunt-contrib
call npm install -g grunt@0.3.17
call npm install grunt-contrib-clean@0.3.2
call npm install grunt-contrib-copy@0.3.2
call npm install grunt-contrib-compress@0.3.2
call npm install grunt-contrib-mincss@0.3.1

View File

@@ -0,0 +1,385 @@
{
"version": "1.0",
"build": 0,
"homepage": "http://www.onlyoffice.com",
"sdk": {
"clean": [
"../../deploy/sdk/Common",
"../../deploy/sdk/PowerPoint"
],
"copy": {
"../../deploy/sdk/Common/": "../../sdk/Common/AllFonts.js",
"../../deploy/sdk/PowerPoint/themes/": "../../sdk/PowerPoint/themes/**",
"../../deploy/sdk/PowerPoint/": [
"../../sdk/PowerPoint/sdk-all.js"
]
}
},
"api": {
"clean": [
"../../deploy/apps/api"
],
"copy": {
"../../deploy/apps/api/documents/": "../../apps/api/**"
}
},
"main": {
"clean": [
"../../deploy/apps/presentationeditor/main"
],
"js": {
"srcview": [
"../../apps/common/Gateway.js",
"../../apps/common/Analytics.js",
"../../apps/common/IrregularStack.js",
"../../apps/common/main/loader.js",
"../../apps/common/main/lib/plugin/ScrollPane.js",
"../../apps/common/main/lib/plugin/DataViewScrollPane.js",
"../../apps/common/main/lib/plugin/TextAreaAutoHeight.js",
"../../apps/common/main/lib/plugin/MenuExpand.js",
"../../apps/common/main/lib/component/LoadMask.js",
"../../apps/common/main/lib/component/SplitColorButton.js",
"../../apps/common/main/lib/component/MetricSpinner.js",
"../../apps/common/main/lib/component/IndeterminateCheckBox.js",
"../../apps/common/main/lib/component/SearchField.js",
"../../apps/common/main/lib/component/util/MetricSettings.js",
"../../apps/common/main/lib/model/User.js",
"../../apps/common/main/lib/model/ChatMessage.js",
"../../apps/common/main/lib/model/Comment.js",
"../../apps/common/main/lib/model/Reply.js",
"../../apps/common/main/lib/store/ChatMessages.js",
"../../apps/common/main/lib/store/Comments.js",
"../../apps/common/main/lib/store/Users.js",
"../../apps/common/main/lib/view/About.js",
"../../apps/common/main/lib/view/Header.js",
"../../apps/common/main/lib/view/ChatPanel.js",
"../../apps/common/main/lib/view/CommentsEditForm.js",
"../../apps/common/main/lib/view/CommentsPanel.js",
"../../apps/common/main/lib/view/CommentsPopover.js",
"../../apps/common/main/lib/view/DocumentAccessDialog.js",
"../../apps/common/main/lib/view/SearchDialog.js",
"../../apps/common/main/lib/view/Participants.js",
"../../apps/common/main/lib/controller/Chat.js",
"../../apps/common/main/lib/controller/CommentsBase.js",
"../../apps/common/main/lib/controller/CommentsList.js",
"../../apps/common/main/lib/controller/CommentsPopover.js",
"../../apps/common/main/lib/view/ComboFonts.js",
"../../apps/common/main/lib/model/Font.js",
"../../apps/common/main/lib/store/Fonts.js",
"../../apps/common/main/lib/controller/Fonts.js",
"../../apps/presentationeditor/main/app/view/DocumentHelp.js",
"../../apps/presentationeditor/main/app/view/DocumentInfo.js",
"../../apps/presentationeditor/main/app/view/DocumentSettings.js",
"../../apps/presentationeditor/main/app/view/File.js",
"../../apps/presentationeditor/main/app/view/CreateFile.js",
"../../apps/presentationeditor/main/app/view/RecentFiles.js",
"../../apps/presentationeditor/main/app/view/DocumentStatusInfo.js",
"../../apps/presentationeditor/main/app/view/DocumentHolder.js",
"../../apps/presentationeditor/main/app/view/DocumentPreview.js",
"../../apps/presentationeditor/main/app/view/MainMenu.js",
"../../apps/presentationeditor/main/app/view/Viewport.js",
"../../apps/presentationeditor/main/app/model/FileTemplate.js",
"../../apps/presentationeditor/main/app/model/RecentFile.js",
"../../apps/presentationeditor/main/app/store/FileTemplates.js",
"../../apps/presentationeditor/main/app/store/RecentFiles.js",
"../../apps/presentationeditor/main/app/controller/CreateFile.js",
"../../apps/presentationeditor/main/app/controller/RecentFiles.js",
"../../apps/presentationeditor/main/app/controller/Search.js",
"../../apps/presentationeditor/main/app/controller/DocumentHolder.js",
"../../apps/presentationeditor/main/app/controller/Main.js",
"../../apps/common/locale.js",
"../../apps/presentationeditor/main/app.js",
"../../apps/presentationeditor/main/restrictions.js",
"../../apps/presentationeditor/main/environment.js.deploy"
],
"destview": "../../deploy/apps/presentationeditor/main/app-view.js",
"srcedit": [
"../../apps/common/main/lib/plugin/GridScrollPane.js",
"../../apps/common/main/lib/plugin/ComboBoxScrollPane.js",
"../../apps/common/main/lib/component/util/RGBColor.js",
"../../apps/common/main/lib/component/DataViewPicker.js",
"../../apps/common/main/lib/component/MenuDataViewPicker.js",
"../../apps/common/main/lib/component/HSBColorPicker.js",
"../../apps/common/main/lib/component/MultiSliderGradient.js",
"../../apps/common/main/lib/component/SynchronizeTip.js",
"../../apps/common/main/lib/component/ComboDataView.js",
"../../apps/common/main/lib/view/ExtendedColorDialog.js",
"../../apps/common/main/lib/view/ImageFromUrlDialog.js",
"../../apps/common/main/lib/view/CopyWarning.js",
"../../apps/common/main/lib/view/AbstractSettingsPanel.js",
"../../apps/common/main/lib/component/ThemeColorPalette.js",
"../../apps/common/main/lib/model/Group.js",
"../../apps/common/main/lib/model/GroupItem.js",
"../../apps/common/main/lib/component/GroupedDataView.js",
"../../apps/presentationeditor/main/app/model/ShapeGroup.js",
"../../apps/presentationeditor/main/app/model/SlideLayout.js",
"../../apps/presentationeditor/main/app/store/ShapeGroups.js",
"../../apps/presentationeditor/main/app/store/SlideLayouts.js",
"../../apps/presentationeditor/main/app/component/DimensionPicker.js",
"../../apps/presentationeditor/main/app/component/MenuDimensionPicker.js",
"../../apps/presentationeditor/main/app/view/InsertTableDialog.js",
"../../apps/presentationeditor/main/app/view/HyperlinkSettings.js",
"../../apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js",
"../../apps/presentationeditor/main/app/view/ShapeSettingsAdvanced.js",
"../../apps/presentationeditor/main/app/view/TableSettingsAdvanced.js",
"../../apps/presentationeditor/main/app/view/ParagraphSettingsAdvanced.js",
"../../apps/presentationeditor/main/app/view/ImageSettings.js",
"../../apps/presentationeditor/main/app/view/ShapeSettings.js",
"../../apps/presentationeditor/main/app/view/SlideSettings.js",
"../../apps/presentationeditor/main/app/view/ParagraphSettings.js",
"../../apps/presentationeditor/main/app/view/SlideSizeSettings.js",
"../../apps/presentationeditor/main/app/view/TableSettings.js",
"../../apps/presentationeditor/main/app/view/RightPanel.js",
"../../apps/presentationeditor/main/app/view/RightMenu.js",
"../../apps/presentationeditor/main/app/view/Toolbar.js",
"../../apps/presentationeditor/main/app/controller/Toolbar.js"
],
"destedit": "../../deploy/apps/presentationeditor/main/app-edit.js"
},
"css": {
"srcedit": [
"../../apps/common/main/resources/css/dataview-picker.css",
"../../apps/common/main/resources/css/hsb-colorpicker.css",
"../../apps/common/main/resources/css/themecolorpalette.css",
"../../apps/common/main/resources/css/comments-panel.css",
"../../apps/common/main/resources/css/comments-popover.css",
"../../apps/common/main/resources/css/grouped-data-view.css",
"../../apps/common/main/resources/css/dataview-combo.css",
"../../apps/common/main/resources/css/synchronize-tip.css",
"../../apps/common/main/resources/css/multislider-gradient.css",
"../../apps/presentationeditor/main/resources/css/right-panels.css",
"../../apps/presentationeditor/main/resources/css/toolbar.css",
"../../apps/presentationeditor/main/resources/css/dimension-picker.css",
"../../apps/presentationeditor/main/resources/css/advanced-settings-dialog.css"
],
"destedit": "../../deploy/apps/presentationeditor/main/resources/css/app-edit.css",
"srcview": [
"../../apps/common/main/resources/css/load-mask.css",
"../../apps/common/main/resources/css/jquery.jscrollpane.css",
"../../apps/common/main/resources/css/chat-panel.css",
"../../apps/common/main/resources/css/header.css",
"../../apps/common/main/resources/css/asc.css",
"../../apps/common/main/resources/css/about.css",
"../../apps/common/main/resources/css/searchfield.css",
"../../apps/common/main/resources/css/searchdialog.css",
"../../apps/common/main/resources/css/participantspanel.css",
"../../apps/presentationeditor/main/resources/css/pres-main-colors.css",
"../../apps/presentationeditor/main/resources/css/header.css",
"../../apps/presentationeditor/main/resources/css/document-holder.css",
"../../apps/presentationeditor/main/resources/css/document-statusinfo.css",
"../../apps/presentationeditor/main/resources/css/document-preview.css",
"../../apps/presentationeditor/main/resources/css/main-menu.css",
"../../apps/presentationeditor/main/resources/css/file.css",
"../../apps/presentationeditor/main/resources/css/file-create-new.css",
"../../apps/presentationeditor/main/resources/css/file-open-recent.css"
],
"destview": "../../deploy/apps/presentationeditor/main/resources/css/app-view.css"
},
"copy": {
"localization": {
"../../deploy/apps/presentationeditor/main/locale/": "../../apps/presentationeditor/main/locale/*"
},
"help": {
"../../deploy/apps/presentationeditor/main/resources/help/en/": "../../apps/presentationeditor/main/resources/help/en/**",
"../../deploy/apps/presentationeditor/main/resources/help/de/": "../../apps/presentationeditor/main/resources/help/de/**",
"../../deploy/apps/presentationeditor/main/resources/help/es/": "../../apps/presentationeditor/main/resources/help/es/**",
"../../deploy/apps/presentationeditor/main/resources/help/it/": "../../apps/presentationeditor/main/resources/help/it/**",
"../../deploy/apps/presentationeditor/main/resources/help/ru/": "../../apps/presentationeditor/main/resources/help/ru/**"
},
"index-page": {
"../../deploy/apps/presentationeditor/main/index.html": "../../apps/presentationeditor/main/index.html.deploy"
},
"images-app": {
"../../deploy/apps/presentationeditor/main/resources/img/": "../../apps/presentationeditor/main/resources/img/**"
},
"images-common": {
"../../deploy/apps/presentationeditor/main/Images/": "../../sdk/PowerPoint/Images/*.cur",
"../../deploy/apps/presentationeditor/main/resources/img/": "../../apps/common/main/resources/img/**"
}
}
},
"mobile": {
"clean": [
"../../deploy/apps/presentationeditor/mobile"
],
"js": {
"src": [
"../../apps/common/Gateway.js",
"../../apps/common/Analytics.js",
"../../apps/common/mobile/loader.js",
"../../apps/presentationeditor/mobile/app/view/Main.js",
"../../apps/presentationeditor/mobile/app/view/phone/toolbar/View.js",
"../../apps/presentationeditor/mobile/app/view/phone/Main.js",
"../../apps/presentationeditor/mobile/app/view/tablet/toolbar/View.js",
"../../apps/presentationeditor/mobile/app/view/tablet/Main.js",
"../../apps/presentationeditor/mobile/app/controller/Presentation.js",
"../../apps/presentationeditor/mobile/app/controller/Main.js",
"../../apps/presentationeditor/mobile/app/controller/phone/Main.js",
"../../apps/presentationeditor/mobile/app/controller/tablet/Main.js",
"../../apps/presentationeditor/mobile/app/controller/toolbar/View.js",
"../../apps/presentationeditor/mobile/app/profile/Phone.js",
"../../apps/presentationeditor/mobile/app/profile/Tablet.js",
"../../apps/common/locale.js",
"../../apps/presentationeditor/mobile/app.js"
],
"dist": "../../deploy/apps/presentationeditor/mobile/app-all.js"
},
"css": {
"normal": {
"src": [
"../../apps/presentationeditor/mobile/resources/css/application-normal.css"
],
"dist": "../../deploy/apps/presentationeditor/mobile/resources/css/application-normal.css"
},
"retina": {
"src": [
"../../apps/presentationeditor/mobile/resources/css/application-retina.css"
],
"dist": "../../deploy/apps/presentationeditor/mobile/resources/css/application-retina.css"
}
},
"copy": {
"index-page": {
"../../deploy/apps/presentationeditor/mobile/index.html": "../../apps/presentationeditor/mobile/index.html.deploy"
},
"localization": {
"../../deploy/apps/presentationeditor/mobile/locale/": "../../apps/presentationeditor/mobile/locale/*"
},
"images-app": {
"../../deploy/apps/presentationeditor/mobile/resources/img/": "../../apps/presentationeditor/mobile/resources/img/**"
}
}
},
"embed": {
"clean": [
"../../deploy/apps/presentationeditor/embed"
],
"js": {
"src": [
"../../apps/common/Gateway.js",
"../../apps/common/Analytics.js",
"../../apps/presentationeditor/embed/js/ApplicationView.js",
"../../apps/presentationeditor/embed/js/ApplicationController.js",
"../../apps/presentationeditor/embed/js/application.js"
],
"dist": "../../deploy/apps/presentationeditor/embed/app-all.js"
},
"css": {
"src": [
"../../apps/presentationeditor/embed/resources/css/application.css"
],
"dist": "../../deploy/apps/presentationeditor/embed/resources/css/app-all.css"
},
"copy": {
"index-page": {
"../../deploy/apps/presentationeditor/embed/index.html": "../../apps/presentationeditor/embed/index.html.deploy"
},
"images-app": {
"../../deploy/apps/presentationeditor/embed/resources/img/": "../../apps/presentationeditor/embed/resources/img/**"
}
}
},
"extjs": {
"clean": [
"../../deploy/3rdparty/extjs"
],
"copy": {
"script": {
"../../deploy/3rdparty/extjs/": "../../3rdparty/extjs/ext-all.js"
},
"css": {
"../../deploy/3rdparty/extjs/resources/css/": "../../3rdparty/extjs/resources/css/ext-all.css"
},
"images": {
"../../deploy/3rdparty/extjs/resources/themes/images/default/": "../../3rdparty/extjs/resources/themes/images/default/**"
}
}
},
"touch": {
"clean": [
"../../deploy/3rdparty/touch"
],
"copy": {
"script": {
"../../deploy/3rdparty/touch/": "../../3rdparty/touch/sencha-touch-all.js"
}
}
},
"bootstrap": {
"clean": [
"../../deploy/3rdparty/bootstrap"
],
"copy": {
"script": {
"../../deploy/3rdparty/bootstrap/js/": "../../3rdparty/bootstrap/js/bootstrap.min.js"
},
"css": {
"../../deploy/3rdparty/bootstrap/css/": "../../3rdparty/bootstrap/css/bootstrap.min.css"
},
"images": {
"../../deploy/3rdparty/bootstrap/img/": "../../3rdparty/bootstrap/img/*"
}
}
},
"jquery": {
"clean": [
"../../deploy/3rdparty/jquery"
],
"copy": {
"script": {
"../../deploy/3rdparty/jquery/": [
"../../3rdparty/jquery/jquery-1.7.1.min.js",
"../../3rdparty/jquery/jquery-1.8.1.min.js"
],
"../../deploy/3rdparty/jquery/mousewheel/": "../../3rdparty/jquery/mousewheel/jquery.mousewheel.js",
"../../deploy/3rdparty/jquery/jscrollpane/": "../../3rdparty/jquery/jscrollpane/jquery.jscrollpane.min.js"
}
}
},
"sockjs": {
"clean": [
"../../deploy/3rdparty/sockjs"
],
"copy": {
"script": {
"../../deploy/3rdparty/sockjs/": "../../3rdparty/sockjs/sockjs-0.3.min.js"
}
}
},
"xregexp": {
"clean": [
"../../deploy/3rdparty/xregexp"
],
"copy": {
"script": {
"../../deploy/3rdparty/xregexp/": "../../3rdparty/xregexp/xregexp-all-min.js"
}
}
},
"underscore": {
"clean": [
"../../deploy/3rdparty/underscore"
],
"copy": {
"script": {
"../../deploy/3rdparty/underscore/": "../../3rdparty/underscore/underscore-min.js"
}
}
},
"zeroclipboard": {
"clean": [
"../../deploy/3rdparty/ZeroClipboard"
],
"copy": {
"script": {
"../../deploy/3rdparty/ZeroClipboard/": [
"../../3rdparty/ZeroClipboard/ZeroClipboard.min.js",
"../../3rdparty/ZeroClipboard/ZeroClipboard*.swf"
]
}
}
},
"tasks": {
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-touch deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
}
}

View File

@@ -0,0 +1,403 @@
{
"version": "1.0",
"build": 0,
"homepage": "http://www.onlyoffice.com",
"sdk": {
"clean": [
"../../deploy/sdk/Common",
"../../deploy/sdk/Excel"
],
"copy": {
"../../deploy/sdk/Common/": "../../sdk/Common/AllFonts.js",
"../../deploy/sdk/Excel/css/": "../../sdk/Excel/css/*.css",
"../../deploy/sdk/Word/Images/": "../../sdk/Word/Images/*.cur",
"../../deploy/sdk/Excel/": "../../sdk/Excel/sdk-all.js"
}
},
"api": {
"clean": [
"../../deploy/apps/api"
],
"copy": {
"../../deploy/apps/api/documents/": "../../apps/api/**"
}
},
"main": {
"clean": [
"../../deploy/apps/spreadsheeteditor/main"
],
"js": {
"srcview": [
"../../apps/common/Gateway.js",
"../../apps/common/Analytics.js",
"../../apps/common/IrregularStack.js",
"../../apps/common/main/loader.js",
"../../apps/common/main/lib/plugin/ScrollPane.js",
"../../apps/common/main/lib/plugin/DataViewScrollPane.js",
"../../apps/common/main/lib/plugin/ComboBoxScrollPane.js",
"../../apps/common/main/lib/plugin/TextAreaAutoHeight.js",
"../../apps/common/main/lib/plugin/MenuExpand.js",
"../../apps/common/main/lib/component/LoadMask.js",
"../../apps/common/main/lib/component/MetricSpinner.js",
"../../apps/common/main/lib/component/IndeterminateCheckBox.js",
"../../apps/common/main/lib/component/SearchField.js",
"../../apps/common/main/lib/component/util/MetricSettings.js",
"../../apps/common/main/lib/model/User.js",
"../../apps/common/main/lib/model/ChatMessage.js",
"../../apps/common/main/lib/model/Comment.js",
"../../apps/common/main/lib/model/Reply.js",
"../../apps/common/main/lib/store/ChatMessages.js",
"../../apps/common/main/lib/store/Comments.js",
"../../apps/common/main/lib/store/Users.js",
"../../apps/common/main/lib/view/About.js",
"../../apps/common/main/lib/view/Header.js",
"../../apps/common/main/lib/view/ChatPanel.js",
"../../apps/common/main/lib/view/CommentsEditForm.js",
"../../apps/common/main/lib/view/CommentsPanel.js",
"../../apps/common/main/lib/view/CommentsPopover.js",
"../../apps/common/main/lib/view/SearchDialog.js",
"../../apps/common/main/lib/view/Participants.js",
"../../apps/common/main/lib/view/DocumentAccessDialog.js",
"../../apps/common/main/lib/controller/Chat.js",
"../../apps/common/main/lib/controller/CommentsBase.js",
"../../apps/common/main/lib/controller/CommentsList.js",
"../../apps/common/main/lib/controller/CommentsPopover.js",
"../../apps/spreadsheeteditor/main/app/ux/BoxReorderer.js",
"../../apps/spreadsheeteditor/main/app/plugin/TabBarScroller.js",
"../../apps/spreadsheeteditor/main/app/plugin/TabReorderer.js",
"../../apps/spreadsheeteditor/main/app/view/OpenDialog.js",
"../../apps/spreadsheeteditor/main/app/view/CreateFile.js",
"../../apps/spreadsheeteditor/main/app/view/RecentFiles.js",
"../../apps/spreadsheeteditor/main/app/view/DocumentInfo.js",
"../../apps/spreadsheeteditor/main/app/view/DocumentHelp.js",
"../../apps/spreadsheeteditor/main/app/view/DocumentHolder.js",
"../../apps/spreadsheeteditor/main/app/view/DocumentStatusInfo.js",
"../../apps/spreadsheeteditor/main/app/view/MainMenu.js",
"../../apps/spreadsheeteditor/main/app/view/MainSettingsGeneral.js",
"../../apps/spreadsheeteditor/main/app/view/MainSettingsPrint.js",
"../../apps/spreadsheeteditor/main/app/view/DocumentSettings.js",
"../../apps/spreadsheeteditor/main/app/view/File.js",
"../../apps/spreadsheeteditor/main/app/view/CellInfo.js",
"../../apps/spreadsheeteditor/main/app/view/Viewport.js",
"../../apps/spreadsheeteditor/main/app/model/FileTemplate.js",
"../../apps/spreadsheeteditor/main/app/model/RecentFile.js",
"../../apps/spreadsheeteditor/main/app/store/FileTemplates.js",
"../../apps/spreadsheeteditor/main/app/store/RecentFiles.js",
"../../apps/spreadsheeteditor/main/app/controller/RecentFiles.js",
"../../apps/spreadsheeteditor/main/app/controller/DocumentHolder.js",
"../../apps/spreadsheeteditor/main/app/controller/Main.js",
"../../apps/spreadsheeteditor/main/app/controller/CreateFile.js",
"../../apps/spreadsheeteditor/main/app/controller/CellEdit.js",
"../../apps/spreadsheeteditor/main/app/controller/Search.js",
"../../apps/common/locale.js",
"../../apps/spreadsheeteditor/main/app.js",
"../../apps/spreadsheeteditor/main/restrictions.js",
"../../apps/spreadsheeteditor/main/environment.js.deploy"
],
"destview": "../../deploy/apps/spreadsheeteditor/main/app-view.js",
"srcedit": [
"../../apps/common/main/lib/plugin/GridScrollPane.js",
"../../apps/common/main/lib/component/util/RGBColor.js",
"../../apps/common/main/lib/component/HSBColorPicker.js",
"../../apps/common/main/lib/view/ExtendedColorDialog.js",
"../../apps/common/main/lib/component/DataViewPicker.js",
"../../apps/common/main/lib/component/MenuDataViewPicker.js",
"../../apps/common/main/lib/component/ThemeColorPalette.js",
"../../apps/common/main/lib/component/SplitColorButton.js",
"../../apps/common/main/lib/component/SynchronizeTip.js",
"../../apps/common/main/lib/component/ComboDataView.js",
"../../apps/common/main/lib/component/MultiSliderGradient.js",
"../../apps/common/main/lib/view/CopyWarning.js",
"../../apps/common/main/lib/view/ImageFromUrlDialog.js",
"../../apps/common/main/lib/view/ComboFonts.js",
"../../apps/common/main/lib/view/AbstractSettingsPanel.js",
"../../apps/common/main/lib/model/Font.js",
"../../apps/common/main/lib/store/Fonts.js",
"../../apps/common/main/lib/controller/Fonts.js",
"../../apps/common/main/lib/model/Group.js",
"../../apps/common/main/lib/model/GroupItem.js",
"../../apps/common/main/lib/component/GroupedDataView.js",
"../../apps/spreadsheeteditor/main/app/model/Formula.js",
"../../apps/spreadsheeteditor/main/app/model/TableTemplate.js",
"../../apps/spreadsheeteditor/main/app/model/ShapeGroup.js",
"../../apps/spreadsheeteditor/main/app/store/Formulas.js",
"../../apps/spreadsheeteditor/main/app/store/FormulaGroups.js",
"../../apps/spreadsheeteditor/main/app/store/TableTemplates.js",
"../../apps/spreadsheeteditor/main/app/store/ShapeGroups.js",
"../../apps/spreadsheeteditor/main/app/view/FormulaDialog.js",
"../../apps/spreadsheeteditor/main/app/view/SetValueDialog.js",
"../../apps/spreadsheeteditor/main/app/view/SheetCopyDialog.js",
"../../apps/spreadsheeteditor/main/app/view/SheetRenameDialog.js",
"../../apps/spreadsheeteditor/main/app/view/PrintSettings.js",
"../../apps/spreadsheeteditor/main/app/view/HyperlinkSettings.js",
"../../apps/spreadsheeteditor/main/app/view/Toolbar.js",
"../../apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js",
"../../apps/spreadsheeteditor/main/app/view/DigitalFilterDialog.js",
"../../apps/spreadsheeteditor/main/app/view/TableOptionsDialog.js",
"../../apps/spreadsheeteditor/main/app/view/ShapeSettingsAdvanced.js",
"../../apps/spreadsheeteditor/main/app/view/ParagraphSettingsAdvanced.js",
"../../apps/spreadsheeteditor/main/app/view/ImageSettings.js",
"../../apps/spreadsheeteditor/main/app/view/ShapeSettings.js",
"../../apps/spreadsheeteditor/main/app/view/ParagraphSettings.js",
"../../apps/spreadsheeteditor/main/app/view/RightPanel.js",
"../../apps/spreadsheeteditor/main/app/view/RightMenu.js",
"../../apps/spreadsheeteditor/main/app/controller/Toolbar.js",
"../../apps/spreadsheeteditor/main/app/controller/Print.js"
],
"destedit": "../../deploy/apps/spreadsheeteditor/main/app-edit.js"
},
"css": {
"srcview": [
"../../apps/common/main/resources/css/load-mask.css",
"../../apps/common/main/resources/css/jquery.jscrollpane.css",
"../../apps/common/main/resources/css/chat-panel.css",
"../../apps/common/main/resources/css/header.css",
"../../apps/common/main/resources/css/asc.css",
"../../apps/common/main/resources/css/about.css",
"../../apps/common/main/resources/css/searchfield.css",
"../../apps/common/main/resources/css/searchdialog.css",
"../../apps/common/main/resources/css/participantspanel.css",
"../../apps/spreadsheeteditor/main/resources/css/ss-main-colors.css",
"../../apps/spreadsheeteditor/main/resources/css/document-holder.css",
"../../apps/spreadsheeteditor/main/resources/css/document-statusinfo.css",
"../../apps/spreadsheeteditor/main/resources/css/file-create-new.css",
"../../apps/spreadsheeteditor/main/resources/css/file-open-recent.css",
"../../apps/spreadsheeteditor/main/resources/css/file.css",
"../../apps/spreadsheeteditor/main/resources/css/header.css",
"../../apps/spreadsheeteditor/main/resources/css/main-menu.css",
"../../apps/spreadsheeteditor/main/resources/css/tab-bar.css",
"../../apps/spreadsheeteditor/main/resources/css/general.css"
],
"destview": "../../deploy/apps/spreadsheeteditor/main/resources/css/app-view.css",
"srcedit": [
"../../apps/common/main/resources/css/dataview-picker.css",
"../../apps/common/main/resources/css/hsb-colorpicker.css",
"../../apps/common/main/resources/css/themecolorpalette.css",
"../../apps/common/main/resources/css/dataview-combo.css",
"../../apps/common/main/resources/css/comments-panel.css",
"../../apps/common/main/resources/css/comments-popover.css",
"../../apps/common/main/resources/css/synchronize-tip.css",
"../../apps/common/main/resources/css/grouped-data-view.css",
"../../apps/common/main/resources/css/multislider-gradient.css",
"../../apps/spreadsheeteditor/main/resources/css/right-panels.css",
"../../apps/spreadsheeteditor/main/resources/css/toolbar.css",
"../../apps/spreadsheeteditor/main/resources/css/advanced-settings-dialog.css"
],
"destedit": "../../deploy/apps/spreadsheeteditor/main/resources/css/app-edit.css"
},
"copy": {
"localization": {
"../../deploy/apps/spreadsheeteditor/main/locale/": "../../apps/spreadsheeteditor/main/locale/*"
},
"help": {
"../../deploy/apps/spreadsheeteditor/main/resources/help/en/": "../../apps/spreadsheeteditor/main/resources/help/en/**",
"../../deploy/apps/spreadsheeteditor/main/resources/help/fr/": "../../apps/spreadsheeteditor/main/resources/help/fr/**",
"../../deploy/apps/spreadsheeteditor/main/resources/help/es/": "../../apps/spreadsheeteditor/main/resources/help/es/**",
"../../deploy/apps/spreadsheeteditor/main/resources/help/it/": "../../apps/spreadsheeteditor/main/resources/help/it/**",
"../../deploy/apps/spreadsheeteditor/main/resources/help/ru/": "../../apps/spreadsheeteditor/main/resources/help/ru/**"
},
"index-page": {
"../../deploy/apps/spreadsheeteditor/main/index.html": "../../apps/spreadsheeteditor/main/index.html.deploy"
},
"images-app": {
"../../deploy/apps/spreadsheeteditor/main/resources/img/": "../../apps/spreadsheeteditor/main/resources/img/**"
},
"images-common": {
"../../deploy/apps/spreadsheeteditor/main/resources/img/": "../../apps/common/main/resources/img/**"
}
}
},
"mobile": {
"clean": [
"../../deploy/apps/spreadsheeteditor/mobile"
],
"js": {
"src": [
"../../apps/common/Gateway.js",
"../../apps/common/Analytics.js",
"../../apps/common/mobile/loader.js",
"../../apps/spreadsheeteditor/mobile/app/model/Worksheet.js",
"../../apps/spreadsheeteditor/mobile/app/store/Worksheets.js",
"../../apps/spreadsheeteditor/mobile/app/view/OpenCsvPanel.js",
"../../apps/spreadsheeteditor/mobile/app/view/WorksheetList.js",
"../../apps/spreadsheeteditor/mobile/app/view/Main.js",
"../../apps/spreadsheeteditor/mobile/app/view/phone/toolbar/Search.js",
"../../apps/spreadsheeteditor/mobile/app/view/phone/toolbar/View.js",
"../../apps/spreadsheeteditor/mobile/app/view/phone/Main.js",
"../../apps/spreadsheeteditor/mobile/app/view/tablet/toolbar/Search.js",
"../../apps/spreadsheeteditor/mobile/app/view/tablet/toolbar/View.js",
"../../apps/spreadsheeteditor/mobile/app/view/tablet/Main.js",
"../../apps/spreadsheeteditor/mobile/app/controller/ApiEvents.js",
"../../apps/spreadsheeteditor/mobile/app/controller/Document.js",
"../../apps/spreadsheeteditor/mobile/app/controller/Search.js",
"../../apps/spreadsheeteditor/mobile/app/controller/WorksheetList.js",
"../../apps/spreadsheeteditor/mobile/app/controller/Main.js",
"../../apps/spreadsheeteditor/mobile/app/controller/phone/Main.js",
"../../apps/spreadsheeteditor/mobile/app/controller/tablet/Main.js",
"../../apps/spreadsheeteditor/mobile/app/controller/toolbar/View.js",
"../../apps/spreadsheeteditor/mobile/app/profile/Phone.js",
"../../apps/spreadsheeteditor/mobile/app/profile/Tablet.js",
"../../apps/common/locale.js",
"../../apps/spreadsheeteditor/mobile/app.js"
],
"dist": "../../deploy/apps/spreadsheeteditor/mobile/app-all.js"
},
"css": {
"normal": {
"src": [
"../../apps/spreadsheeteditor/mobile/resources/css/application-normal.css"
],
"dist": "../../deploy/apps/spreadsheeteditor/mobile/resources/css/application-normal.css"
},
"retina": {
"src": [
"../../apps/spreadsheeteditor/mobile/resources/css/application-retina.css"
],
"dist": "../../deploy/apps/spreadsheeteditor/mobile/resources/css/application-retina.css"
}
},
"copy": {
"index-page": {
"../../deploy/apps/spreadsheeteditor/mobile/index.html": "../../apps/spreadsheeteditor/mobile/index.html.deploy"
},
"localization": {
"../../deploy/apps/spreadsheeteditor/mobile/locale/": "../../apps/spreadsheeteditor/mobile/locale/*"
},
"images-app": {
"../../deploy/apps/spreadsheeteditor/mobile/resources/img/": "../../apps/spreadsheeteditor/mobile/resources/img/**"
}
}
},
"embed": {
"clean": [
"../../deploy/apps/spreadsheeteditor/embed"
],
"js": {
"src": [
"../../apps/common/Gateway.js",
"../../apps/common/Analytics.js",
"../../apps/spreadsheeteditor/embed/js/ApplicationView.js",
"../../apps/spreadsheeteditor/embed/js/ApplicationController.js",
"../../apps/spreadsheeteditor/embed/js/application.js"
],
"dist": "../../deploy/apps/spreadsheeteditor/embed/app-all.js"
},
"css": {
"src": [
"../../apps/spreadsheeteditor/embed/resources/css/application.css"
],
"dist": "../../deploy/apps/spreadsheeteditor/embed/resources/css/app-all.css"
},
"copy": {
"index-page": {
"../../deploy/apps/spreadsheeteditor/embed/index.html": "../../apps/spreadsheeteditor/embed/index.html.deploy"
},
"images-app": {
"../../deploy/apps/spreadsheeteditor/embed/resources/img/": "../../apps/spreadsheeteditor/embed/resources/img/**"
}
}
},
"extjs": {
"clean": [
"../../deploy/3rdparty/extjs"
],
"copy": {
"script": {
"../../deploy/3rdparty/extjs/": "../../3rdparty/extjs/ext-all.js"
},
"css": {
"../../deploy/3rdparty/extjs/resources/css/": "../../3rdparty/extjs/resources/css/ext-all.css"
},
"images": {
"../../deploy/3rdparty/extjs/resources/themes/images/default/": "../../3rdparty/extjs/resources/themes/images/default/**"
}
}
},
"touch": {
"clean": [
"../../deploy/3rdparty/touch"
],
"copy": {
"script": {
"../../deploy/3rdparty/touch/": "../../3rdparty/touch/sencha-touch-all.js"
}
}
},
"bootstrap": {
"clean": [
"../../deploy/3rdparty/bootstrap"
],
"copy": {
"script": {
"../../deploy/3rdparty/bootstrap/js/": "../../3rdparty/bootstrap/js/bootstrap.min.js"
},
"css": {
"../../deploy/3rdparty/bootstrap/css/": "../../3rdparty/bootstrap/css/bootstrap.min.css"
},
"images": {
"../../deploy/3rdparty/bootstrap/img/": "../../3rdparty/bootstrap/img/*"
}
}
},
"jquery": {
"clean": [
"../../deploy/3rdparty/jquery"
],
"copy": {
"script": {
"../../deploy/3rdparty/jquery/": [
"../../3rdparty/jquery/jquery-1.7.1.min.js",
"../../3rdparty/jquery/jquery-1.8.1.min.js"
],
"../../deploy/3rdparty/jquery/mousewheel/": "../../3rdparty/jquery/mousewheel/jquery.mousewheel.js",
"../../deploy/3rdparty/jquery/jscrollpane/": "../../3rdparty/jquery/jscrollpane/jquery.jscrollpane.min.js"
}
}
},
"sockjs": {
"clean": [
"../../deploy/3rdparty/sockjs"
],
"copy": {
"script": {
"../../deploy/3rdparty/sockjs/": "../../3rdparty/sockjs/sockjs-0.3.min.js"
}
}
},
"xregexp": {
"clean": [
"../../deploy/3rdparty/xregexp"
],
"copy": {
"script": {
"../../deploy/3rdparty/xregexp/": "../../3rdparty/xregexp/xregexp-all-min.js"
}
}
},
"underscore": {
"clean": [
"../../deploy/3rdparty/underscore"
],
"copy": {
"script": {
"../../deploy/3rdparty/underscore/": "../../3rdparty/underscore/underscore-min.js"
}
}
},
"zeroclipboard": {
"clean": [
"../../deploy/3rdparty/ZeroClipboard"
],
"copy": {
"script": {
"../../deploy/3rdparty/ZeroClipboard/": [
"../../3rdparty/ZeroClipboard/ZeroClipboard.min.js",
"../../3rdparty/ZeroClipboard/ZeroClipboard*.swf"
]
}
}
},
"tasks": {
"deploy": "increment-build deploy-api deploy-sdk deploy-3rdparty-bootstrap deploy-3rdparty-extjs deploy-3rdparty-touch deploy-3rdparty-jquery deploy-3rdparty-sockjs deploy-3rdparty-xregexp deploy-3rdparty-underscore deploy-3rdparty-zeroclipboard deploy-app-main deploy-app-mobile deploy-app-embed"
}
}