Add copyright customization
This commit is contained in:
parent
e16fd95a10
commit
17d1c645f4
12
.gitignore
vendored
12
.gitignore
vendored
|
@ -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
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue