Skip to content

Commit a948c23

Browse files
committed
Init
1 parent daf52d8 commit a948c23

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"build": "sass src/main/resources/scss/styles.scss src/main/resources/io/jenkins/plugins/designlibrary/styles.css && postcss src/main/resources/io/jenkins/plugins/designlibrary/styles.css --replace --use autoprefixer",
77
"dev": "sass --watch src/main/resources/scss/styles.scss src/main/resources/io/jenkins/plugins/designlibrary/styles.css && postcss src/main/resources/io/jenkins/plugins/designlibrary/styles.css --replace --use autoprefixer",
88
"mvntest": "npm run test",
9-
"test": "exit 0"
9+
"test": "exit 0",
10+
"lint": "prettier --check .",
11+
"lint:fix": "prettier --write ."
1012
},
1113
"repository": {
1214
"type": "git",
@@ -21,6 +23,7 @@
2123
"devDependencies": {
2224
"autoprefixer": "10.4.21",
2325
"postcss-cli": "11.0.1",
24-
"sass": "1.85.1"
26+
"sass": "1.85.1",
27+
"prettier": "3.0.3"
2528
}
2629
}

pom.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,24 @@ THE SOFTWARE.
126126
<directory>src/main/java</directory>
127127
</resource>
128128
</resources>
129-
</build>
130129

130+
<plugins>
131+
<plugin>
132+
<groupId>com.github.eirslett</groupId>
133+
<artifactId>frontend-maven-plugin</artifactId>
134+
<executions>
135+
<execution>
136+
<id>npm lint</id>
137+
<goals>
138+
<goal>npm</goal>
139+
</goals>
140+
<phase>install</phase>
141+
<configuration>
142+
<arguments>run lint</arguments>
143+
</configuration>
144+
</execution>
145+
</executions>
146+
</plugin>
147+
</plugins>
148+
</build>
131149
</project>

0 commit comments

Comments
 (0)