0.0.2 • Published 5 years ago

grunt-multi-develop v0.0.2

Weekly downloads
7
License
-
Repository
github
Last release
5 years ago

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