Skip to content

Commit

Permalink
Introduce autmated backoffice bundled libs
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed May 3, 2024
1 parent 307833a commit 9f52eec
Show file tree
Hide file tree
Showing 7 changed files with 526 additions and 22 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
release.properties
release.properties

node_modules/
4 changes: 0 additions & 4 deletions backoffice/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-caffeine-deployment</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-webjars-locator-deployment</artifactId>
</dependency>
<dependency>
<groupId>io.quarkiverse.renarde</groupId>
<artifactId>quarkus-renarde-deployment</artifactId>
Expand Down
5 changes: 2 additions & 3 deletions backoffice/deployment/src/main/resources/templates/main.qute
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
<head>
<title>\{#insert title/}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" media="screen" href="/webjars/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" media="screen" href="/webjars/bootstrap-icons/font/bootstrap-icons.css">
<link rel="stylesheet" media="screen" href="/static/bundle/backoffice.css">
\{#insert moreStyles /}
<script src="/webjars/bootstrap/js/bootstrap.min.js" type="text/javascript" charset="UTF-8"></script>
<script src="/static/bundle/backoffice.js" type="text/javascript" charset="UTF-8"></script>
\{#insert moreScripts /}
</head>
<body>
Expand Down
50 changes: 36 additions & 14 deletions backoffice/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,45 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-panache-hibernate-common</artifactId>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>5.2.3</version>
</dependency>
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>bootstrap-icons</artifactId>
<version>1.10.3</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-webjars-locator</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.15.0</version>
<executions>
<execution>
<id>install node</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
</execution>
<execution>
<id>npm build</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run build</arguments>
<environmentVariables>
<TARGET_DIR>${project.build.directory}/classes/META-INF/resources</TARGET_DIR>
</environmentVariables>
</configuration>
</execution>
</executions>
<configuration>
<nodeVersion>v20.12.2</nodeVersion>
<installDirectory>target</installDirectory>
<workingDirectory>web-libs</workingDirectory>
</configuration>
</plugin>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-extension-maven-plugin</artifactId>
Expand Down
3 changes: 3 additions & 0 deletions backoffice/runtime/web-libs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import "bootstrap/dist/css/bootstrap.css";
import "bootstrap-icons/font/bootstrap-icons.css";
import "bootstrap";
Loading

0 comments on commit 9f52eec

Please sign in to comment.