Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1.  
  2.  
  3. module.exports = function(grunt) {
  4. grunt.initConfig({
  5. pkg: grunt.file.readJSON('package.json'),
  6.  
  7. php: {
  8. dev: {
  9. options: {
  10. hostname: '127.0.0.1',
  11. port: 5000
  12. }
  13. }
  14. },
  15.  
  16. less: {
  17. dev: {
  18. files: {
  19. "style.css": "style.less"
  20. }
  21. }
  22. },
  23.  
  24. watch: {
  25.  
  26. markup: {
  27. files: ['index.php'],
  28. options: {
  29. livereload: true,
  30. }
  31. },
  32.  
  33. styles: {
  34. files: ['style.less'],
  35. tasks: ['less:dev'],
  36. options: {
  37. livereload: true
  38. }
  39. },
  40. }
  41. });
  42.  
  43.  
  44. // Tasks.
  45.  
  46. grunt.loadNpmTasks('grunt-php');
  47. grunt.loadNpmTasks('grunt-contrib-watch');
  48. grunt.loadNpmTasks('grunt-contrib-less');
  49.  
  50. grunt.registerTask('default', ['php:dev', 'watch']);
  51.  
  52.  
  53. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement