activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/3] activemq-artemis git commit: Added npm-frontend-plugin to install gitbook and use from maven directly
Date Mon, 28 Sep 2015 20:05:28 GMT
Added npm-frontend-plugin to install gitbook and use from maven directly


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/67e3e207
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/67e3e207
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/67e3e207

Branch: refs/heads/master
Commit: 67e3e207cf2961b4a96e19ecda8fa264eaac3cdf
Parents: da17f03
Author: Paul Gallagher <pgallagh@redhat.com>
Authored: Tue Sep 15 16:47:48 2015 +0100
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Mon Sep 28 15:43:32 2015 -0400

----------------------------------------------------------------------
 artemis-website/.gitignore   |  2 ++
 artemis-website/package.json | 14 ++++++++++++++
 artemis-website/pom.xml      | 31 ++++++++++++++++++++++++++++++-
 pom.xml                      |  5 +++++
 4 files changed, 51 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/67e3e207/artemis-website/.gitignore
----------------------------------------------------------------------
diff --git a/artemis-website/.gitignore b/artemis-website/.gitignore
new file mode 100644
index 0000000..f4af8ab
--- /dev/null
+++ b/artemis-website/.gitignore
@@ -0,0 +1,2 @@
+node_modules/
+node/

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/67e3e207/artemis-website/package.json
----------------------------------------------------------------------
diff --git a/artemis-website/package.json b/artemis-website/package.json
new file mode 100644
index 0000000..16813c5
--- /dev/null
+++ b/artemis-website/package.json
@@ -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"
+  }
+}

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/67e3e207/artemis-website/pom.xml
----------------------------------------------------------------------
diff --git a/artemis-website/pom.xml b/artemis-website/pom.xml
index fdf25d6..fd09c7b 100644
--- a/artemis-website/pom.xml
+++ b/artemis-website/pom.xml
@@ -85,6 +85,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>
             <executions>
@@ -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 -->

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/67e3e207/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index f26dd51..6d8ebbe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>


Mime
View raw message