serverless-serve icon indicating copy to clipboard operation
serverless-serve copied to clipboard

starting with Nodemon?

Open leslie-fugue opened this issue 9 years ago • 3 comments

How do I combine the sls serve start command with Nodemon?

leslie-fugue avatar Feb 26 '16 12:02 leslie-fugue

I don't use nodemon, but I achieve a similar result by using entr with find ./api/lib -type f -name '*.js' | entr -rc sls serve start to watch js files in my api component's lib folder for example.

madmod avatar Mar 02 '16 04:03 madmod

nodemon --exec "serverless serve start"

I'm using this in package.json during dev:

"scripts": {
  "start": "nodemon --exec \"serverless serve start\""
}

This allows me to just run npm start. Whenever any file in the project changes nodemon will restart serve.

akupila avatar Mar 02 '16 10:03 akupila

This i great, but sadly isn't working with --inspect :(, but thank you.

hutber avatar Jun 22 '19 20:06 hutber