Gruntfile.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. maxlen: 140,
  19. curly: true,
  20. eqeqeq: true,
  21. immed: true,
  22. indent: 2,
  23. latedef: true,
  24. newcap: true,
  25. noarg: true,
  26. sub: true,
  27. undef: true,
  28. boss: true,
  29. eqnull: true,
  30. globalstrict: true,
  31. devel: true,
  32. node: true,
  33. globals: {
  34. '$LAB': false,
  35. '_': false,
  36. '$': false,
  37. 'kbn' : false,
  38. window: false,
  39. document: false,
  40. exports: true,
  41. module: false,
  42. config: false,
  43. moment: false
  44. }
  45. }
  46. }
  47. });
  48. // load plugins
  49. grunt.loadNpmTasks('grunt-contrib-jshint');
  50. // Default task.
  51. grunt.registerTask('default', ['jshint']);
  52. };