Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = function (grunt) {
- grunt.initConfig({
- watch: {
- dev: {
- files: ["*.html"]
- }
- },
- connect: {
- local: {
- options: {
- keepalive: true,
- hostname: 'localhost',
- port: 9100
- }
- }
- },
- open: {
- dev: {
- path: 'http://localhost:9100/',
- app: 'Google Chrome'
- }
- }
- });
- grunt.loadNpmTasks('grunt-contrib-watch');
- grunt.loadNpmTasks('grunt-contrib-connect');
- grunt.loadNpmTasks('grunt-contrib-livereload');
- grunt.loadNpmTasks('grunt-open');
- grunt.registerTask('default', ['connect:local', 'open:dev', 'watch']);
- };
- {
- "name": "demo",
- "version": "1.0.0",
- "description": "",
- "main": "index.js",
- "scripts": {
- "test": "echo "Error: no test specified" && exit 1"
- },
- "author": "",
- "license": "ISC",
- "devDependencies": {
- "grunt": "^1.0.1",
- "grunt-contrib": "^0.11.0",
- "grunt-contrib-connect": "^1.0.2",
- "grunt-contrib-cssmin": "^2.2.1",
- "grunt-contrib-livereload": "^0.1.2",
- "grunt-contrib-watch": "^1.0.0",
- "grunt-open": "^0.2.3"
- }
- }
Add Comment
Please, Sign In to add comment