Guest User

Untitled

a guest
Nov 22nd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. module.exports = function(grunt) {
  2.  
  3. var globalConfig = {
  4. src: 'css' // your dev stylesheet directory. No trailing slash
  5. };
  6.  
  7. var gulp = require('gulp');
  8. var cssimport = require("gulp-cssimport");
  9.  
  10. grunt.initConfig({
  11. exec: {
  12. theme_watch: {
  13. command: 'bundle exec theme watch'
  14. }
  15. },
  16.  
  17. gulp: {
  18. concat: function() {
  19. return gulp.src(globalConfig.src + '/**/[^_]*.*')
  20. .pipe(cssimport())
  21. .pipe(gulp.dest('assets/'));
  22. }
  23. },
  24.  
  25. watch: {
  26. gulp: {
  27. files: globalConfig.src + '/**/*.*',
  28. tasks: ['gulp']
  29. }
  30. },
  31.  
  32. concurrent: {
  33. options: {
  34. logConcurrentOutput: true
  35. },
  36. watch: {
  37. tasks: ['watch', 'exec']
  38. }
  39. }
  40. });
  41.  
  42. require('load-grunt-tasks')(grunt);
  43.  
  44. grunt.registerTask ('default', ['concurrent:watch']);
  45.  
  46. };
Add Comment
Please, Sign In to add comment