Simple setup to have a dev server in the desired directory. Simply download the two files to your directory and execute
$ npm install
$ grunt server
| module.exports = function (grunt) { | |
| grunt.loadNpmTasks('grunt-contrib-connect'); | |
| grunt.initConfig({ | |
| connect: { | |
| server: { | |
| options: { | |
| port: 8000, | |
| base: '.', | |
| keepalive: true | |
| } | |
| } | |
| } | |
| }); | |
| grunt.registerTask("serve", "connect:server"); | |
| }; |
| { | |
| "name": "Test", | |
| "description": "Grunt development server", | |
| "version": "0.0.0", | |
| "devDependencies": { | |
| "grunt": "0.4.0", | |
| "http-server": "0.5.1", | |
| "grunt-contrib-connect": "0.1.2" | |
| } | |
| } |