This closes #179
This commit is contained in:
commit
eae2a2ea40
|
@ -45,6 +45,10 @@
|
|||
<!-- Exclude all docs except user manual -->
|
||||
<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>RELEASING.md</exclude>
|
||||
<exclude>ratReport.txt</exclude>
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
node_modules/
|
||||
node/
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"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-cli": "~0.3.6"
|
||||
}
|
||||
}
|
|
@ -80,10 +80,16 @@
|
|||
<webapp-dir>${project.artifactId}-${project.version}</webapp-dir>
|
||||
<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>
|
||||
|
||||
<frontend-maven-plugin-version>0.0.24</frontend-maven-plugin-version>
|
||||
<nodeVersion>v0.10.32</nodeVersion>
|
||||
<npmVersion>1.4.12</npmVersion>
|
||||
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.10.1</version>
|
||||
|
@ -126,6 +132,34 @@
|
|||
<id>release</id>
|
||||
<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>${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>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.6</version>
|
||||
|
@ -134,18 +168,18 @@
|
|||
<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 -->
|
||||
<mkdir dir="${webapp-outdir-user-manual}/gitbook" />
|
||||
<mkdir dir="${webapp-outdir-user-manual}" />
|
||||
<echo>executing ${gitbook.cmd}</echo>
|
||||
<exec executable="${gitbook.cmd}">
|
||||
<arg value="build" />
|
||||
<arg value="${basedir}/../docs/user-manual/en" />
|
||||
<arg value="${webapp-outdir-user-manual}" />
|
||||
</exec>
|
||||
<mkdir dir="${webapp-outdir-hacking-guide}/gitbook" />
|
||||
<mkdir dir="${webapp-outdir-hacking-guide}" />
|
||||
<echo>executing ${gitbook.cmd}</echo>
|
||||
<exec executable="${gitbook.cmd}">
|
||||
<arg value="build" />
|
||||
|
|
Loading…
Reference in New Issue