Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = function(grunt) {
- grunt.initConfig({
- pkg: grunt.file.readJSON('package.json'),
- php: {
- dev: {
- options: {
- hostname: '127.0.0.1',
- port: 5000
- }
- }
- },
- less: {
- dev: {
- files: {
- "style.css": "style.less"
- }
- }
- },
- watch: {
- markup: {
- files: ['index.php'],
- options: {
- livereload: true,
- }
- },
- styles: {
- files: ['style.less'],
- tasks: ['less:dev'],
- options: {
- livereload: true
- }
- },
- }
- });
- // Tasks.
- grunt.loadNpmTasks('grunt-php');
- grunt.loadNpmTasks('grunt-contrib-watch');
- grunt.loadNpmTasks('grunt-contrib-less');
- grunt.registerTask('default', ['php:dev', 'watch']);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement