grunt.js 846 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*global module */
  2. module.exports = function (grunt) {
  3. 'use strict';
  4. grunt.initConfig({
  5. pkg: '<json:cookie.jquery.json>',
  6. meta: {
  7. banner: '/*! <%= pkg.title %> v<%= pkg.version %> | <%= pkg.licenses[0].type %> */'
  8. },
  9. qunit: {
  10. files: ['test/index.html']
  11. },
  12. lint: {
  13. files: [
  14. 'grunt.js',
  15. 'jquery.cookie.js'
  16. ]
  17. },
  18. jshint: {
  19. options: {
  20. boss: true,
  21. browser: true,
  22. curly: true,
  23. eqeqeq: true,
  24. eqnull: true,
  25. expr: true,
  26. evil: true,
  27. newcap: true,
  28. noarg: true,
  29. undef: true
  30. },
  31. globals: {
  32. define: true,
  33. jQuery: true
  34. }
  35. },
  36. min: {
  37. dist: {
  38. src: ['<banner>', 'jquery.cookie.js'],
  39. dest: 'jquery.cookie-<%= pkg.version %>.min.js'
  40. }
  41. }
  42. });
  43. grunt.registerTask('default', 'lint qunit');
  44. // Travis CI task.
  45. grunt.registerTask('ci', 'default');
  46. };