Skip to content

Ubiatar/grunt-multi-develop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%