-
Notifications
You must be signed in to change notification settings - Fork 46
Build
Sven Loesekann edited this page Apr 19, 2018
·
1 revision
The build is based on the build provided by spring initializr. It is extended to build the Angular part of the application and to create a docker image.
The Angular build has 2 steps in the pom. They are executed by the 'exec-maven-plugin' plugin. The Steps are:
- Installing the Npm dependencies
- Executing the Npm build
The Npm Build has 4 steps the can be found in the package.json in the Angular directory. The Steps are:
- Delete and recreate the dist directory for the Angular bundle.
- Building the 2 Angular bundles for the languages German and English.
- Deleting everything in the static resources directory where the bundles get deployed.
- Copying the bundles in their subdirectories in the static resources directory.
To build the Docker images the 'dockerfile-maven-plugin' plugin is used. It uses the Dockerfile in the root directory to create the image.