This repository was archived by the owner on Jun 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ It contains multiple mocks - including the ones from the springwolf-core example
27
27
28
28
To update the mock data, run ` npm run update-mocks ` .
29
29
30
+ ### Code Formatting
31
+
32
+ The project uses spotless together with prettier for code formatting.
33
+ Using the gradle task ` spotlessApply ` , the code is reformatted to match the style.
34
+
30
35
## Release
31
36
32
37
Releasing is done by running the gradle task ` publish ` . For local development, use ` publishToMavenLocal ` .
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ plugins {
3
3
id ' com.github.node-gradle.node' version ' 2.2.4'
4
4
id ' signing'
5
5
id ' maven-publish'
6
+ id " com.diffplug.spotless" version " 6.11.0"
6
7
}
7
8
8
9
def isSnapshot = Boolean . valueOf(project. findProperty(' SNAPSHOT' ))
18
19
}
19
20
20
21
npm_run_build {
22
+ dependsOn spotlessCheck
23
+
21
24
inputs. files fileTree(" src" )
22
25
inputs. file ' angular.json'
23
26
inputs. file ' package.json'
@@ -97,3 +100,14 @@ signing {
97
100
sign publishing. publications. mavenJava
98
101
}
99
102
103
+ spotless {
104
+ encoding ' UTF-8'
105
+
106
+ format ' Angular' , {
107
+ target ' src/**/*.ts' , ' src/**/*.css' , ' src/**/*.html'
108
+
109
+ trimTrailingWhitespace()
110
+ endWithNewline()
111
+ prettier(). config([" singleQuote" : true ])
112
+ }
113
+ }
You can’t perform that action at this time.
0 commit comments