Created
October 21, 2015 14:30
-
-
Save pahund/40d3f4c4757ad35a2ca9 to your computer and use it in GitHub Desktop.
Gulp task for running app in local development mode using nodemon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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