Gruntfile.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. module.exports = function(grunt) {
  2. 'use strict';
  3. var config = {};
  4. grunt.loadNpmTasks('grunt-contrib-less');
  5. grunt.loadNpmTasks('grunt-contrib-watch');
  6. // Project configuration.
  7. grunt.initConfig({
  8. config: config,
  9. less: {
  10. hue: {
  11. options: {
  12. paths: ['desktop/core/src/desktop/static/desktop/less'],
  13. compress: false
  14. },
  15. files: {
  16. 'desktop/core/src/desktop/static/desktop/css/hue.css': 'desktop/core/src/desktop/static/desktop/less/hue.less',
  17. 'desktop/core/src/desktop/static/desktop/css/hue3-extra.css': 'desktop/core/src/desktop/static/desktop/less/hue3-extra.less',
  18. 'apps/metastore/src/metastore/static/metastore/css/metastore.css': 'apps/metastore/src/metastore/static/metastore/less/metastore.less'
  19. }
  20. }
  21. },
  22. watch: {
  23. less: {
  24. files: [
  25. 'desktop/core/src/desktop/static/desktop/less/*.less',
  26. 'desktop/core/src/desktop/static/desktop/less/**/*.less'
  27. ],
  28. tasks: ['less']
  29. }
  30. }
  31. });
  32. };