Added npm-frontend-plugin to install gitbook and use from maven directly

This commit is contained in:
Paul Gallagher 2015-09-15 16:47:48 +01:00 committed by Clebert Suconic
parent da17f039a5
commit 67e3e207cf
4 changed files with 51 additions and 1 deletions

2
artemis-website/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules/
node/

View File

@ -0,0 +1,14 @@
{
"name": "artemis-websiteb",
"version": "1.5.0",
"description": "ActiveMQ Artemis Web",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/apache/activemq-artemis"
},
"devDependencies": {
"gitbook": "~1.5.0",
"gitbook-cli": "~0.3.6"
}
}

View File

@ -84,6 +84,35 @@
<build>
<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>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.1</version>
@ -134,7 +163,7 @@
<phase>generate-sources</phase>
<configuration>
<target>
<condition property="gitbook.cmd" value="gitbook.cmd" else="gitbook">
<condition property="gitbook.cmd" value="${basedir}/node_modules/.bin/gitbook.cmd" else="${basedir}/node_modules/.bin/gitbook">
<os family="windows" />
</condition>
<!-- lets generate the gitbook -->

View File

@ -97,6 +97,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<frontend-maven-plugin-version>0.0.24</frontend-maven-plugin-version>
<!--
note for idea users:
@ -1023,6 +1025,9 @@
<exclude>**/src/test/resources/keystore</exclude>
<exclude>**/*.log</exclude>
<exclude>**/*.redo</exclude>
<exclude>**/node/**</exclude>
<exclude>**/node_modules/**</exclude>
<exclude>**/package.json</exclude>
</excludes>
</configuration>
<executions>