You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2017/04/24 12:01:36 UTC

[21/50] [abbrv] 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)

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/78048fcf
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/78048fcf
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/78048fcf

Branch: refs/heads/branch-3.0-perf
Commit: 78048fcfa9a1dd1cf5a98cf773d51ef69eff6db0
Parents: dfb3449
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Thu Apr 20 17:56:09 2017 -0700
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Mon Apr 24 14:59:56 2017 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/78048fcf/ambari-web/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-web/pom.xml b/ambari-web/pom.xml
index 895d2f7..2f6d571 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>