Changing npm front end plugin to be used only on the release profile
Also this is filtering node-js installation out of the source installation
This commit is contained in:
parent
67e3e207cf
commit
cfce98cb45
|
@ -45,6 +45,10 @@
|
||||||
<!-- Exclude all docs except user manual -->
|
<!-- Exclude all docs except user manual -->
|
||||||
<exclude>docs/diagrams/</exclude>
|
<exclude>docs/diagrams/</exclude>
|
||||||
|
|
||||||
|
<!-- Exclude stuff generated by the npm build -->
|
||||||
|
<exclude>artemis-website/node/</exclude>
|
||||||
|
<exclude>artemis-website/node_modules/</exclude>
|
||||||
|
|
||||||
<!-- Exclude Release and Dev files -->
|
<!-- Exclude Release and Dev files -->
|
||||||
<exclude>RELEASING.md</exclude>
|
<exclude>RELEASING.md</exclude>
|
||||||
<exclude>ratReport.txt</exclude>
|
<exclude>ratReport.txt</exclude>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
"url": "https://github.com/apache/activemq-artemis"
|
"url": "https://github.com/apache/activemq-artemis"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gitbook": "~1.5.0",
|
|
||||||
"gitbook-cli": "~0.3.6"
|
"gitbook-cli": "~0.3.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,38 +80,15 @@
|
||||||
<webapp-dir>${project.artifactId}-${project.version}</webapp-dir>
|
<webapp-dir>${project.artifactId}-${project.version}</webapp-dir>
|
||||||
<webapp-outdir-user-manual>${basedir}/target/classes/user-manual</webapp-outdir-user-manual>
|
<webapp-outdir-user-manual>${basedir}/target/classes/user-manual</webapp-outdir-user-manual>
|
||||||
<webapp-outdir-hacking-guide>${basedir}/target/classes/hacking-guide</webapp-outdir-hacking-guide>
|
<webapp-outdir-hacking-guide>${basedir}/target/classes/hacking-guide</webapp-outdir-hacking-guide>
|
||||||
|
|
||||||
|
<frontend-maven-plugin-version>0.0.24</frontend-maven-plugin-version>
|
||||||
|
<nodeVersion>v0.10.32</nodeVersion>
|
||||||
|
<npmVersion>1.4.12</npmVersion>
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
|
||||||
<groupId>com.github.eirslett</groupId>
|
|
||||||
<artifactId>frontend-maven-plugin</artifactId>
|
|
||||||
<version>${frontend-maven-plugin-version}</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>install node and npm</id>
|
|
||||||
<goals>
|
|
||||||
<goal>install-node-and-npm</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>generate-sources</phase>
|
|
||||||
<configuration>
|
|
||||||
<nodeVersion>v0.11.16</nodeVersion>
|
|
||||||
<npmVersion>1.4.12</npmVersion>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>npm install</id>
|
|
||||||
<goals>
|
|
||||||
<goal>npm</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>generate-sources</phase>
|
|
||||||
<configuration>
|
|
||||||
<arguments>install</arguments>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
@ -155,6 +132,34 @@
|
||||||
<id>release</id>
|
<id>release</id>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.github.eirslett</groupId>
|
||||||
|
<artifactId>frontend-maven-plugin</artifactId>
|
||||||
|
<version>${frontend-maven-plugin-version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>install node and npm</id>
|
||||||
|
<goals>
|
||||||
|
<goal>install-node-and-npm</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>generate-sources</phase>
|
||||||
|
<configuration>
|
||||||
|
<nodeVersion>${nodeVersion}</nodeVersion>
|
||||||
|
<npmVersion>${npmVersion}</npmVersion>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>npm install</id>
|
||||||
|
<goals>
|
||||||
|
<goal>npm</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>generate-sources</phase>
|
||||||
|
<configuration>
|
||||||
|
<arguments>install</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
<version>1.6</version>
|
<version>1.6</version>
|
||||||
|
@ -167,14 +172,14 @@
|
||||||
<os family="windows" />
|
<os family="windows" />
|
||||||
</condition>
|
</condition>
|
||||||
<!-- lets generate the gitbook -->
|
<!-- lets generate the gitbook -->
|
||||||
<mkdir dir="${webapp-outdir-user-manual}/gitbook" />
|
<mkdir dir="${webapp-outdir-user-manual}" />
|
||||||
<echo>executing ${gitbook.cmd}</echo>
|
<echo>executing ${gitbook.cmd}</echo>
|
||||||
<exec executable="${gitbook.cmd}">
|
<exec executable="${gitbook.cmd}">
|
||||||
<arg value="build" />
|
<arg value="build" />
|
||||||
<arg value="${basedir}/../docs/user-manual/en" />
|
<arg value="${basedir}/../docs/user-manual/en" />
|
||||||
<arg value="${webapp-outdir-user-manual}" />
|
<arg value="${webapp-outdir-user-manual}" />
|
||||||
</exec>
|
</exec>
|
||||||
<mkdir dir="${webapp-outdir-hacking-guide}/gitbook" />
|
<mkdir dir="${webapp-outdir-hacking-guide}" />
|
||||||
<echo>executing ${gitbook.cmd}</echo>
|
<echo>executing ${gitbook.cmd}</echo>
|
||||||
<exec executable="${gitbook.cmd}">
|
<exec executable="${gitbook.cmd}">
|
||||||
<arg value="build" />
|
<arg value="build" />
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -97,8 +97,6 @@
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
|
|
||||||
<frontend-maven-plugin-version>0.0.24</frontend-maven-plugin-version>
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
note for idea users:
|
note for idea users:
|
||||||
|
|
Loading…
Reference in New Issue