1 |
|
2 |
|
3 |
|
4 |
|
5 | const requireDotFile = require('require-dot-file');
|
6 |
|
7 | let
|
8 | config,
|
9 | npmPackage,
|
10 | version
|
11 | ;
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | config = requireDotFile('semantic.json', process.cwd());
|
18 |
|
19 | try {
|
20 | npmPackage = require('../../../package.json');
|
21 | } catch (error) {
|
22 |
|
23 | npmPackage = {
|
24 | name: 'Unknown',
|
25 | version: 'x.x',
|
26 | };
|
27 | }
|
28 |
|
29 |
|
30 | version = npmPackage && npmPackage.version !== undefined && npmPackage.name === 'fomantic-ui'
|
31 | ? npmPackage.version
|
32 | : config.version;
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | module.exports = {
|
39 |
|
40 | title: 'Fomantic UI',
|
41 | repository: 'https://github.com/fomantic/Fomantic-UI',
|
42 | url: 'https://fomantic-ui.com/',
|
43 |
|
44 | banner: ''
|
45 | + '/*\n'
|
46 | + ' * # <%= title %> - <%= version %>\n'
|
47 | + ' * <%= repository %>\n'
|
48 | + ' * <%= url %>\n'
|
49 | + ' *\n'
|
50 | + ' * Copyright <%= year %> Contributors\n'
|
51 | + ' * Released under the MIT license\n'
|
52 | + ' * https://opensource.org/licenses/MIT\n'
|
53 | + ' *\n'
|
54 | + ' */\n',
|
55 |
|
56 | version: version,
|
57 |
|
58 | };
|