/grunt-develop

Grunt Task to run a Node.js Server while developing, auto-reloading on change.

Primary LanguageJavaScriptMIT LicenseMIT

grunt-develop - Build Status

Grunt Task to run a Node.js Server while developing, auto-reloading on change.

Notes:

  • Requires Grunt >= 0.4.0
  • Uses it's own internal "watch", no need to list in grunt-contrib-watch as a target
  • No need to modify/export your server or alter your applications code.**

Install

$ npm install grunt-develop

Setup Gruntfile.js:

module.exports = function(grunt) {

  grunt.initConfig({
    develop: {
      server: {
        file: 'app.js'
      }
    }
  });

  grunt.loadNpmTasks('grunt-develop');

  grunt.registerTask('default', ['develop']);

};

Usage (Realtime development with restart on file changes)

$ grunt

License (MIT)

Copyright (c) 2013, Edward Hotchkiss.