Gruntfile.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. jshintrc: '.jshintrc'
  18. }
  19. },
  20. less: {
  21. production: {
  22. options: {
  23. paths: ["vendor/bootstrap/less"],
  24. yuicompress:true
  25. },
  26. files: {
  27. "common/css/bootstrap.dark.min.css": "vendor/bootstrap/less/bootstrap.dark.less",
  28. "common/css/bootstrap.light.min.css": "vendor/bootstrap/less/bootstrap.light.less"
  29. }
  30. }
  31. }
  32. });
  33. // load plugins
  34. grunt.loadNpmTasks('grunt-contrib-jshint');
  35. grunt.loadNpmTasks('assemble-less');
  36. // Default task.
  37. grunt.registerTask('default', ['jshint','less']);
  38. };