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.

52 lines
960 B

  1. var
  2. path = require('path'),
  3. fs = require('fs'),
  4. defaults = require('./defaults'),
  5. package = require('../package.json')
  6. ;
  7. module.exports = {
  8. del: {
  9. silent : true
  10. },
  11. minify: {
  12. processImport : false,
  13. keepSpecialComments : 0
  14. },
  15. uglify: {
  16. mangle : true
  17. },
  18. prefix: {
  19. browsers: [
  20. 'last 2 version',
  21. '> 1%',
  22. 'opera 12.1',
  23. 'safari 6',
  24. 'ie 9',
  25. 'bb 10',
  26. 'android 4'
  27. ]
  28. },
  29. header: {
  30. title : defaults.title,
  31. version : package.version,
  32. repository : defaults.repository,
  33. url : defaults.url
  34. },
  35. sourcemap: {
  36. includeContent : true,
  37. sourceRoot : '/src'
  38. },
  39. rename: {
  40. json : { extname : '.json' },
  41. minJS : { extname : '.min.js' },
  42. minCSS : { extname : '.min.css' }
  43. },
  44. wrench: {
  45. recursive: {
  46. forceDelete : true,
  47. excludeHiddenUnix : true,
  48. preserveFiles : true
  49. }
  50. }
  51. };