I have the current project structure for a spring boot angular project
+--app-ui
|--+--src
|--+--dist
|--app-backend
|--+--src
|--+--+--main
|--+--+--+--resources
|--+--+--+--+--static
|--+--+--+--java
app-ui contains the angular 6 code app backend contains the spring boot code. Now everytime I build app-ui i want the dist folder contents in app-ui to be copied to app-backend/src/main/resources/static
In order to do that I have added these lines in the angular build
"predeploy": "rimraf ../app-backend/src/main/resources/static/ && mkdirp ../app-backend/src/main/resources/static",
"deploy": "copyfiles -f dist/** ../app-backend/src/main/resources/static/
This creates the static folder inside Spring boot project but it doesn't copy the files and folders inside dist folder.