steinarb / frontend-karaf-demo

Serving a react.js frontend from a servlet registered with the Pax Web Whiteboard Extender and run in apache karaf
https://steinar.bang.priv.no/2018/06/26/deliver-react-js-from-apache-karaf/
Apache License 2.0
7 stars 3 forks source link

No need to roll your own `npm` scripts #1

Closed catull closed 6 years ago

catull commented 6 years ago

Those scripts are taken automagically by the maven plugin from target/.

steinarb commented 6 years ago

I'm aware that these scripts aren't needed during the maven build.

I introduced them in an attempt to run npm commands against the maven-downloaded node and node_modules, outside of the maven build. Ie. to get quicker turnaround and better debugging during frontend development.

They didn't work because they were missing some stuff from node_modules, but I've left them in place to do more experimentation.