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

Переход на 4-ю версию грунта.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60497 954022d7-b5bf-4e40-9824-e11837661b57
parent 9355442e
...@@ -47,55 +47,54 @@ module.exports = function(grunt) { ...@@ -47,55 +47,54 @@ module.exports = function(grunt) {
grunt.registerTask('build_webword', ['build_webword_init', 'build_sdk']); grunt.registerTask('build_webword', ['build_webword_init', 'build_sdk']);
grunt.registerTask('build_webexcel', ['build_webexcel_init', 'build_sdk']); grunt.registerTask('build_webexcel', ['build_webexcel_init', 'build_sdk']);
grunt.registerTask('build_webpowerpoint', ['build_webpowerpoint_init', 'build_sdk']); grunt.registerTask('build_webpowerpoint', ['build_webpowerpoint_init', 'build_sdk']);
grunt.registerTask('build_all', ['build_webword_init', 'build_sdk', 'build_webexcel_init', 'build_sdk', 'build_webpowerpoint_init', 'build_sdk'); grunt.registerTask('build_all', ['build_webword_init', 'build_sdk', 'build_webexcel_init', 'build_sdk', 'build_webpowerpoint_init', 'build_sdk']);
grunt.registerTask('compile_sdk_init', function() { grunt.registerTask('compile_sdk_init', function() {
grunt.initConfig({ grunt.initConfig({
pkg: '<json:' + defaultConfig + '>', pkg: grunt.file.readJSON(defaultConfig),
meta: { uglify: {
banner: '/*\n' + options: {
' * (c) Copyright Ascensio System SIA 2010-<%= grunt.template.today("yyyy") %>\n' + banner: '/*\n' +
' *\n' + ' * (c) Copyright Ascensio System SIA 2010-<%= grunt.template.today("yyyy") %>\n' +
' * This program is a free software product. You can redistribute it and/or \n' + ' *\n' +
' * modify it under the terms of the GNU Affero General Public License (AGPL) \n' + ' * This program is a free software product. You can redistribute it and/or \n' +
' * version 3 as published by the Free Software Foundation. In accordance with \n' + ' * modify it under the terms of the GNU Affero General Public License (AGPL) \n' +
' * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \n' + ' * version 3 as published by the Free Software Foundation. In accordance with \n' +
' * that Ascensio System SIA expressly excludes the warranty of non-infringement\n' + ' * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \n' +
' * of any third-party rights.\n' + ' * that Ascensio System SIA expressly excludes the warranty of non-infringement\n' +
' *\n' + ' * of any third-party rights.\n' +
' * This program is distributed WITHOUT ANY WARRANTY; without even the implied \n' + ' *\n' +
' * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \n' + ' * This program is distributed WITHOUT ANY WARRANTY; without even the implied \n' +
' * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\n' + ' * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \n' +
' *\n' + ' * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\n' +
' * You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\n' + ' *\n' +
' * EU, LV-1021.\n' + ' * You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\n' +
' *\n' + ' * EU, LV-1021.\n' +
' * The interactive user interfaces in modified source and object code versions\n' + ' *\n' +
' * of the Program must display Appropriate Legal Notices, as required under \n' + ' * The interactive user interfaces in modified source and object code versions\n' +
' * Section 5 of the GNU AGPL version 3.\n' + ' * of the Program must display Appropriate Legal Notices, as required under \n' +
' *\n' + ' * Section 5 of the GNU AGPL version 3.\n' +
' * Pursuant to Section 7(b) of the License you must retain the original Product\n' + ' *\n' +
' * logo when distributing the program. Pursuant to Section 7(e) we decline to\n' + ' * Pursuant to Section 7(b) of the License you must retain the original Product\n' +
' * grant you any rights under trademark law for use of our trademarks.\n' + ' * logo when distributing the program. Pursuant to Section 7(e) we decline to\n' +
' *\n' + ' * grant you any rights under trademark law for use of our trademarks.\n' +
' * All the Product\'s GUI elements, including illustrations and icon sets, as\n' + ' *\n' +
' * well as technical writing content are licensed under the terms of the\n' + ' * All the Product\'s GUI elements, including illustrations and icon sets, as\n' +
' * Creative Commons Attribution-ShareAlike 4.0 International. See the License\n' + ' * well as technical writing content are licensed under the terms of the\n' +
' * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\n' + ' * Creative Commons Attribution-ShareAlike 4.0 International. See the License\n' +
' *\n' + ' * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\n' +
' * Version: <%= pkg.info.version %> (build:<%= pkg.info.build %>)\n' + ' *\n' +
' */' ' * Version: <%= pkg.info.version %> (build:<%= pkg.info.build %>)\n' +
}, ' */'
},
min: {
sdk: { sdk: {
src: ['<banner:meta.banner>'].concat(packageFile['compile']["sdk"]['src']), src: packageFile['compile']["sdk"]['src'],
dest: packageFile['compile']["sdk"]['dst'] dest: packageFile['compile']["sdk"]['dst']
} }
} }
}); });
}); });
grunt.registerTask('compile_sdk', ['compile_sdk_init', 'min']); grunt.registerTask('compile_sdk', ['compile_sdk_init', 'uglify']);
grunt.registerTask('default', 'build_all'); grunt.registerTask('default', 'build_all');
}; };
\ No newline at end of file
@echo off @echo off
cd /D %~dp0 cd /D %~dp0
echo Installation grunt and grunt-contrib
call npm install -g grunt@0.3.17 echo Installation grunt-cli
call npm install grunt-contrib@0.3.0 call npm install -g grunt-cli
call npm install
{
"name": "common",
"version": "0.0.0",
"homepage": "http://www.onlyoffice.com",
"private": true,
"dependencies": {
"grunt": "0.4.2",
"grunt-contrib": "0.9.0"
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment