Jan Dittberner
d7a742d97d
- add package.json for npm/npx - update to fomantic-ui - move ui files to ui directory - add UI build documentation to README.md - add ui target to Makefile - add addPrefix handler in boardvoting.go to allow the same /static/ prefix for static resources
65 lines
1.3 KiB
JavaScript
65 lines
1.3 KiB
JavaScript
/*******************************
|
|
Release Config
|
|
*******************************/
|
|
|
|
var
|
|
requireDotFile = require('require-dot-file'),
|
|
config,
|
|
npmPackage,
|
|
version
|
|
;
|
|
|
|
|
|
/*******************************
|
|
Derived Values
|
|
*******************************/
|
|
|
|
try {
|
|
config = requireDotFile('semantic.json', process.cwd());
|
|
}
|
|
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)
|
|
version = (npmPackage && npmPackage.version !== undefined && npmPackage.name == 'fomantic-ui')
|
|
? npmPackage.version
|
|
: config.version
|
|
;
|
|
|
|
|
|
/*******************************
|
|
Export
|
|
*******************************/
|
|
|
|
module.exports = {
|
|
|
|
title : 'Fomantic UI',
|
|
repository : 'https://github.com/fomantic/Fomantic-UI',
|
|
url : 'http://fomantic-ui.com/',
|
|
|
|
banner: ''
|
|
+ '/*' + '\n'
|
|
+ ' * # <%= title %> - <%= version %>' + '\n'
|
|
+ ' * <%= repository %>' + '\n'
|
|
+ ' * <%= url %>' + '\n'
|
|
+ ' *' + '\n'
|
|
+ ' * Copyright <%= year %> Contributors' + '\n'
|
|
+ ' * Released under the MIT license' + '\n'
|
|
+ ' * http://opensource.org/licenses/MIT' + '\n'
|
|
+ ' *' + '\n'
|
|
+ ' */' + '\n',
|
|
|
|
version : version
|
|
|
|
};
|