Run a Node.js application for development, with support for auto-reload.
This project has a lot of active contributors and users. Please submit a test along with any changes made. Thanks!
$ npm install grunt-develop
You may also have develop automatically restart coffeescript based node
applications by using the
cmd option. This option allows the user to
specify which command/executable to use when restarting the server.
=gruntinitConfigdevelop:server:file: 'app.coffee'cmd: 'coffee'gruntloadNpmTasks 'grunt-develop'gruntregisterTask 'default''develop'
To support auto-reload on changes, for example:
is required to keep the grunt context in which
grunt-develop is running
Then you can run grunt as the following and get automatic restart of the application on file changes:
You may add any other task in the watch, like JS linting, asset compiling, etc. and customize the watch to your needs. See grunt-contrib-watch.
Copyright (c) 2013, Edward Hotchkiss.