Skip to content

winter-cardinal/winter-cardinal-starter

Repository files navigation

WinterCardinal Starter

A starter for WinterCardinal projects.

How to Run the Production Build

  1. If you haven't executed npm install before, please execute npm install to install node modules. npm install need to be performed at least once. Once npm install is executed successfully, it doesn't need to be executed unless the dependencies listed in the package.json get changed.
  2. Build TypeScript codes by the command npm run build.
  3. And then, execute ./gradlew bootRun to start the web server. ./gradlew build followed by java -jar ./build/libs/${jar-file-name}.jar works as well.

To stop the web server, please hit the Ctrl+C.

How to Run the Development Build

  1. Type npm install to install node modules if they haven't been installed yet.
  2. Build TypeScript codes by the command npm run build:esbuild. If you want to build incrementally, please type npm run watch:esbuild instead.
  3. And then, run src/main/java/Main.java with your IDE.

Compiling Java Codes

Production Build

./gradlew build

The compiled JAR files are located in build\libs\.

Development Build

Please build src/main/java/Main.java with your IDE.

Compiling TypeScript Codes

If you haven't done npm install before, please execute npm install to install node modules.

Production Build

npm run build

The compiled JS files are located in src\main\resources\META-INF\resources\webjars\.

Development Build (Clean Build)

npm run build:esbuild

Development Build (Incremental Build)

npm run watch:esbuild

Linting Java Codes

./gradlew spotlessCheck

or

./gradlew spotlessApply

to fix all the lint errors.

Linting TypeScript Codes

npm run lint

or

npm run lint:fix

to fix all the auto-fixable lint errors.

Proxy

Gradle

# ~/.gradle/gradle.properties
systemProp.http.proxyHost=proxy-host
systemProp.http.proxyPort=proxy-port
systemProp.http.nonProxyHosts=no-proxy-host-a|no-proxy-host-b
systemProp.https.proxyHost=proxy-host
systemProp.https.proxyPort=proxy-port
systemProp.https.nonProxyHosts=no-proxy-host-a|no-proxy-host-b

NPM

# ~/.npmrc
proxy=http://proxy-host:proxy-port/
https-proxy=http://proxy-host:proxy-port/
noproxy[]=no-proxy-host-a
noproxy[]=no-proxy-host-b

License