Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 870 Bytes

README.md

File metadata and controls

55 lines (35 loc) · 870 Bytes

grunt-multi-develop

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

Notes:

  • Requires Grunt >= 0.4.0
  • No need to modify/export your server or alter your applications code.**

Install

$ npm install grunt-multi-develop

Setup Gruntfile.js:

module.exports = function(grunt) {

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

  grunt.loadNpmTasks('grunt-develop');

  // if you are also using "watch", place after
  grunt.registerTask('default', ['develop','watch']);

};

Usage (Realtime development with restart on file changes)

$ grunt

License (MIT)

Copyright (c) 2018, Antonio Giordano.