A scaffold with Maven, Spring and Webpack
refer to this repository for maven
This project includes:
- Spring as backend resources
- Webpack to translate ES2015 to JS and manage client resources link
- jQuery as default vendor for example
- Mocha, Chai, Sinon and Karma as client test environments
There are 2 profiles:
development
used to build development client resource withNODE_ENV=development
production
used to build production client resource withNODE_ENV=production
# watch
mvn frontend:install-node-and-npm@install-node-and-npm frontend:npm@npm-install frontend:npm@npm-watch
# server
mvn frontend:install-node-and-npm@install-node-and-npm frontend:npm@npm-install frontend:npm@npm-server
# build
mvn frontend:install-node-and-npm@install-node-and-npm frontend:npm@npm-install frontend:npm@npm-build
# production build
mvn frontend:install-node-and-npm@install-node-and-npm frontend:npm@npm-install frontend:npm@npm-prod-build -Pproduction
# test
mvn frontend:install-node-and-npm@install-node-and-npm frontend:npm@npm-install frontend:npm@npm-test
Spring and Maven configurations is done by the 'pom.xml' file at the project's root.
Client global states configuration is done by the 'global.config.js' file at the project's root.
The vendors configuration is done by the 'vendors.js' file at the client resources's js folder.
Webpack configuration is done by the 'webpack.config.js' file at the project's root.
Client test configurations is done by the 'karma.conf.js' file at the project's root.