Last active
August 29, 2015 14:08
-
-
Save feliupe/b3e256ae0407555f0f4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// Load Grunt tasks declared in the package.json file | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
// Configure Grunt | |
grunt.initConfig({ | |
// Grunt express - our webserver | |
// https://github.com/blai/grunt-express | |
express: { | |
all: { | |
options: { | |
bases: ['/home/felipe/myApps/Cssando/'], | |
port: 8081, | |
hostname: "0.0.0.0", | |
livereload: true | |
} | |
} | |
}, | |
//"grunt-contrib-less": "^0.12.0" | |
less: { | |
development: { | |
options: { compress: true, | |
paths: ["**/"] | |
}, | |
files: { 'saida.css': '**/*.less' } | |
} | |
}, | |
// grunt-watch will monitor the projects files | |
// https://github.com/gruntjs/grunt-contrib-watch | |
watch: { | |
all: { | |
files: ['**/*.html','**/*.less'], | |
tasks: ['less'], | |
options: { | |
livereload: true | |
} | |
} | |
}, | |
// grunt-open will open your browser at the project's URL | |
// https://www.npmjs.org/package/grunt-open | |
open: { | |
all: { | |
path: 'http://localhost:8081/index.html' | |
} | |
} | |
}); | |
// Creates the `server` task | |
grunt.registerTask('server', [ | |
'express', | |
'open', | |
'watch' | |
]); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment