The Unified and Autonomous Development Platform
Add maven plugin to compile scss file to css on the fly
Robin Shen5f10a8ca9ca7
diff --git a/pom.xml b/pom.xmlindex fd23c4084f..3bba522347 100644--- a/pom.xml+++ b/pom.xml@@ -55,6 +55,22 @@</execute></action></pluginExecution>+ <pluginExecution>+ <pluginExecutionFilter>+ <groupId>com.gitlab.haynes</groupId>+ <artifactId>libsass-maven-plugin</artifactId>+ <versionRange>[0.2.24,]</versionRange>+ <goals>+ <goal>compile</goal>+ </goals>+ </pluginExecutionFilter>+ <action>+ <execute>+ <runOnIncremental>true</runOnIncremental>+ <runOnConfiguration>true</runOnConfiguration>+ </execute>+ </action>+ </pluginExecution><pluginExecution><pluginExecutionFilter><groupId>org.codehaus.gmaven</groupId>@@ -105,6 +121,24 @@</plugins></pluginManagement><plugins>+ <plugin>+ <groupId>com.gitlab.haynes</groupId>+ <artifactId>libsass-maven-plugin</artifactId>+ <version>0.2.24</version>+ <executions>+ <execution>+ <phase>generate-resources</phase>+ <goals>+ <goal>compile</goal>+ </goals>+ </execution>+ </executions>+ <configuration>+ <inputPath>${basedir}/src/main/java</inputPath>+ <outputPath>${project.build.outputDirectory}</outputPath>+ <sourceMapOutputPath>${project.build.outputDirectory}</sourceMapOutputPath>+ </configuration>+ </plugin><plugin><groupId>io.onedev</groupId><artifactId>plugin-maven</artifactId>@@ -132,6 +166,7 @@<directory>src/main/java</directory><excludes><exclude>**/*.java</exclude>+ <exclude>**/*.scss</exclude></excludes></resource><resource>diff --git a/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.html b/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.htmlindex 795b443f3a..d859611705 100644--- a/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.html+++ b/server-core/src/main/java/io/onedev/server/web/page/test/TestPage.html@@ -1,3 +1,3 @@<wicket:extend>- <a wicket:id="test">test</a>+ <a wicket:id="test" class="test">test</a></wicket:extend>\ No newline at end of filediff --git a/server-core/src/main/java/io/onedev/server/web/page/test/test.css b/server-core/src/main/java/io/onedev/server/web/page/test/test.cssdeleted file mode 100644index e69de29bb2..0000000000diff --git a/server-core/src/main/java/io/onedev/server/web/page/test/test.scss b/server-core/src/main/java/io/onedev/server/web/page/test/test.scssnew file mode 100644index 0000000000..88bb3d24a4--- /dev/null+++ b/server-core/src/main/java/io/onedev/server/web/page/test/test.scss@@ -0,0 +1,4 @@+.test {+ color: red;+}+