From 17d1c645f4e73abb6e526e08c198a1c670bd223c Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Thu, 18 Oct 2018 18:43:21 +0300 Subject: [PATCH] Add copyright customization --- .gitignore | 12 ++++++------ build/Gruntfile.js | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index d3dd6ed5da..9319f27ea8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,14 @@ .idea Thumbs.db .DS_Store -deploy +/deploy build/node_modules apps/documenteditor/embed/resources/less/node_modules apps/presentationeditor/embed/resources/less/node_modules apps/spreadsheeteditor/embed/resources/less/node_modules apps/documenteditor/mobile/resources/sass/.sass-cache apps/spreadsheeteditor/mobile/resources/sass/.sass-cache -apps/presentationeditor/mobile/resources/sass/.sass-cache +apps/presentationeditor/mobile/resources/sass/.sass-cache # test documents @@ -18,8 +18,8 @@ apps/presentationeditor/mobile/document apps/spreadsheeteditor/embed/offlinedocs apps/spreadsheeteditor/main/offlinedocs apps/spreadsheeteditor/mobile/offlinedocs - -# tests -selenium-debug.log -**/test/bin + +# tests +selenium-debug.log +**/test/bin **/test/reports \ No newline at end of file diff --git a/build/Gruntfile.js b/build/Gruntfile.js index b1ab33aa0d..ee1c4194c6 100644 --- a/build/Gruntfile.js +++ b/build/Gruntfile.js @@ -3,8 +3,9 @@ module.exports = function(grunt) { defaultConfig, packageFile; + const copyrightHeader = 'Copyright (c) Ascensio System SIA <%= grunt.template.today("yyyy") %>. All rights reserved' var copyright = '/*\n' + - ' * Copyright (c) Ascensio System SIA <%= grunt.template.today("yyyy") %>. All rights reserved\n' + + ' * ' + (process.env['APP_COPYRIGHT'] || copyrightHeader) + '\n' + ' *\n' + ' * <%= pkg.homepage %> \n' + ' *\n' + @@ -416,6 +417,7 @@ module.exports = function(grunt) { grunt.registerTask('increment-build', function() { var pkg = grunt.file.readJSON(defaultConfig); pkg.build = parseInt(pkg.build) + 1; + packageFile.homepage = (process.env['PUBLISHER_URL'] || pkg.homepage); packageFile.version = (process.env['PRODUCT_VERSION'] || pkg.version); packageFile.build = (process.env['BUILD_NUMBER'] || pkg.build); grunt.file.write(defaultConfig, JSON.stringify(pkg, null, 4));