Gruntfile.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. 'use strict';
  2. module.exports = function (grunt) {
  3. var post = ['src/client.js','src/post.js'];
  4. // Project configuration.
  5. grunt.initConfig({
  6. pkg: grunt.file.readJSON('package.json'),
  7. meta: {
  8. banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
  9. '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
  10. '<%= pkg.homepage ? " * " + pkg.homepage + "\\n" : "" %>' +
  11. ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
  12. ' Licensed <%= pkg.license %> */\n\n'
  13. },
  14. jshint: {
  15. files: ['Gruntfile.js', 'js/*.js', 'panels/*/*.js' ],
  16. options: {
  17. bitwise: true,
  18. curly: true,
  19. eqeqeq: true,
  20. immed: true,
  21. indent: 2,
  22. latedef: true,
  23. newcap: true,
  24. noarg: true,
  25. sub: true,
  26. undef: true,
  27. boss: true,
  28. eqnull: true,
  29. globalstrict: true,
  30. devel: true,
  31. node: true,
  32. globals: {
  33. '$LAB': false,
  34. '_': false,
  35. '$': false,
  36. 'kbn' : false,
  37. window: false,
  38. document: false,
  39. exports: true,
  40. module: false,
  41. config: false,
  42. moment: false
  43. }
  44. }
  45. }
  46. });
  47. // load plugins
  48. grunt.loadNpmTasks('grunt-contrib-jshint');
  49. // Default task.
  50. grunt.registerTask('default', ['jshint']);
  51. };