Nefariously Programmed Mecha

    grunt-multi-develop

    0.0.2 • Public • Published

    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.

    Author: Antonio giordano

    Install

    npm i grunt-multi-develop

    DownloadsWeekly Downloads

    1

    Version

    0.0.2

    License

    none

    Unpacked Size

    8.14 kB

    Total Files

    9

    Last publish

    Collaborators

    • antoniogiordano