Add copyright customization
This commit is contained in:
parent
e16fd95a10
commit
17d1c645f4
12
.gitignore
vendored
12
.gitignore
vendored
|
@ -1,14 +1,14 @@
|
||||||
.idea
|
.idea
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
.DS_Store
|
.DS_Store
|
||||||
deploy
|
/deploy
|
||||||
build/node_modules
|
build/node_modules
|
||||||
apps/documenteditor/embed/resources/less/node_modules
|
apps/documenteditor/embed/resources/less/node_modules
|
||||||
apps/presentationeditor/embed/resources/less/node_modules
|
apps/presentationeditor/embed/resources/less/node_modules
|
||||||
apps/spreadsheeteditor/embed/resources/less/node_modules
|
apps/spreadsheeteditor/embed/resources/less/node_modules
|
||||||
apps/documenteditor/mobile/resources/sass/.sass-cache
|
apps/documenteditor/mobile/resources/sass/.sass-cache
|
||||||
apps/spreadsheeteditor/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
|
# test documents
|
||||||
|
@ -18,8 +18,8 @@ apps/presentationeditor/mobile/document
|
||||||
apps/spreadsheeteditor/embed/offlinedocs
|
apps/spreadsheeteditor/embed/offlinedocs
|
||||||
apps/spreadsheeteditor/main/offlinedocs
|
apps/spreadsheeteditor/main/offlinedocs
|
||||||
apps/spreadsheeteditor/mobile/offlinedocs
|
apps/spreadsheeteditor/mobile/offlinedocs
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
selenium-debug.log
|
selenium-debug.log
|
||||||
**/test/bin
|
**/test/bin
|
||||||
**/test/reports
|
**/test/reports
|
|
@ -3,8 +3,9 @@ module.exports = function(grunt) {
|
||||||
defaultConfig,
|
defaultConfig,
|
||||||
packageFile;
|
packageFile;
|
||||||
|
|
||||||
|
const copyrightHeader = 'Copyright (c) Ascensio System SIA <%= grunt.template.today("yyyy") %>. All rights reserved'
|
||||||
var copyright = '/*\n' +
|
var copyright = '/*\n' +
|
||||||
' * Copyright (c) Ascensio System SIA <%= grunt.template.today("yyyy") %>. All rights reserved\n' +
|
' * ' + (process.env['APP_COPYRIGHT'] || copyrightHeader) + '\n' +
|
||||||
' *\n' +
|
' *\n' +
|
||||||
' * <%= pkg.homepage %> \n' +
|
' * <%= pkg.homepage %> \n' +
|
||||||
' *\n' +
|
' *\n' +
|
||||||
|
@ -416,6 +417,7 @@ module.exports = function(grunt) {
|
||||||
grunt.registerTask('increment-build', function() {
|
grunt.registerTask('increment-build', function() {
|
||||||
var pkg = grunt.file.readJSON(defaultConfig);
|
var pkg = grunt.file.readJSON(defaultConfig);
|
||||||
pkg.build = parseInt(pkg.build) + 1;
|
pkg.build = parseInt(pkg.build) + 1;
|
||||||
|
packageFile.homepage = (process.env['PUBLISHER_URL'] || pkg.homepage);
|
||||||
packageFile.version = (process.env['PRODUCT_VERSION'] || pkg.version);
|
packageFile.version = (process.env['PRODUCT_VERSION'] || pkg.version);
|
||||||
packageFile.build = (process.env['BUILD_NUMBER'] || pkg.build);
|
packageFile.build = (process.env['BUILD_NUMBER'] || pkg.build);
|
||||||
grunt.file.write(defaultConfig, JSON.stringify(pkg, null, 4));
|
grunt.file.write(defaultConfig, JSON.stringify(pkg, null, 4));
|
||||||
|
|
Loading…
Reference in a new issue