github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/controller/static/semantic/tasks/config/project/release.js (about) 1 /******************************* 2 Release Config 3 *******************************/ 4 5 var 6 requireDotFile = require('require-dot-file'), 7 config, 8 package, 9 version 10 ; 11 12 13 /******************************* 14 Derived Values 15 *******************************/ 16 17 try { 18 19 config = requireDotFile('semantic.json'); 20 package = require('../../../package.json'); 21 22 // looks for version in config or package.json (whichever is available) 23 version = (config && config.version !== undefined) 24 ? config.version 25 : package.version 26 ; 27 28 } 29 30 catch(error) { 31 // generate fake package 32 package = { 33 version: 'x.x' 34 }; 35 } 36 37 /******************************* 38 Export 39 *******************************/ 40 41 module.exports = { 42 43 title : 'Semantic UI', 44 repository : 'https://github.com/Semantic-Org/Semantic-UI', 45 url : 'http://www.semantic-ui.com/', 46 47 banner: '' 48 + ' /*' + '\n' 49 + ' * # <%= title %> - <%= version %>' + '\n' 50 + ' * <%= repository %>' + '\n' 51 + ' * <%= url %>' + '\n' 52 + ' *' + '\n' 53 + ' * Copyright 2014 Contributors' + '\n' 54 + ' * Released under the MIT license' + '\n' 55 + ' * http://opensource.org/licenses/MIT' + '\n' 56 + ' *' + '\n' 57 + ' */' + '\n', 58 59 version : package.version 60 61 };