3.0 source code

This commit is contained in:
agolybev
2015-04-28 17:59:00 +03:00
parent c69fd34bdd
commit 7b3b2248e5
16311 changed files with 1445974 additions and 3108429 deletions

3
OfficeWeb/build/.bowerrc Normal file
View File

@@ -0,0 +1,3 @@
{
"directory": "../vendor"
}

View File

@@ -0,0 +1,326 @@
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* 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 _ = require("lodash"),
defaultConfig,
packageFile,
revisionHash = "@@REVISION",
revisionTimeStamp = "@@REVISIONDATE";
grunt.loadNpmTasks("grunt-contrib");
grunt.loadNpmTasks("grunt-text-replace");
grunt.loadNpmTasks("grunt-mocha");
function doRegisterTask(name, callbackConfig) {
return grunt.registerTask(name + "-init", function () {
var additionalConfig = {},
initConfig = {};
if (_.isFunction(callbackConfig)) {
additionalConfig = callbackConfig.call(this, defaultConfig, packageFile);
}
if (!_.isUndefined(packageFile[name]["clean"])) {
initConfig["clean"] = {
options: {
force: true
},
files: packageFile[name]["clean"]
};
}
if (!_.isUndefined(packageFile[name]["copy"])) {
initConfig["copy"] = packageFile[name]["copy"];
}
grunt.initConfig(_.assign(initConfig, additionalConfig || {}));
});
}
function doRegisterInitializeAppTask(name, appName, configFile) {
return grunt.registerTask("init-build-" + name, "Initialize build " + appName, function () {
defaultConfig = configFile;
packageFile = require("./" + defaultConfig);
if (packageFile) {
grunt.log.ok(appName + " config loaded successfully".green);
} else {
grunt.log.error().writeln("Could not load config file".red);
}
});
}
grunt.registerTask("init-config", "Initialize build script", function () {
var exec = require("child_process").exec,
done = this.async(),
commandsRef = 0;
function doneTask() {
if (--commandsRef <= 0) {
done(true);
}
}
function doCommand(command, callback) {
commandsRef++;
exec(command, callback);
}
doCommand('hg log -r -1 --template "{node|short}"', function (error, stdout, stderr) {
if (error) {
grunt.log.writeln("Error: " + error);
} else {
revisionHash = stdout;
}
doneTask();
});
doCommand('hg log -r -1 --template "{date|isodate}"', function (error, stdout, stderr) {
if (error) {
grunt.log.writeln("Error: " + error);
} else {
revisionTimeStamp = stdout;
}
doneTask();
});
});
grunt.initConfig({
mocha: {
test: {
options: {
reporter: "Spec"
},
src: ["../test/common/index.html"]
}
},
jshint: {
options: {
curly: true,
eqeqeq: true,
eqnull: true,
browser: true,
globals: {
jQuery: true
},
force: true
},
common: ["../apps/common/main/lib/**/*.js"]
}
});
doRegisterTask("sdk");
doRegisterTask("api");
doRegisterTask("sockjs");
doRegisterTask("xregexp");
doRegisterTask("megapixel");
doRegisterTask("touch");
doRegisterTask("jquery");
doRegisterTask("underscore");
doRegisterTask("zeroclipboard");
doRegisterTask("bootstrap");
doRegisterTask("requirejs", function (defaultConfig, packageFile) {
return {
uglify: {
pkg: grunt.file.readJSON(defaultConfig),
options: {
banner: "/** vim: et:ts=4:sw=4:sts=4\n" + " * @license RequireJS 2.1.2 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.\n" + " * Available via the MIT or new BSD license.\n" + " * see: http://github.com/jrburke/requirejs for details\n" + " */\n"
},
build: {
src: packageFile["requirejs"]["min"]["src"],
dest: packageFile["requirejs"]["min"]["dest"]
}
}
};
});
grunt.registerTask("main-app-init", function () {
grunt.initConfig({
pkg: grunt.file.readJSON(defaultConfig),
clean: {
options: {
force: true
},
files: packageFile["main"]["clean"]
},
less: {
options: {
cleancss: true
},
production: {
files: {
"<%= pkg.main.less.files.dest %>": packageFile["main"]["less"]["files"]["src"]
}
}
},
requirejs: {
compile: {
options: packageFile["main"]["js"]["requirejs"]["options"]
}
},
replace: {
fixLessUrl: {
src: ["<%= pkg.main.less.files.dest %>"],
overwrite: true,
replacements: packageFile["main"]["less"]["replacements"]
}
},
concat: {
options: {
stripBanners: true,
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 %>, rev:" + revisionHash + ", date:" + revisionTimeStamp + ")\n" + " */\n"
},
dist: {
src: [packageFile["main"]["js"]["requirejs"]["options"]["out"]],
dest: packageFile["main"]["js"]["requirejs"]["options"]["out"]
}
},
imagemin: {
options: {
optimizationLevel: 3
},
dynamic: {
files: [].concat(packageFile["main"]["imagemin"]["images-app"]).concat(packageFile["main"]["imagemin"]["images-common"])
}
},
copy: {
localization: {
files: packageFile["main"]["copy"]["localization"]
},
help: {
files: packageFile["main"]["copy"]["help"]
},
"index-page": {
files: packageFile["main"]["copy"]["index-page"]
}
}
});
});
grunt.registerTask("mobile-app-init", function () {
grunt.initConfig({
pkg: grunt.file.readJSON(defaultConfig),
clean: {
options: {
force: true
},
files: packageFile["mobile"]["clean"]
},
uglify: {
options: {
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" + " */\n"
},
build: {
src: packageFile["mobile"]["js"]["src"],
dest: packageFile["mobile"]["js"]["dist"]
}
},
cssmin: {
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: grunt.file.readJSON(defaultConfig),
clean: {
options: {
force: true
},
files: packageFile["embed"]["clean"]
},
uglify: {
options: {
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" + " */\n"
},
build: {
src: packageFile["embed"]["js"]["src"],
dest: packageFile["embed"]["js"]["dist"]
}
},
less: {
production: {
options: {
cleancss: true
},
files: {
"<%= pkg.embed.less.dist %>": packageFile["embed"]["less"]["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-sockjs", ["sockjs-init", "clean", "copy"]);
grunt.registerTask("deploy-xregexp", ["xregexp-init", "clean", "copy"]);
grunt.registerTask("deploy-megapixel", ["megapixel-init", "clean", "copy"]);
grunt.registerTask("deploy-touch", ["touch-init", "clean", "copy"]);
grunt.registerTask("deploy-jquery", ["jquery-init", "clean", "copy"]);
grunt.registerTask("deploy-underscore", ["underscore-init", "clean", "copy"]);
grunt.registerTask("deploy-zeroclipboard", ["zeroclipboard-init", "clean", "copy"]);
grunt.registerTask("deploy-bootstrap", ["bootstrap-init", "clean", "copy"]);
grunt.registerTask("deploy-requirejs", ["requirejs-init", "clean", "uglify"]);
grunt.registerTask("deploy-app-main", ["main-app-init", "clean", "less", "replace:fixLessUrl", "requirejs", "concat", "imagemin", "copy"]);
grunt.registerTask("deploy-app-mobile", ["mobile-app-init", "clean", "uglify", "cssmin:styles", "copy"]);
grunt.registerTask("deploy-app-embed", ["embed-app-init", "clean", "uglify", "less", "copy"]);
doRegisterInitializeAppTask("documenteditor", "DocumentEditor", "documenteditor.json");
doRegisterInitializeAppTask("spreadsheeteditor", "SpreadsheetEditor", "spreadsheeteditor.json");
doRegisterInitializeAppTask("presentationeditor", "PresentationEditor", "presentationeditor.json");
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", "init-config", "deploy-app"]);
grunt.registerTask("deploy-spreadsheeteditor", ["init-build-spreadsheeteditor", "init-config", "deploy-app"]);
grunt.registerTask("deploy-presentationeditor", ["init-build-presentationeditor", "init-config", "deploy-app"]);
grunt.registerTask("default", ["deploy-documenteditor", "deploy-spreadsheeteditor", "deploy-presentationeditor"]);
};

View File

@@ -0,0 +1,16 @@
{
"name": "asc-menu",
"version": "0.0.1",
"dependencies": {
"backbone": "~1.1.0",
"underscore": "~1.5.0",
"jquery": "~2.0.0",
"jquery.browser": "0.0.6",
"requirejs": "~2.1.5",
"requirejs-text": "~2.0.5",
"less": "~1.5.0",
"bootstrap": "~3.0.3",
"sockjs": "~0.3.2",
"perfect-scrollbar": "latest"
}
}

View File

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

View File

@@ -0,0 +1,530 @@
{
"name": "documenteditor",
"version": "3.0.0",
"build": 960,
"homepage": "http://www.onlyoffice.com",
"private": true,
"dependencies": {
"grunt": "~0.4.2",
"grunt-contrib": "~0.9.0",
"grunt-exec": "~0.4.5",
"grunt-replace": "~0.7.3",
"grunt-html-minify": "~0.3.1"
},
"sdk": {
"clean": [
"../deploy/sdk/Common",
"../deploy/sdk/Word"
],
"copy": {
"script": {
"files": [
{
"expand": true,
"cwd": "../sdk/Common/",
"src": [
"Images/**",
"Native/**",
"AllFonts.js"
],
"dest": "../deploy/sdk/Common/"
},
{
"expand": true,
"cwd": "../sdk/Fonts/",
"src": "**/**",
"dest": "../deploy/sdk/Fonts/"
},
{
"src": "../sdk/Word/sdk-all.js",
"dest": "../deploy/sdk/Word/sdk-all.js"
}
]
}
}
},
"api": {
"clean": [
"../deploy/apps/api"
],
"copy": {
"script": {
"expand": true,
"cwd": "../apps/api/",
"src": "**",
"dest": "../deploy/apps/api/"
}
}
},
"main": {
"clean": [
"../deploy/apps/documenteditor/main"
],
"js": {
"requirejs": {
"options": {
"name": "../apps/documenteditor/main/app.js",
"out": "../deploy/apps/documenteditor/main/app.js",
"baseUrl": "../apps/",
"inlineText": true,
"findNestedDependencies": true,
"preserveLicenseComments": false,
"optimizeAllPluginResources": true,
"paths": {
"jquery": "../vendor/jquery/jquery",
"underscore": "../vendor/underscore/underscore",
"backbone": "../vendor/backbone/backbone",
"text": "../vendor/requirejs-text/text",
"bootstrap": "../vendor/bootstrap/dist/js/bootstrap",
"perfectscrollbar": "common/main/lib/mods/perfect-scrollbar",
"jmousewheel": "../vendor/perfect-scrollbar/src/jquery.mousewheel",
"xregexp": "empty:",
"sockjs": "empty:",
"coapisettings": "empty:",
"allfonts": "empty:",
"sdk": "empty:",
"api": "empty:",
"core": "common/main/lib/core/application",
"notification": "common/main/lib/core/NotificationCenter",
"keymaster": "common/main/lib/core/keymaster",
"tip": "common/main/lib/util/Tip",
"analytics": "common/Analytics",
"gateway": "common/Gateway",
"locale": "common/locale",
"irregularstack": "common/IrregularStack"
},
"shim": {
"underscore": {
"exports": "_"
},
"backbone": {
"deps": [
"underscore",
"jquery"
],
"exports": "Backbone"
},
"bootstrap": {
"deps": [
"jquery"
]
},
"perfectscrollbar": {
"deps": [
"jmousewheel"
]
},
"notification": {
"deps": [
"backbone"
]
},
"core": {
"deps": [
"backbone",
"notification"
]
},
"sdk": {
"deps": [
"jquery",
"underscore",
"coapisettings",
"allfonts",
"xregexp",
"sockjs"
]
},
"gateway": {
"deps": [
"jquery"
]
},
"analytics": {
"deps": [
"jquery"
]
}
}
}
}
},
"less": {
"files": {
"src": "../apps/documenteditor/main/resources/less/app.less",
"dest": "../deploy/apps/documenteditor/main/resources/css/app.css"
},
"replacements": [
{
"from": "../../common/main/resources/img/",
"to": "../img/"
},
{
"from": "resources/img/",
"to": "../img/"
}
]
},
"imagemin": {
"images-app": [
{
"expand": true,
"cwd": "../apps/documenteditor/main/resources/img/",
"src": [
"**/*.{png,jpg,gif}"
],
"dest": "../deploy/apps/documenteditor/main/resources/img/"
}
],
"images-common": [
{
"expand": true,
"cwd": "../apps/common/main/resources/img/",
"src": [
"**/*.{png,jpg,gif}"
],
"dest": "../deploy/apps/documenteditor/main/resources/img/"
}
]
},
"copy": {
"localization": [
{
"expand": true,
"cwd": "../apps/documenteditor/main/locale/",
"src": "*",
"dest": "../deploy/apps/documenteditor/main/locale/"
}
],
"help": [
{
"expand": true,
"cwd": "../apps/documenteditor/main/resources/help/en/",
"src": "**",
"dest": "../deploy/apps/documenteditor/main/resources/help/en/"
},
{
"expand": true,
"cwd": "../apps/documenteditor/main/resources/help/de/",
"src": "**",
"dest": "../deploy/apps/documenteditor/main/resources/help/de/"
},
{
"expand": true,
"cwd": "../apps/documenteditor/main/resources/help/es/",
"src": "**",
"dest": "../deploy/apps/documenteditor/main/resources/help/es/"
},
{
"expand": true,
"cwd": "../apps/documenteditor/main/resources/help/fr/",
"src": "**",
"dest": "../deploy/apps/documenteditor/main/resources/help/fr/"
},
{
"expand": true,
"cwd": "../apps/documenteditor/main/resources/help/it/",
"src": "**",
"dest": "../deploy/apps/documenteditor/main/resources/help/it/"
},
{
"expand": true,
"cwd": "../apps/documenteditor/main/resources/help/ru/",
"src": "**",
"dest": "../deploy/apps/documenteditor/main/resources/help/ru/"
}
],
"index-page": [
{
"src": "../apps/documenteditor/main/index.html.deploy",
"dest": "../deploy/apps/documenteditor/main/index.html"
}
]
}
},
"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": [
{
"expand": true,
"cwd": "../apps/documenteditor/mobile/locale/",
"src": "*",
"dest": "../deploy/apps/documenteditor/mobile/locale/"
}
],
"images-app": [
{
"expand": true,
"cwd": "../apps/documenteditor/mobile/resources/img/",
"src": "**",
"dest": "../deploy/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"
},
"less": {
"src": "../apps/documenteditor/embed/resources/less/application.less",
"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": [
{
"expand": true,
"cwd": "../apps/documenteditor/embed/resources/img/",
"src": "**",
"dest": "../deploy/apps/documenteditor/embed/resources/img/"
}
]
}
},
"touch": {
"clean": [
"../deploy/vendor/touch"
],
"copy": {
"script": {
"src": "../vendor/touch/sencha-touch-all.js",
"dest": "../deploy/vendor/touch/sencha-touch-all.js"
}
}
},
"bootstrap": {
"clean": [
"../deploy/vendor/bootstrap"
],
"copy": {
"script": {
"src": "../vendor/bootstrap/dist/js/bootstrap.min.js",
"dest": "../deploy/vendor/bootstrap/dist/js/bootstrap.min.js"
},
"font": {
"expand": true,
"cwd": "../vendor/bootstrap/dist/fonts/",
"src": "*",
"dest": "../deploy/vendor/bootstrap/dist/fonts/"
},
"css": {
"src": "../vendor/bootstrap/dist/css/bootstrap.min.css",
"dest": "../deploy/vendor/bootstrap/dist/css/bootstrap.min.css"
}
}
},
"jquery": {
"clean": [
"../deploy/vendor/jquery"
],
"copy": {
"script": {
"files": [
{
"src": "../vendor/jquery/jquery.min.js",
"dest": "../deploy/vendor/jquery/jquery.min.js"
},
{
"src": "../vendor/jquery.browser/dist/jquery.browser.min.js",
"dest": "../deploy/vendor/jquery/jquery.browser.min.js"
}
]
}
}
},
"megapixel": {
"clean": [
"../deploy/vendor/megapixel"
],
"copy": {
"script": {
"src": "../vendor/megapixel/megapix-image-min.js",
"dest": "../deploy/vendor/megapixel/megapix-image-min.js"
}
}
},
"sockjs": {
"clean": [
"../deploy/vendor/sockjs"
],
"copy": {
"script": {
"src": "../vendor/sockjs/sockjs.min.js",
"dest": "../deploy/vendor/sockjs/sockjs.min.js"
}
}
},
"xregexp": {
"clean": [
"../deploy/vendor/xregexp"
],
"copy": {
"script": {
"src": "../vendor/xregexp/xregexp-all-min.js",
"dest": "../deploy/vendor/xregexp/xregexp-all-min.js"
}
}
},
"underscore": {
"clean": [
"../deploy/vendor/underscore"
],
"copy": {
"script": {
"src": "../vendor/underscore/underscore-min.js",
"dest": "../deploy/vendor/underscore/underscore-min.js"
}
}
},
"requirejs": {
"clean": [
"../deploy/vendor/requirejs"
],
"min": {
"src": "../vendor/requirejs/require.js",
"dest": "../deploy/vendor/requirejs/require.js"
}
},
"zeroclipboard": {
"clean": [
"../deploy/vendor/ZeroClipboard"
],
"copy": {
"script": {
"expand": true,
"cwd": "../vendor/ZeroClipboard/",
"src": [
"**"
],
"dest": "../deploy/vendor/ZeroClipboard/"
}
}
},
"obf_api": {
"ccvars": "../sdk/Word/variable.map",
"ccprops": "../sdk/Word/property.map",
"api": "../sdk/Word/apiExport.js",
"clientjs": [
"../deploy/apps/documenteditor/main/app-edit.js",
"../deploy/apps/documenteditor/main/app-view.js",
"../deploy/apps/documenteditor/mobile/app-all.js",
"../deploy/apps/documenteditor/embed/app-all.js",
"../deploy/apps/api/documents/cache-scripts.html"
],
"ccres": "../deploy/sdk/Word/sdk-all.js"
},
"obf": {
"api": "../deploy/sdk/Word/sdk-all.js",
"pat": "asc_\\w+",
"keys": "-exp se -use-for-name",
"apply": [
"../deploy/sdk/Word/sdk-all.js",
"../deploy/apps/documenteditor/main/app-edit.js",
"../deploy/apps/documenteditor/main/app-view.js",
"../deploy/apps/documenteditor/mobile/app-all.js",
"../deploy/apps/documenteditor/embed/app-all.js"
]
},
"tasks": {
"deploy": [
"increment-build",
"deploy-api",
"deploy-sdk",
"deploy-sockjs",
"deploy-xregexp",
"deploy-requirejs",
"deploy-megapixel",
"deploy-touch",
"deploy-jquery",
"deploy-underscore",
"deploy-zeroclipboard",
"deploy-bootstrap",
"deploy-app-main",
"deploy-app-mobile",
"deploy-app-embed"
]
}
}

View File

@@ -0,0 +1,13 @@
@echo off
cd /D %~dp0
SET GRUNT_OLD=grunt@0.3.17
SET GRUNT_CLI=grunt-cli
echo Check is there old grunt installed.
call npm list -g %GRUNT_OLD% && call npm uninstall -g grunt
echo Installation grunt-cli
call npm list -g %GRUNT_CLI% || call npm install -g %GRUNT_CLI%
call npm install

View File

@@ -1,424 +0,0 @@
{
"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

@@ -1,329 +0,0 @@
/*
* (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

@@ -1,8 +0,0 @@
@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

@@ -1,385 +0,0 @@
{
"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

@@ -1,403 +0,0 @@
{
"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"
}
}

View File

@@ -0,0 +1,19 @@
{
"name": "common",
"version": "0.0.0",
"homepage": "http://www.onlyoffice.com",
"private": true,
"dependencies": {
"lodash": "2.4.1",
"grunt": "0.4.2",
"grunt-contrib": "0.9.0",
"grunt-exec": "0.4.5",
"grunt-replace": "0.7.3",
"grunt-html-minify": "0.3.1",
"grunt-text-replace": "0.3.11",
"mocha": "1.18.2",
"chai": "1.9.1",
"grunt-mocha": "0.4.11",
"grunt-jscoverage": "0.1.1"
}
}

View File

@@ -0,0 +1,508 @@
{
"name": "presentationeditor",
"version": "3.0.0",
"build": 760,
"homepage": "http://www.onlyoffice.com",
"sdk": {
"clean": [
"../deploy/sdk/Common",
"../deploy/sdk/PowerPoint",
"../deploy/sdk/Fonts"
],
"copy": {
"script": {
"files": [
{
"expand": true,
"cwd": "../sdk/Common/",
"src": [
"Images/**",
"Native/**",
"AllFonts.js"
],
"dest": "../deploy/sdk/Common/"
},
{
"expand": true,
"cwd": "../sdk/Fonts/",
"src": "**/**",
"dest": "../deploy/sdk/Fonts/"
},
{
"expand": true,
"cwd": "../sdk/PowerPoint/themes/",
"src": "**/**",
"dest": "../deploy/sdk/PowerPoint/themes/"
},
{
"src": "../sdk/PowerPoint/sdk-all.js",
"dest": "../deploy/sdk/PowerPoint/sdk-all.js"
}
]
}
}
},
"api": {
"clean": [
"../deploy/apps/api"
],
"copy": {
"script": {
"expand": true,
"cwd": "../apps/api/",
"src": "**",
"dest": "../deploy/apps/api/"
}
}
},
"main": {
"clean": [
"../deploy/apps/presentationeditor/main"
],
"js": {
"requirejs": {
"options": {
"name": "../apps/presentationeditor/main/app.js",
"out": "../deploy/apps/presentationeditor/main/app.js",
"baseUrl": "../apps/",
"inlineText": true,
"findNestedDependencies": true,
"preserveLicenseComments": false,
"optimizeAllPluginResources": true,
"paths": {
"jquery": "../vendor/jquery/jquery",
"underscore": "../vendor/underscore/underscore",
"backbone": "../vendor/backbone/backbone",
"text": "../vendor/requirejs-text/text",
"bootstrap": "../vendor/bootstrap/dist/js/bootstrap",
"perfectscrollbar": "common/main/lib/mods/perfect-scrollbar",
"jmousewheel": "../vendor/perfect-scrollbar/src/jquery.mousewheel",
"xregexp": "empty:",
"sockjs": "empty:",
"coapisettings": "empty:",
"allfonts": "empty:",
"sdk": "empty:",
"api": "empty:",
"core": "common/main/lib/core/application",
"notification": "common/main/lib/core/NotificationCenter",
"keymaster": "common/main/lib/core/keymaster",
"tip": "common/main/lib/util/Tip",
"analytics": "common/Analytics",
"gateway": "common/Gateway",
"locale": "common/locale",
"irregularstack": "common/IrregularStack"
},
"shim": {
"underscore": {
"exports": "_"
},
"backbone": {
"deps": [
"underscore",
"jquery"
],
"exports": "Backbone"
},
"bootstrap": {
"deps": [
"jquery"
]
},
"perfectscrollbar": {
"deps": [
"jmousewheel"
]
},
"notification": {
"deps": [
"backbone"
]
},
"core": {
"deps": [
"backbone",
"notification"
]
},
"sdk": {
"deps": [
"jquery",
"underscore",
"coapisettings",
"allfonts",
"xregexp",
"sockjs"
]
},
"gateway": {
"deps": [
"jquery"
]
},
"analytics": {
"deps": [
"jquery"
]
}
}
}
}
},
"less": {
"files": {
"src": "../apps/presentationeditor/main/resources/less/app.less",
"dest": "../deploy/apps/presentationeditor/main/resources/css/app.css"
},
"replacements": [
{
"from": "../../common/main/resources/img/",
"to": "../img/"
},
{
"from": "resources/img/",
"to": "../img/"
}
]
},
"imagemin": {
"images-app": [
{
"expand": true,
"cwd": "../apps/presentationeditor/main/resources/img/",
"src": [
"**/*.{png,jpg,gif}"
],
"dest": "../deploy/apps/presentationeditor/main/resources/img/"
}
],
"images-common": [
{
"expand": true,
"cwd": "../sdk/PowerPoint/Images/",
"src": [
"**/*.cur"
],
"dest": "../deploy/apps/presentationeditor/main/Images/"
},
{
"expand": true,
"cwd": "../apps/common/main/resources/img/",
"src": [
"**/*.{png,jpg,gif}"
],
"dest": "../deploy/apps/presentationeditor/main/resources/img/"
}
]
},
"copy": {
"localization": [
{
"expand": true,
"cwd": "../apps/presentationeditor/main/locale/",
"src": "*",
"dest": "../deploy/apps/presentationeditor/main/locale/"
}
],
"help": [
{
"expand": true,
"cwd": "../apps/presentationeditor/main/resources/help/en/",
"src": "**",
"dest": "../deploy/apps/presentationeditor/main/resources/help/en/"
},
{
"expand": true,
"cwd": "../apps/presentationeditor/main/resources/help/de/",
"src": "**",
"dest": "../deploy/apps/presentationeditor/main/resources/help/de/"
},
{
"expand": true,
"cwd": "../apps/presentationeditor/main/resources/help/es/",
"src": "**",
"dest": "../deploy/apps/presentationeditor/main/resources/help/es/"
},
{
"expand": true,
"cwd": "../apps/presentationeditor/main/resources/help/fr/",
"src": "**",
"dest": "../deploy/apps/presentationeditor/main/resources/help/fr/"
},
{
"expand": true,
"cwd": "../apps/presentationeditor/main/resources/help/it/",
"src": "**",
"dest": "../deploy/apps/presentationeditor/main/resources/help/it/"
},
{
"expand": true,
"cwd": "../apps/presentationeditor/main/resources/help/ru/",
"src": "**",
"dest": "../deploy/apps/presentationeditor/main/resources/help/ru/"
}
],
"index-page": [
{
"src": "../apps/presentationeditor/main/index.html.deploy",
"dest": "../deploy/apps/presentationeditor/main/index.html"
}
]
}
},
"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": [
{
"expand": true,
"cwd": "../apps/presentationeditor/mobile/locale/",
"src": "*",
"dest": "../deploy/apps/presentationeditor/mobile/locale/"
}
],
"images-app": [
{
"expand": true,
"cwd": "../apps/presentationeditor/mobile/resources/img/",
"src": "**",
"dest": "../deploy/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"
},
"less": {
"src": "../apps/presentationeditor/embed/resources/less/application.less",
"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": [
{
"expand": true,
"cwd": "../apps/presentationeditor/embed/resources/img/",
"src": "**",
"dest": "../deploy/apps/presentationeditor/embed/resources/img/"
}
]
}
},
"touch": {
"clean": [
"../deploy/vendor/touch"
],
"copy": {
"script": {
"src": "../vendor/touch/sencha-touch-all.js",
"dest": "../deploy/vendor/touch/sencha-touch-all.js"
}
}
},
"bootstrap": {
"clean": [
"../deploy/vendor/bootstrap"
],
"copy": {
"script": {
"src": "../vendor/bootstrap/dist/js/bootstrap.min.js",
"dest": "../deploy/vendor/bootstrap/dist/js/bootstrap.min.js"
},
"font": {
"expand": true,
"cwd": "../vendor/bootstrap/dist/fonts/",
"src": "*",
"dest": "../deploy/vendor/bootstrap/dist/fonts/"
},
"css": {
"src": "../vendor/bootstrap/dist/css/bootstrap.min.css",
"dest": "../deploy/vendor/bootstrap/dist/css/bootstrap.min.css"
}
}
},
"jquery": {
"clean": [
"../deploy/vendor/jquery"
],
"copy": {
"script": {
"files": [
{
"src": "../vendor/jquery/jquery.min.js",
"dest": "../deploy/vendor/jquery/jquery.min.js"
},
{
"src": "../vendor/jquery.browser/dist/jquery.browser.min.js",
"dest": "../deploy/vendor/jquery/jquery.browser.min.js"
}
]
}
}
},
"megapixel": {
"clean": [
"../deploy/vendor/megapixel"
],
"copy": {
"script": {
"src": "../vendor/megapixel/megapix-image-min.js",
"dest": "../deploy/vendor/megapixel/megapix-image-min.js"
}
}
},
"sockjs": {
"clean": [
"../deploy/vendor/sockjs"
],
"copy": {
"script": {
"src": "../vendor/sockjs/sockjs.min.js",
"dest": "../deploy/vendor/sockjs/sockjs.min.js"
}
}
},
"xregexp": {
"clean": [
"../deploy/vendor/xregexp"
],
"copy": {
"script": {
"src": "../vendor/xregexp/xregexp-all-min.js",
"dest": "../deploy/vendor/xregexp/xregexp-all-min.js"
}
}
},
"underscore": {
"clean": [
"../deploy/vendor/underscore"
],
"copy": {
"script": {
"src": "../vendor/underscore/underscore-min.js",
"dest": "../deploy/vendor/underscore/underscore-min.js"
}
}
},
"requirejs": {
"clean": [
"../deploy/vendor/requirejs"
],
"min": {
"src": "../vendor/requirejs/require.js",
"dest": "../deploy/vendor/requirejs/require.js"
}
},
"zeroclipboard": {
"clean": [
"../deploy/vendor/ZeroClipboard"
],
"copy": {
"script": {
"expand": true,
"cwd": "../vendor/ZeroClipboard/",
"src": [
"**"
],
"dest": "../deploy/vendor/ZeroClipboard/"
}
}
},
"obf_api": {
"ccvars": "../sdk/PowerPoint/variable.map",
"ccprops": "../sdk/PowerPoint/property.map",
"api": "../sdk/PowerPoint/apiExport.js",
"clientjs": [
"../deploy/apps/presentationeditor/main/app-edit.js",
"../deploy/apps/presentationeditor/main/app-view.js",
"../deploy/apps/presentationeditor/mobile/app-all.js",
"../deploy/apps/presentationeditor/embed/app-all.js"
],
"ccres": "../deploy/sdk/PowerPoint/sdk-all.js"
},
"obf": {
"api": "../deploy/sdk/PowerPoint/sdk-all.js",
"pat": "asc_\\w+",
"keys": "-exp se -use-for-name",
"apply": [
"../deploy/sdk/PowerPoint/sdk-all.js",
"../deploy/apps/presentationeditor/main/app-edit.js",
"../deploy/apps/presentationeditor/main/app-view.js",
"../deploy/apps/presentationeditor/mobile/app-all.js",
"../deploy/apps/presentationeditor/embed/app-all.js"
]
},
"tasks": {
"deploy": [
"increment-build",
"deploy-api",
"deploy-sdk",
"deploy-sockjs",
"deploy-xregexp",
"deploy-requirejs",
"deploy-megapixel",
"deploy-touch",
"deploy-jquery",
"deploy-underscore",
"deploy-zeroclipboard",
"deploy-bootstrap",
"deploy-app-main",
"deploy-app-mobile",
"deploy-app-embed"
]
}
}

View File

@@ -0,0 +1,519 @@
{
"name": "spreadsheeteditor",
"version": "3.0.0",
"build": 858,
"homepage": "http://www.onlyoffice.com",
"private": true,
"dependencies": {
"grunt": "~0.4.2",
"grunt-contrib": "~0.9.0",
"grunt-exec": "~0.4.5",
"grunt-replace": "~0.7.3",
"grunt-html-minify": "~0.3.1"
},
"sdk": {
"clean": [
"../deploy/sdk/Common",
"../deploy/sdk/Excel",
"../deploy/sdk/Fonts"
],
"copy": {
"script": {
"files": [
{
"expand": true,
"cwd": "../sdk/Common/",
"src": [
"Images/**",
"Native/**",
"AllFonts.js"
],
"dest": "../deploy/sdk/Common/"
},
{
"expand": true,
"cwd": "../sdk/Excel/css/",
"src": "*.css",
"dest": "../deploy/sdk/Excel/css/"
},
{
"expand": true,
"cwd": "../sdk/Word/Images/",
"src": "*.cur",
"dest": "../deploy/sdk/Word/Images/"
},
{
"expand": true,
"cwd": "../sdk/Fonts/",
"src": "**/**",
"dest": "../deploy/sdk/Fonts/"
},
{
"src": "../sdk/Excel/sdk-all.js",
"dest": "../deploy/sdk/Excel/sdk-all.js"
}
]
}
}
},
"api": {
"clean": [
"../deploy/apps/api"
],
"copy": {
"script": {
"expand": true,
"cwd": "../apps/api/",
"src": "**",
"dest": "../deploy/apps/api/"
}
}
},
"main": {
"clean": [
"../deploy/apps/spreadsheeteditor/main"
],
"js": {
"requirejs": {
"options": {
"name": "../apps/spreadsheeteditor/main/app.js",
"out": "../deploy/apps/spreadsheeteditor/main/app.js",
"baseUrl": "../apps/",
"inlineText": true,
"findNestedDependencies": true,
"preserveLicenseComments": false,
"optimizeAllPluginResources": true,
"paths": {
"jquery": "../vendor/jquery/jquery",
"underscore": "../vendor/underscore/underscore",
"backbone": "../vendor/backbone/backbone",
"text": "../vendor/requirejs-text/text",
"bootstrap": "../vendor/bootstrap/dist/js/bootstrap",
"perfectscrollbar": "common/main/lib/mods/perfect-scrollbar",
"jmousewheel": "../vendor/perfect-scrollbar/src/jquery.mousewheel",
"xregexp": "empty:",
"sockjs": "empty:",
"coapisettings": "empty:",
"allfonts": "empty:",
"sdk": "empty:",
"api": "empty:",
"core": "common/main/lib/core/application",
"notification": "common/main/lib/core/NotificationCenter",
"keymaster": "common/main/lib/core/keymaster",
"tip": "common/main/lib/util/Tip",
"analytics": "common/Analytics",
"gateway": "common/Gateway",
"locale": "common/locale",
"irregularstack": "common/IrregularStack"
},
"shim": {
"underscore": {
"exports": "_"
},
"backbone": {
"deps": [
"underscore",
"jquery"
],
"exports": "Backbone"
},
"bootstrap": {
"deps": [
"jquery"
]
},
"perfectscrollbar": {
"deps": [
"jmousewheel"
]
},
"notification": {
"deps": [
"backbone"
]
},
"core": {
"deps": [
"backbone",
"notification"
]
},
"sdk": {
"deps": [
"jquery",
"underscore",
"coapisettings",
"allfonts",
"xregexp",
"sockjs"
]
},
"gateway": {
"deps": [
"jquery"
]
},
"analytics": {
"deps": [
"jquery"
]
}
}
}
}
},
"less": {
"files": {
"src": "../apps/spreadsheeteditor/main/resources/less/app.less",
"dest": "../deploy/apps/spreadsheeteditor/main/resources/css/app.css"
},
"replacements": [
{
"from": "../../common/main/resources/img/",
"to": "../img/"
},
{
"from": "resources/img/",
"to": "../img/"
}
]
},
"imagemin": {
"images-app": [
{
"expand": true,
"cwd": "../apps/spreadsheeteditor/main/resources/img/",
"src": [
"**/*.{png,jpg,gif}"
],
"dest": "../deploy/apps/spreadsheeteditor/main/resources/img/"
}
],
"images-common": [
{
"expand": true,
"cwd": "../sdk/Word/Images/",
"src": [
"**/*.cur"
],
"dest": "../deploy/apps/spreadsheeteditor/main/Images/"
},
{
"expand": true,
"cwd": "../apps/common/main/resources/img/",
"src": [
"**/*.{png,jpg,gif}"
],
"dest": "../deploy/apps/spreadsheeteditor/main/resources/img/"
}
]
},
"copy": {
"localization": [
{
"expand": true,
"cwd": "../apps/spreadsheeteditor/main/locale/",
"src": "*",
"dest": "../deploy/apps/spreadsheeteditor/main/locale/"
}
],
"help": [
{
"expand": true,
"cwd": "../apps/spreadsheeteditor/main/resources/help/en/",
"src": "**",
"dest": "../deploy/apps/spreadsheeteditor/main/resources/help/en/"
},
{
"expand": true,
"cwd": "../apps/spreadsheeteditor/main/resources/help/de/",
"src": "**",
"dest": "../deploy/apps/spreadsheeteditor/main/resources/help/de/"
},
{
"expand": true,
"cwd": "../apps/spreadsheeteditor/main/resources/help/es/",
"src": "**",
"dest": "../deploy/apps/spreadsheeteditor/main/resources/help/es/"
},
{
"expand": true,
"cwd": "../apps/spreadsheeteditor/main/resources/help/fr/",
"src": "**",
"dest": "../deploy/apps/spreadsheeteditor/main/resources/help/fr/"
},
{
"expand": true,
"cwd": "../apps/spreadsheeteditor/main/resources/help/it/",
"src": "**",
"dest": "../deploy/apps/spreadsheeteditor/main/resources/help/it/"
},
{
"expand": true,
"cwd": "../apps/spreadsheeteditor/main/resources/help/ru/",
"src": "**",
"dest": "../deploy/apps/spreadsheeteditor/main/resources/help/ru/"
}
],
"index-page": [
{
"src": "../apps/spreadsheeteditor/main/index.html.deploy",
"dest": "../deploy/apps/spreadsheeteditor/main/index.html"
}
]
}
},
"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": [
{
"expand": true,
"cwd": "../apps/spreadsheeteditor/mobile/locale/",
"src": "*",
"dest": "../deploy/apps/spreadsheeteditor/mobile/locale/"
}
],
"images-app": [
{
"expand": true,
"cwd": "../apps/spreadsheeteditor/mobile/resources/img/",
"src": "**",
"dest": "../deploy/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"
},
"less": {
"src": "../apps/spreadsheeteditor/embed/resources/less/application.less",
"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": [
{
"expand": true,
"cwd": "../apps/spreadsheeteditor/embed/resources/img/",
"src": "**",
"dest": "../deploy/apps/spreadsheeteditor/embed/resources/img/"
}
]
}
},
"touch": {
"clean": [
"../deploy/vendor/touch"
],
"copy": {
"script": {
"src": "../vendor/touch/sencha-touch-all.js",
"dest": "../deploy/vendor/touch/sencha-touch-all.js"
}
}
},
"bootstrap": {
"clean": [
"../deploy/vendor/bootstrap"
],
"copy": {
"script": {
"src": "../vendor/bootstrap/dist/js/bootstrap.min.js",
"dest": "../deploy/vendor/bootstrap/dist/js/bootstrap.min.js"
},
"font": {
"expand": true,
"cwd": "../vendor/bootstrap/dist/fonts/",
"src": "*",
"dest": "../deploy/vendor/bootstrap/dist/fonts/"
},
"css": {
"src": "../vendor/bootstrap/dist/css/bootstrap.min.css",
"dest": "../deploy/vendor/bootstrap/dist/css/bootstrap.min.css"
}
}
},
"jquery": {
"clean": [
"../deploy/vendor/jquery"
],
"copy": {
"script": {
"files": [
{
"src": "../vendor/jquery/jquery.min.js",
"dest": "../deploy/vendor/jquery/jquery.min.js"
},
{
"src": "../vendor/jquery.browser/dist/jquery.browser.min.js",
"dest": "../deploy/vendor/jquery/jquery.browser.min.js"
}
]
}
}
},
"megapixel": {
"clean": [
"../deploy/vendor/megapixel"
],
"copy": {
"script": {
"src": "../vendor/megapixel/megapix-image-min.js",
"dest": "../deploy/vendor/megapixel/megapix-image-min.js"
}
}
},
"sockjs": {
"clean": [
"../deploy/vendor/sockjs"
],
"copy": {
"script": {
"src": "../vendor/sockjs/sockjs.min.js",
"dest": "../deploy/vendor/sockjs/sockjs.min.js"
}
}
},
"xregexp": {
"clean": [
"../deploy/vendor/xregexp"
],
"copy": {
"script": {
"src": "../vendor/xregexp/xregexp-all-min.js",
"dest": "../deploy/vendor/xregexp/xregexp-all-min.js"
}
}
},
"underscore": {
"clean": [
"../deploy/vendor/underscore"
],
"copy": {
"script": {
"src": "../vendor/underscore/underscore-min.js",
"dest": "../deploy/vendor/underscore/underscore-min.js"
}
}
},
"requirejs": {
"clean": [
"../deploy/vendor/requirejs"
],
"min": {
"src": "../vendor/requirejs/require.js",
"dest": "../deploy/vendor/requirejs/require.js"
}
},
"zeroclipboard": {
"clean": [
"../deploy/vendor/ZeroClipboard"
],
"copy": {
"script": {
"expand": true,
"cwd": "../vendor/ZeroClipboard/",
"src": [
"**"
],
"dest": "../deploy/vendor/ZeroClipboard/"
}
}
},
"obf": {
"api": "../deploy/sdk/Excel/sdk-all.js",
"pat": "asc_\\w+",
"keys": "-exp se -use-for-name",
"apply": [
"../deploy/sdk/Excel/sdk-all.js",
"../deploy/apps/spreadsheeteditor/main/app-edit.js",
"../deploy/apps/spreadsheeteditor/main/app-view.js",
"../deploy/apps/spreadsheeteditor/mobile/app-all.js",
"../deploy/apps/spreadsheeteditor/embed/app-all.js"
]
},
"tasks": {
"deploy": [
"increment-build",
"deploy-api",
"deploy-sdk",
"deploy-sockjs",
"deploy-xregexp",
"deploy-requirejs",
"deploy-megapixel",
"deploy-touch",
"deploy-jquery",
"deploy-underscore",
"deploy-zeroclipboard",
"deploy-bootstrap",
"deploy-app-main",
"deploy-app-mobile",
"deploy-app-embed"
]
}
}