You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ In order to use SPA application router (eg. angular, reactjs or vuejs router), w
48
48
This is achieved thanks to [SpaWebFluxConfigurer](./backend/src/main/kotlin/com/powple/backend/config/SpaWebFluxConfigurer.kt)
49
49
and the [`/` route](./backend/src/main/kotlin/com/powple/backend/config/RoutesConfiguration.kt)
50
50
51
-
Then add in [settings.gradle](./settings.gradle):
51
+
Then add in [settings.gradle.kts](./settings.gradle.kts):
52
52
53
53
```groovy
54
54
include 'backend'
@@ -83,7 +83,7 @@ Then change the react application to use that greeting service, see:
83
83
> In production, the react application will be served by [Spring Boot](https://projects.spring.io/spring-boot/) so the API is actually exposed locally.
84
84
---
85
85
86
-
Add in [settings.gradle](./settings.gradle):
86
+
Add in [settings.gradle.kts](./settings.gradle.kts):
87
87
88
88
```kotlin
89
89
include("backend")
@@ -134,15 +134,15 @@ We need to package the result of the build made by `yarn build` command to the [
134
134
In order to do that, we will use the [gradle-node-plugin](https://github.com/node-gradle/gradle-node-plugin) to allow us to run yarn/npm tasks from gradle
135
135
and at the end, make `processResources` task from the backend to depends on frontend `yarn build`.
136
136
137
-
1. First, add in [settings.gradle](./settings.gradle) before backend:
137
+
1. First, add in [settings.gradle.kts](./settings.gradle.kts) before backend:
138
138
139
139
```groovy
140
140
include("frontend")
141
141
```
142
142
143
-
2. Make yarn/npm tasks depends on gradle tasks in [build.gradle](./frontend/build.gradle) in frontend.
143
+
2. Make yarn/npm tasks depends on gradle tasks in [build.gradle.kts](./frontend/build.gradle.kts) in frontend.
144
144
145
-
3. Make backend gradle `processResources` task depending on frontend gradle `yarn_build` tasks in [build.gradle](./backend/build.gradle) in backend
145
+
3. Make backend gradle `processResources` task depending on frontend gradle `yarn_build` tasks in [build.gradle](./backend/build.gradle.kts) in backend
146
146
and copy the frontend build output into `/static` folder in the jar file. More information on [how spring-boot can serve static content](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-developing-web-applications.html#boot-features-spring-mvc-static-content).
0 commit comments