This module holds all web resources (Js, CSS, images...). We use several tools for its own build system
- Node.js and npm : downloads all the required JS libraries
- Gulp : builds system used to package the project. The process is defined in the main file gulpfile.old and in all its sub config files
- Gradle : builds a web archive which will be deployed in the final webapp
This module use Angular V1
We use gulp to manage the lifecycle of the web applications
To build the project you can lauch gulp
. By default the tasks clean
, test
and build
are launched
The main tasks are defined in the gulpfile.old and in the subfiles available in /gulp
default
: launch tasksclean
,test
andbuild
build
: package app for dev and prodbundle
: prepare assets used in dev and prodserve
: start a web server and launch the webapptest
: launch all the unit teststest:watch
: launch all the unit tests with Karma watch mode
When you develop the web application you can launch an http server with this gulp task
gulp serve
Several watchers rerun the server when you change files (JS, HTML, Less...). See the gulp task watch.
When you want to package the web resources for the final webapp (not needed in development) you can launch the command
../gradlew build