skuzzle / cmp

Create and share public counters
https://countmy.pizza
MIT License
6 stars 1 forks source link

Modularize frontend #8

Open skuzzle opened 4 years ago

skuzzle commented 4 years ago

Consolidate npm build Currently there is single a statically included js file. The build process must be adjusted so that java script is processed during build time (which allows for writing unit tests and to properly structure the code)

This build process hast to work seamlessly togehter with the spring boot build so that it produces an application that bundles both the Java part together with the JavaScript and CSS parts. It should also be possible to properly launch the application from the debugger and still have all the generated assets in the right place.

Actually, exactly like it is described here: https://blog.codecentric.de/en/2019/02/how-to-package-your-frontend-in-a-spring-boot-app-with-parceljs/

Modularizing