Skip to content

Commit

Permalink
Merge pull request #238 from jenkinsci/frontend-maven-plugin
Browse files Browse the repository at this point in the history
Use frontend-maven-plugin configuration of parent POM
  • Loading branch information
uhafner authored Sep 15, 2023
2 parents 8d42bfb + c0921ae commit 52a4c21
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 40 deletions.
Empty file added .mvn_exec_node
Empty file.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
"remark-preset-lint-recommended": "6.1.3"
},
"scripts": {
"full-build": "npm-run-all node-sass-build build css-rtl css-prefix",
"mvnbuild": "npm-run-all node-sass-build build css-rtl css-prefix",
"node-sass-build": "npm rebuild node-sass",
"build": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 etc -o target/bootstrap5-api/css",
"css-rtl": "cross-env NODE_ENV=RTL postcss --config etc/postcss.config.js --dir \"target/bootstrap5-api/css\" --ext \".rtl.css\" \"target/bootstrap5-api/css/*.css\" \"!target/bootstrap5-api/css/*.min.css\" \"!target/bootstrap5-api/css/*.rtl.css\"",
"css-prefix": "postcss --config etc/postcss.config.js --replace \"target/bootstrap5-api/css/*.css\" \"!target/bootstrap5-api/css/*.rtl*.css\" \"!target/bootstrap5-api/css/*.min.css\"",
"lint-md": "remark ."
"lint-md": "remark .",
"mvntest": ""
},
"remarkConfig": {
"plugins": [
Expand Down
39 changes: 1 addition & 38 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-pom</artifactId>
<version>6.10.0</version>
<version>6.12.0</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -75,43 +75,6 @@
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.13.4</version>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<nodeVersion>v18.12.0</nodeVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>npm build</id>
<goals>
<goal>npm</goal>
</goals>
<phase>compile</phase>
<configuration>
<arguments>run full-build</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

git pull
git push
mvn -B clean release:prepare release:perform

0 comments on commit 52a4c21

Please sign in to comment.