Skip to content

Instantly share code, notes, and snippets.

@pahund
Created October 21, 2015 14:30
Show Gist options
  • Select an option

  • Save pahund/40d3f4c4757ad35a2ca9 to your computer and use it in GitHub Desktop.

Select an option

Save pahund/40d3f4c4757ad35a2ca9 to your computer and use it in GitHub Desktop.
Gulp task for running app in local development mode using nodemon
/**
* start.js
*
* A Gulp task that starts the local development server and the watchers.
*
* @author <a href="mailto:pahund@team.mobile.de">Patrick Hund</a>
* @since 22 Jun 2015
*/
import gutil from "gulp-util";
import path from "path";
import nodemon from "nodemon";
export default [["icons", "frontend-watch"], () => {
process.env.PORT_NUMBER = 30000;
nodemon({
exec: "babel-node",
script: path.join(__dirname, "../../index"),
watch: [
"index.js",
"app/**/*",
"config/**/*"
],
ignore: [
"**/*.dust"
]
}).on("restart", function () {
gutil.log("Restarted!");
});
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment