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.

65 lines
1.3 KiB

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