Нема описа

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*global config:true, task:true*/
  2. config.init({
  3. pkg: '<json:package.json>',
  4. meta: {
  5. name: 'JavaScript Hooker',
  6. banner: '/*! <%= meta.name %> - v<%= pkg.version %> - <%= template.today("m/d/yyyy") %>\n' +
  7. '* <%= pkg.homepage %>\n' +
  8. '* Copyright (c) <%= template.today("yyyy") %> <%= pkg.author.name %>;' +
  9. ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */'
  10. },
  11. concat: {
  12. 'dist/ba-hooker.js': ['<banner>', '<file_strip_banner:lib/hooker.js>']
  13. },
  14. min: {
  15. 'dist/ba-hooker.min.js': ['<banner>', 'dist/ba-hooker.js']
  16. },
  17. test: {
  18. files: ['test/**/*.js']
  19. },
  20. lint: {
  21. files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
  22. },
  23. watch: {
  24. files: '<config:lint.files>',
  25. tasks: 'lint:files test:files'
  26. },
  27. jshint: {
  28. options: {
  29. curly: true,
  30. eqeqeq: true,
  31. immed: true,
  32. latedef: true,
  33. newcap: true,
  34. noarg: true,
  35. sub: true,
  36. undef: true,
  37. eqnull: true
  38. },
  39. globals: {
  40. exports: true
  41. }
  42. },
  43. uglify: {}
  44. });
  45. // Default task.
  46. task.registerTask('default', 'lint:files test:files concat min');