2022-01-13 13:00:31 +00:00
|
|
|
/*******************************
|
|
|
|
Release Config
|
|
|
|
*******************************/
|
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
const requireDotFile = require('require-dot-file');
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
let
|
|
|
|
config,
|
|
|
|
npmPackage,
|
|
|
|
version
|
|
|
|
;
|
2022-01-13 13:00:31 +00:00
|
|
|
|
|
|
|
/*******************************
|
|
|
|
Derived Values
|
|
|
|
*******************************/
|
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
config = requireDotFile('semantic.json', process.cwd());
|
2022-01-13 13:00:31 +00:00
|
|
|
|
|
|
|
try {
|
2023-08-17 09:47:40 +00:00
|
|
|
npmPackage = require('../../../package.json'); // eslint-disable-line global-require
|
|
|
|
} catch (error) {
|
|
|
|
// generate fake package
|
|
|
|
npmPackage = {
|
|
|
|
name: 'Unknown',
|
|
|
|
version: 'x.x',
|
|
|
|
};
|
2022-01-13 13:00:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// looks for version in config or package.json (whichever is available)
|
2023-08-17 09:47:40 +00:00
|
|
|
version = npmPackage && npmPackage.version !== undefined && npmPackage.name === 'fomantic-ui'
|
|
|
|
? npmPackage.version
|
|
|
|
: config.version;
|
2022-01-13 13:00:31 +00:00
|
|
|
|
|
|
|
/*******************************
|
|
|
|
Export
|
|
|
|
*******************************/
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
title: 'Fomantic UI',
|
|
|
|
repository: 'https://github.com/fomantic/Fomantic-UI',
|
|
|
|
url: 'https://fomantic-ui.com/',
|
|
|
|
|
|
|
|
banner: ''
|
|
|
|
+ '/*\n'
|
|
|
|
+ ' * # <%= title %> - <%= version %>\n'
|
|
|
|
+ ' * <%= repository %>\n'
|
|
|
|
+ ' * <%= url %>\n'
|
|
|
|
+ ' *\n'
|
|
|
|
+ ' * Copyright <%= year %> Contributors\n'
|
|
|
|
+ ' * Released under the MIT license\n'
|
|
|
|
+ ' * https://opensource.org/licenses/MIT\n'
|
|
|
|
+ ' *\n'
|
|
|
|
+ ' */\n',
|
|
|
|
|
|
|
|
version: version,
|
2022-01-13 13:00:31 +00:00
|
|
|
|
|
|
|
};
|