2017-04-22 19:24:52 +00:00
|
|
|
/*******************************
|
|
|
|
Release Config
|
|
|
|
*******************************/
|
|
|
|
|
|
|
|
var
|
|
|
|
requireDotFile = require('require-dot-file'),
|
|
|
|
config,
|
|
|
|
npmPackage,
|
|
|
|
version
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************
|
|
|
|
Derived Values
|
|
|
|
*******************************/
|
|
|
|
|
|
|
|
try {
|
2022-05-08 14:13:50 +00:00
|
|
|
config = requireDotFile('semantic.json', process.cwd());
|
2017-04-22 19:24:52 +00:00
|
|
|
}
|
|
|
|
catch(error) {}
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
npmPackage = require('../../../package.json');
|
|
|
|
}
|
|
|
|
catch(error) {
|
|
|
|
// generate fake package
|
|
|
|
npmPackage = {
|
|
|
|
name: 'Unknown',
|
|
|
|
version: 'x.x'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
// looks for version in config or package.json (whichever is available)
|
2022-05-08 14:13:50 +00:00
|
|
|
version = (npmPackage && npmPackage.version !== undefined && npmPackage.name == 'fomantic-ui')
|
2017-04-22 19:24:52 +00:00
|
|
|
? npmPackage.version
|
|
|
|
: config.version
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************
|
|
|
|
Export
|
|
|
|
*******************************/
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
2022-05-08 14:13:50 +00:00
|
|
|
title : 'Fomantic UI',
|
|
|
|
repository : 'https://github.com/fomantic/Fomantic-UI',
|
|
|
|
url : 'http://fomantic-ui.com/',
|
2017-04-22 19:24:52 +00:00
|
|
|
|
|
|
|
banner: ''
|
2022-05-08 14:13:50 +00:00
|
|
|
+ '/*' + '\n'
|
2017-04-22 19:24:52 +00:00
|
|
|
+ ' * # <%= title %> - <%= version %>' + '\n'
|
|
|
|
+ ' * <%= repository %>' + '\n'
|
|
|
|
+ ' * <%= url %>' + '\n'
|
|
|
|
+ ' *' + '\n'
|
2022-05-08 14:13:50 +00:00
|
|
|
+ ' * Copyright <%= year %> Contributors' + '\n'
|
2017-04-22 19:24:52 +00:00
|
|
|
+ ' * Released under the MIT license' + '\n'
|
|
|
|
+ ' * http://opensource.org/licenses/MIT' + '\n'
|
|
|
|
+ ' *' + '\n'
|
|
|
|
+ ' */' + '\n',
|
|
|
|
|
|
|
|
version : version
|
|
|
|
|
|
|
|
};
|