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 +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,8 @@ The application renders content based on mock data in `src/app/shared/mock`.
26
26
It contains multiple mocks - including the ones from the springwolf-core examples projects.
27
27
28
28
To update the mock data, run ` npm run update-mocks ` .
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.
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 " 5.0.0"
6
7
}
7
8
8
9
group = ' io.github.springwolf'
16
17
}
17
18
18
19
npm_run_build {
20
+ dependsOn spotlessCheck
21
+
19
22
inputs. files fileTree(" src" )
20
23
inputs. file ' angular.json'
21
24
inputs. file ' package.json'
@@ -124,3 +127,15 @@ publishing {
124
127
}
125
128
}
126
129
}
130
+
131
+ spotless {
132
+ encoding ' UTF-8'
133
+
134
+ format ' Angular' , {
135
+ target ' src/**/*.ts' , ' src/**/*.css' , ' src/**/*.html'
136
+
137
+ trimTrailingWhitespace()
138
+ endWithNewline()
139
+ prettier(). config([" singleQuote" : true ])
140
+ }
141
+ }
You can’t perform that action at this time.
0 commit comments