You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.2 KiB

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