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,12 +47,13 @@ module.exports = function(grunt) {
grunt.registerTask('build_webword', ['build_webword_init', 'build_sdk']);
grunt.registerTask('build_webexcel', ['build_webexcel_init', 'build_sdk']);
grunt.registerTask('build_webpowerpoint', ['build_webpowerpoint_init', 'build_sdk']);
grunt.registerTask('build_all', ['build_webword_init', 'build_sdk', 'build_webexcel_init', 'build_sdk', 'build_webpowerpoint_init', 'build_sdk');
grunt.registerTask('build_all', ['build_webword_init', 'build_sdk', 'build_webexcel_init', 'build_sdk', 'build_webpowerpoint_init', 'build_sdk']);
grunt.registerTask('compile_sdk_init', function() {
grunt.initConfig({
pkg: '<json:' + defaultConfig + '>',
meta: {
pkg: grunt.file.readJSON(defaultConfig),
uglify: {
options: {
banner: '/*\n' +
' * (c) Copyright Ascensio System SIA 2010-<%= grunt.template.today("yyyy") %>\n' +
' *\n' +
......@@ -86,16 +87,14 @@ module.exports = function(grunt) {
' * Version: <%= pkg.info.version %> (build:<%= pkg.info.build %>)\n' +
' */'
},
min: {
sdk: {
src: ['<banner:meta.banner>'].concat(packageFile['compile']["sdk"]['src']),
src: packageFile['compile']["sdk"]['src'],
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');
};
\ No newline at end of file
@echo off
cd /D %~dp0
echo Installation grunt and grunt-contrib
call npm install -g grunt@0.3.17
call npm install grunt-contrib@0.3.0
echo Installation grunt-cli
call npm install -g grunt-cli
call npm install
{
"name": "common",
"version": "0.0.0",
"homepage": "http://www.onlyoffice.com",
"private": true,
"dependencies": {
"grunt": "0.4.2",
"grunt-contrib": "0.9.0"
}
}
\ No newline at end of file
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