actum / gulp-dev-stack

Actum dev stack based on gulp
MIT License
11 stars 7 forks source link

JSON server #66

Closed kettanaito closed 7 years ago

kettanaito commented 8 years ago

It would be useful to have a ready-to-use JSON server for imitating requests and responses.

What do you think about it?

janpanschab commented 8 years ago

Yes, but only if it starts automatically with gulp --dev.

vbulant commented 8 years ago

We used something similar for MyMETRO.

My experience:

janpanschab commented 8 years ago

Is it a real problem the waste of resources?

vbulant commented 8 years ago

Well I think there are projects without the need for the mock server.

Having the mock server in gulp --dev pipeline would mean that we need to remove the mock server from gulp pipeline if we don’t need it…

Having the mock server in separate folder (eg. api/index.js) means either doing nothing or simply removing the folder.

And if needed, we’d simply run eg. npm run mock. I think is less invasive.

janpanschab commented 8 years ago

OK, so what about to use the power of yargs and run it with gulp --dev --api (or other option name).

janpanschab commented 7 years ago

Documentation is missing!

vbulant commented 7 years ago

D'oh!