foxhound87 / rfx-stack

RFX Stack - Universal App
MIT License
419 stars 42 forks source link

Live Linter now applicable on API files during development? #16

Closed briandpassa closed 8 years ago

briandpassa commented 8 years ago

It seems that the linter is not being applied on API files when development server is running. Only when we build:server:api that the linter is applied.

Live Linter on other files are fine.

foxhound87 commented 8 years ago

I can't reproduce your issue.

But I think you are confusing the live linter (the error shown on the editor) from the syntax checking happening in the building process (that you can see in the terminal).

On npm run api:dev ther's no build process and no live syntax checking (it's just 1-time checked when launching the command).

Instead npm run web:dev has live syntax checking because the code si built on each code change from webpack using hot-loader.

briandpassa commented 8 years ago

I see. I was wondering whether live syntax checking using webpack hot-loader can be done on api files too.

foxhound87 commented 8 years ago

The hot reload for the node server is a cool features that will be nice to have. I already have it in my todo list!

briandpassa commented 8 years ago

Great! Will be waiting for it.

foxhound87 commented 8 years ago

@briandpassa For now I installed nodemon to auto restart the api server. https://github.com/foxhound87/rfx-stack/commit/b6699a5b4372c47c21009db99f9a96ccd8bfd889

The server HMR it's a bit tricky to accomplish for now, expecially to integrate in the current webpack config but I will try.

briandpassa commented 8 years ago

Great! Thanks