ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject ambari git commit: AMBARI-20813. Convert ambari-web build process to use yarn package manager to fix dependencies and to make the process faster. (yusaku)
Date Fri, 21 Apr 2017 01:00:36 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 c30cee08e -> 926ec479b


AMBARI-20813. Convert ambari-web build process to use yarn package manager to fix dependencies
and to make the process faster. (yusaku)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/926ec479
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/926ec479
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/926ec479

Branch: refs/heads/branch-2.5
Commit: 926ec479b2b6c0029715e846a1df859bee8a2c59
Parents: c30cee0
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Thu Apr 20 18:00:26 2017 -0700
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Thu Apr 20 18:00:26 2017 -0700

----------------------------------------------------------------------
 ambari-web/pom.xml | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/926ec479/ambari-web/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-web/pom.xml b/ambari-web/pom.xml
index 6182a60..ef51a7f 100644
--- a/ambari-web/pom.xml
+++ b/ambari-web/pom.xml
@@ -126,29 +126,35 @@
       <plugin>
         <groupId>com.github.eirslett</groupId>
         <artifactId>frontend-maven-plugin</artifactId>
-        <version>1.3</version>
+        <version>1.4</version>
         <configuration>
           <nodeVersion>v4.5.0</nodeVersion>
-          <npmVersion>2.15.0</npmVersion>
+          <yarnVersion>v0.23.2</yarnVersion>
           <workingDirectory>${basedir}</workingDirectory>
           <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
+          <!-- setting npm_config_tmp environment variable is a workaround for 
+               https://github.com/Medium/phantomjs/issues/673 -->
+          <environmentVariables>
+            <npm_config_tmp>/tmp/npm_config_tmp</npm_config_tmp>
+          </environmentVariables>
         </configuration>
         <executions>
           <execution>
-            <id>install node and npm</id>
+            <id>install node and yarn</id>
             <phase>generate-sources</phase>
             <goals>
-              <goal>install-node-and-npm</goal>
+              <goal>install-node-and-yarn</goal>
             </goals>
           </execution>
           <execution>
-            <id>npm install</id>
+            <id>yarn install</id>
             <phase>generate-sources</phase>
             <goals>
-              <goal>npm</goal>
+              <goal>yarn</goal>
             </goals>
             <configuration>
               <arguments>install</arguments>
+              <arguments>--ignore-engines</arguments>
             </configuration>
           </execution>
         </executions>
@@ -267,6 +273,7 @@
             <exclude>node_modules/**</exclude>
             <exclude>node/**</exclude>
             <exclude>npm-debug.log</exclude>
+            <exclude>yarn.lock</exclude>
           </excludes>
         </configuration>
         <executions>


Mime
View raw message