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

Берем номер билда и ревизию из переменных среды

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@65104 954022d7-b5bf-4e40-9824-e11837661b57
parent 29325121
...@@ -50,8 +50,17 @@ module.exports = function(grunt) { ...@@ -50,8 +50,17 @@ module.exports = function(grunt) {
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() {
var pkg = grunt.file.readJSON(defaultConfig);
pkg.info.rev = "unknown";
if(undefined !== process.env['BUILD_NUMBER'])
pkg.info.build = parseInt(process.env['BUILD_NUMBER']);
if(undefined !== process.env['SVN_REVISION'])
pkg.info.rev = parseInt(process.env['SVN_REVISION']);*/
grunt.initConfig({ grunt.initConfig({
pkg: grunt.file.readJSON(defaultConfig), pkg: pkg,
uglify: { uglify: {
options: { options: {
banner: '/*\n' + banner: '/*\n' +
...@@ -84,7 +93,7 @@ module.exports = function(grunt) { ...@@ -84,7 +93,7 @@ module.exports = function(grunt) {
' * Creative Commons Attribution-ShareAlike 4.0 International. See the License\n' + ' * Creative Commons Attribution-ShareAlike 4.0 International. See the License\n' +
' * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\n' + ' * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\n' +
' *\n' + ' *\n' +
' * Version: <%= pkg.info.version %> (build:<%= pkg.info.build %>)\n' + ' * Version: <%= pkg.info.version %> (build:<%= pkg.info.build %>, rev:<%= pkg.info.rev %>)\n' +
' */' ' */'
}, },
sdk: { sdk: {
......
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