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.

110 lines
2.1 KiB

9 years ago
  1. var
  2. config = require('../user'),
  3. release = require('./release')
  4. ;
  5. module.exports = {
  6. banner : release.banner,
  7. log: {
  8. created: function(file) {
  9. return 'Created: ' + file;
  10. },
  11. modified: function(file) {
  12. return 'Modified: ' + file;
  13. }
  14. },
  15. filenames: {
  16. concatenatedCSS : 'semantic.css',
  17. concatenatedJS : 'semantic.js',
  18. concatenatedMinifiedCSS : 'semantic.min.css',
  19. concatenatedMinifiedJS : 'semantic.min.js',
  20. concatenatedRTLCSS : 'semantic.rtl.css',
  21. concatenatedMinifiedRTLCSS : 'semantic.rtl.min.css'
  22. },
  23. regExp: {
  24. comments: {
  25. // remove all comments from config files (.variable)
  26. variables : {
  27. in : /\/\*[\s\S]+?\/\* End Config \*\//m,
  28. out : '',
  29. },
  30. // adds uniform spacing around comments
  31. large: {
  32. in : /(\/\*\*\*\*[\s\S]+?\*\/)/mg,
  33. out : '\n\n$1\n'
  34. },
  35. small: {
  36. in : /(\/\*---[\s\S]+?\*\/)/mg,
  37. out : '\n$1\n'
  38. },
  39. tiny: {
  40. in : /(\/\* [\s\S]+? \*\/)/mg,
  41. out : '\n$1'
  42. }
  43. },
  44. theme: /.*\/themes\/.*?(?=\/)/mg
  45. },
  46. settings: {
  47. /* Remove Files in Clean */
  48. del: {
  49. silent : true
  50. },
  51. /* Comment Banners */
  52. header: {
  53. title : release.title,
  54. version : release.version,
  55. repository : release.repository,
  56. url : release.url
  57. },
  58. /* Minified CSS Settings */
  59. minify: {
  60. processImport : false,
  61. keepSpecialComments : 0
  62. },
  63. /* What Browsers to Prefix */
  64. prefix: {
  65. browsers: [
  66. 'last 2 version',
  67. '> 1%',
  68. 'opera 12.1',
  69. 'safari 6',
  70. 'ie 9',
  71. 'bb 10',
  72. 'android 4'
  73. ]
  74. },
  75. /* File Renames */
  76. rename: {
  77. minJS : { extname : '.min.js' },
  78. minCSS : { extname : '.min.css' },
  79. rtlCSS : { extname : '.rtl.css' },
  80. rtlMinCSS : { extname : '.rtl.min.css' }
  81. },
  82. /* Sourcemaps */
  83. sourcemap: {
  84. includeContent : true,
  85. sourceRoot : '/src'
  86. },
  87. /* Minified JS Settings */
  88. uglify: {
  89. mangle : true
  90. }
  91. }
  92. };