mirror of
https://github.com/Febbweiss/springboot-react-webpack.git
synced 2026-03-04 22:25:34 +00:00
Feature: using webpack instead of wro
This commit is contained in:
206
pom.xml
206
pom.xml
@@ -24,15 +24,6 @@
|
||||
<maven.deploy.skip>true</maven.deploy.skip>
|
||||
<project.scm.id>jazzhub</project.scm.id>
|
||||
<docker.image.prefix>opensaas</docker.image.prefix>
|
||||
|
||||
<jasmine.version>2.4.1</jasmine.version>
|
||||
<jasmine-ajax.version>3.2.0</jasmine-ajax.version>
|
||||
|
||||
<bootstrap.version>3.3.6</bootstrap.version>
|
||||
<jquery.version>2.2.1</jquery.version>
|
||||
<react.version>0.14.7</react.version>
|
||||
<marked.version>0.3.2-1</marked.version>
|
||||
<marked-lib.version>0.3.2</marked-lib.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -57,27 +48,6 @@
|
||||
<artifactId>spring-boot-devtools</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<!-- Webjars -->
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>bootstrap</artifactId>
|
||||
<version>${bootstrap.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>jquery</artifactId>
|
||||
<version>${jquery.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>react</artifactId>
|
||||
<version>${react.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>marked</artifactId>
|
||||
<version>${marked.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
@@ -88,105 +58,48 @@
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.github.eirslett</groupId>
|
||||
<artifactId>frontend-maven-plugin</artifactId>
|
||||
<version>0.0.29</version>
|
||||
<configuration>
|
||||
<workingDirectory>${project.build.directory}</workingDirectory>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>install node and npm</id>
|
||||
<goals>
|
||||
<goal>install-node-and-npm</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<nodeVersion>v5.6.0</nodeVersion>
|
||||
<npmVersion>3.7.1</npmVersion>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>npm install</id>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<arguments>install</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
</goals>
|
||||
<phase>generate-resources</phase>
|
||||
<configuration>
|
||||
<arguments>run-script dev-build</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.fizzed</groupId>
|
||||
<artifactId>fizzed-watcher-maven-plugin</artifactId>
|
||||
<version>1.0.6</version>
|
||||
<configuration>
|
||||
<watches>
|
||||
<watch>
|
||||
<excludes>
|
||||
<exclude>src/main/resources/static/js/bundle</exclude>
|
||||
<exclude>src/main/resources/static/js/jsx</exclude>
|
||||
</excludes>
|
||||
<recursive>false</recursive>
|
||||
<directory>src/main/resources/static/js</directory>
|
||||
</watch>
|
||||
<watch>
|
||||
<exclude>src/main/resources/static/css/bundle</exclude>
|
||||
<recursive>false</recursive>
|
||||
<directory>src/main/resources/static/css</directory>
|
||||
</watch>
|
||||
<watch>
|
||||
<directory>src/main/wro</directory>
|
||||
</watch>
|
||||
</watches>
|
||||
<goals>
|
||||
<goal>process-resources</goal>
|
||||
</goals>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Resource optimization -->
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<!-- Serves *only* to filter the wro.xml so it can get an absolute
|
||||
path for the project -->
|
||||
<id>copy-resources</id>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${basedir}/target/wro</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/wro</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>uk.co.codezen</groupId>
|
||||
<artifactId>react-jsxtransformer-maven-plugin</artifactId>
|
||||
<version>1.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>Compile resources</id>
|
||||
<phase>process-resources</phase>
|
||||
<goals>
|
||||
<goal>compile</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<extension>jsx</extension>
|
||||
<sourcePath>
|
||||
${project.basedir}/src/main/resources/static/js
|
||||
</sourcePath>
|
||||
<targetPath>
|
||||
${project.build.directory}/classes/static/js
|
||||
</targetPath>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>ro.isdc.wro4j</groupId>
|
||||
<artifactId>wro4j-maven-plugin</artifactId>
|
||||
<version>1.7.9</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>process-resources</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
|
||||
<cssDestinationFolder>${project.build.directory}/classes/static/css</cssDestinationFolder>
|
||||
<jsDestinationFolder>${project.build.directory}/classes/static/js</jsDestinationFolder>
|
||||
<wroFile>${project.build.directory}/wro/wro.xml</wroFile>
|
||||
<extraConfigFile>${project.basedir}/src/main/wro/wro.properties</extraConfigFile>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Release -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
@@ -212,49 +125,6 @@
|
||||
</configuration> -->
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.eclipse.m2e</groupId>
|
||||
<artifactId>lifecycle-mapping</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<configuration>
|
||||
<lifecycleMappingMetadata>
|
||||
<pluginExecutions>
|
||||
<pluginExecution>
|
||||
<pluginExecutionFilter>
|
||||
<groupId>ro.isdc.wro4j</groupId>
|
||||
<artifactId>wro4j-maven-plugin</artifactId>
|
||||
<versionRange>[1.7.9,)</versionRange>
|
||||
<goals>
|
||||
<goal>jshint</goal>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<ignore></ignore>
|
||||
</action>
|
||||
</pluginExecution>
|
||||
<pluginExecution>
|
||||
<pluginExecutionFilter>
|
||||
<groupId>uk.co.codezen</groupId>
|
||||
<artifactId>react-jsxtransformer-maven-plugin</artifactId>
|
||||
<versionRange>[1.0,)</versionRange>
|
||||
<goals>
|
||||
<goal>compile</goal>
|
||||
</goals>
|
||||
</pluginExecutionFilter>
|
||||
<action>
|
||||
<ignore></ignore>
|
||||
</action>
|
||||
</pluginExecution>
|
||||
</pluginExecutions>
|
||||
</lifecycleMappingMetadata>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
|
||||
Reference in New Issue
Block a user