Nopik / serverless-serve

Local lambda HTTP serve plugin for Serverless framework, a.k.a. API Gateway simulator.
119 stars 19 forks source link

starting with Nodemon? #24

Open leslie-fugue opened 8 years ago

leslie-fugue commented 8 years ago

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

madmod commented 8 years ago

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.

akupila commented 8 years ago

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.

hutber commented 5 years ago

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