You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by zh...@apache.org on 2016/10/07 20:21:05 UTC
ambari git commit: AMBARI-18245 Upgrade node to version 4.x (zhewang)
Repository: ambari
Updated Branches:
refs/heads/branch-feature-AMBARI-18245 8813b1f92 -> e84bc78e6
AMBARI-18245 Upgrade node to version 4.x (zhewang)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e84bc78e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e84bc78e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e84bc78e
Branch: refs/heads/branch-feature-AMBARI-18245
Commit: e84bc78e6d6416a5c7ecb14772a686a5af0e9f72
Parents: 8813b1f
Author: Zhe (Joe) Wang <zh...@apache.org>
Authored: Fri Oct 7 13:20:39 2016 -0700
Committer: Zhe (Joe) Wang <zh...@apache.org>
Committed: Fri Oct 7 13:20:39 2016 -0700
----------------------------------------------------------------------
.gitignore | 1 +
ambari-admin/pom.xml | 2 +-
ambari-web/app/styles/common.less | 10 +++---
ambari-web/package.json | 6 ++--
ambari-web/pom.xml | 36 ++++++++++++++++----
contrib/views/capacity-scheduler/pom.xml | 4 +--
.../src/main/resources/ui/package.json | 2 +-
contrib/views/files/pom.xml | 4 +--
contrib/views/hawq/pom.xml | 2 +-
contrib/views/hive-next/pom.xml | 4 +--
.../src/main/resources/ui/hive-web/package.json | 2 +-
contrib/views/hive/pom.xml | 4 +--
.../src/main/resources/ui/hive-web/package.json | 2 +-
contrib/views/hueambarimigration/pom.xml | 4 +--
contrib/views/jobs/pom.xml | 4 +--
contrib/views/pig/pom.xml | 4 +--
.../src/main/resources/ui/pig-web/package.json | 2 +-
contrib/views/wfmanager/pom.xml | 4 +--
18 files changed, 61 insertions(+), 36 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index d9f23de..43edfd9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@ target
/ambari-web/npm-debug.log
/ambari-web/public/
/ambari-web/node_modules/
+/ambari-web/node/
*.pyc
*.py~
*.iml
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/ambari-admin/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-admin/pom.xml b/ambari-admin/pom.xml
index e057178..4a8bba3 100644
--- a/ambari-admin/pom.xml
+++ b/ambari-admin/pom.xml
@@ -63,7 +63,7 @@
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.16</version>
<configuration>
- <nodeVersion>v0.10.44</nodeVersion>
+ <nodeVersion>v4.5.0</nodeVersion>
<npmVersion>2.15.0</npmVersion>
<workingDirectory>src/main/resources/ui/admin-web/</workingDirectory>
</configuration>
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/ambari-web/app/styles/common.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/common.less b/ambari-web/app/styles/common.less
index bc11d4d..7941fc7 100644
--- a/ambari-web/app/styles/common.less
+++ b/ambari-web/app/styles/common.less
@@ -47,19 +47,19 @@
@spinner-small-width: 30px;
@spinner-small-height: 30px;
-(~".@{health-status-red-icon}") {
+.@{health-status-red-icon} {
color: @health-status-red;
}
-(~".@{health-status-green-icon}") {
+.@{health-status-green-icon} {
color: @health-status-green;
}
-(~".@{health-status-yellow-icon}") {
+.@{health-status-yellow-icon} {
color: @health-status-yellow;
}
-(~".@{health-status-orange-icon}") {
+.@{health-status-orange-icon} {
color: @health-status-orange;
}
-(~".@{maintenance-icon}") {
+.@{maintenance-icon} {
color: @maintenance-black;
}
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/ambari-web/package.json
----------------------------------------------------------------------
diff --git a/ambari-web/package.json b/ambari-web/package.json
index 6702471..68798fb 100644
--- a/ambari-web/package.json
+++ b/ambari-web/package.json
@@ -13,7 +13,7 @@
"css-brunch": ">= 1.0 < 1.5",
"uglify-js-brunch": ">= 1.0 < 1.5",
"clean-css-brunch": ">= 1.0 < 1.5",
- "ember-precompiler-brunch": ">= 1.0 < 1.5",
+ "ember-precompile-brunch": "^0.1.0",
"ember-radio-button": "0.1.2",
"less-brunch": ">= 1.0 < 1.5",
"cssstyle": "0.2.3"
@@ -26,7 +26,7 @@
"sinon":"=1.7.3",
"sinon-chai":"~2.5.0",
"express":"2.5.8",
- "karma": "=0.11.14",
+ "karma": ">=0.11.14",
"karma-mocha": "0.1.1",
"karma-chai": "~0.1.0",
"karma-sinon": "~1.0.2",
@@ -40,6 +40,6 @@
"test": "mocha-phantomjs -R min public/test/test.html"
},
"engines": {
- "node": "~0.6.10 || 0.8 || 0.9 || 0.10"
+ "node": "^4.0.0"
}
}
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/ambari-web/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-web/pom.xml b/ambari-web/pom.xml
index 759b63e..65487be 100644
--- a/ambari-web/pom.xml
+++ b/ambari-web/pom.xml
@@ -121,18 +121,42 @@
<commandlineArgs>${args.mkdir} public</commandlineArgs>
</configuration>
</execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.github.eirslett</groupId>
+ <artifactId>frontend-maven-plugin</artifactId>
+ <version>0.0.16</version>
+ <configuration>
+ <nodeVersion>v4.5.0</nodeVersion>
+ <npmVersion>2.15.0</npmVersion>
+ <workingDirectory>${basedir}</workingDirectory>
+ </configuration>
+ <executions>
<execution>
- <id>compile-npm</id>
- <phase>compile</phase>
+ <id>install node and npm</id>
+ <phase>generate-sources</phase>
<goals>
- <goal>exec</goal>
+ <goal>install-node-and-npm</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>npm install</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>npm</goal>
</goals>
<configuration>
- <executable>${executable.npm}</executable>
- <workingDirectory>${basedir}</workingDirectory>
- <commandlineArgs>${args.npm} install</commandlineArgs>
+ <arguments>install</arguments>
</configuration>
</execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
<execution>
<id>compile-brunch</id>
<phase>compile</phase>
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/capacity-scheduler/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/capacity-scheduler/pom.xml b/contrib/views/capacity-scheduler/pom.xml
index cd97dcf..7b7cdc9 100644
--- a/contrib/views/capacity-scheduler/pom.xml
+++ b/contrib/views/capacity-scheduler/pom.xml
@@ -133,8 +133,8 @@
<!-- optional: default phase is "generate-resources" -->
<phase>initialize</phase>
<configuration>
- <nodeVersion>v0.10.26</nodeVersion>
- <npmVersion>1.4.3</npmVersion>
+ <nodeVersion>v4.5.0</nodeVersion>
+ <npmVersion>2.15.0</npmVersion>
</configuration>
</execution>
<execution>
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/capacity-scheduler/src/main/resources/ui/package.json
----------------------------------------------------------------------
diff --git a/contrib/views/capacity-scheduler/src/main/resources/ui/package.json b/contrib/views/capacity-scheduler/src/main/resources/ui/package.json
index 2cdc672..0b00664 100644
--- a/contrib/views/capacity-scheduler/src/main/resources/ui/package.json
+++ b/contrib/views/capacity-scheduler/src/main/resources/ui/package.json
@@ -21,7 +21,7 @@
"bower": "^1.2.8",
"brunch": "^1.7.13",
"scaffolt": "^0.4.3",
- "ember-precompiler-brunch": "^1.5.1",
+ "ember-precompile-brunch": "^0.1.0",
"less-brunch": "^1.7.2"
},
"devDependencies": {},
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/files/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/files/pom.xml b/contrib/views/files/pom.xml
index 383d90d..67beef9 100644
--- a/contrib/views/files/pom.xml
+++ b/contrib/views/files/pom.xml
@@ -155,8 +155,8 @@
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.16</version>
<configuration>
- <nodeVersion>v0.12.2</nodeVersion>
- <npmVersion>1.4.8</npmVersion>
+ <nodeVersion>v4.5.0</nodeVersion>
+ <npmVersion>2.15.0</npmVersion>
<workingDirectory>src/main/resources/ui/</workingDirectory>
</configuration>
<executions>
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/hawq/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/hawq/pom.xml b/contrib/views/hawq/pom.xml
index 9a563f6..e49a23b 100644
--- a/contrib/views/hawq/pom.xml
+++ b/contrib/views/hawq/pom.xml
@@ -85,7 +85,7 @@
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<configuration>
- <nodeVersion>v0.10.44</nodeVersion>
+ <nodeVersion>v4.5.0</nodeVersion>
<npmVersion>2.15.0</npmVersion>
<workingDirectory>${ui.dir}</workingDirectory>
</configuration>
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/hive-next/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/hive-next/pom.xml b/contrib/views/hive-next/pom.xml
index 921990a..46deaf3 100644
--- a/contrib/views/hive-next/pom.xml
+++ b/contrib/views/hive-next/pom.xml
@@ -254,8 +254,8 @@
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.16</version>
<configuration>
- <nodeVersion>v0.12.2</nodeVersion>
- <npmVersion>1.4.8</npmVersion>
+ <nodeVersion>v4.5.0</nodeVersion>
+ <npmVersion>2.15.0</npmVersion>
<workingDirectory>src/main/resources/ui/hive-web/</workingDirectory>
</configuration>
<executions>
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/hive-next/src/main/resources/ui/hive-web/package.json
----------------------------------------------------------------------
diff --git a/contrib/views/hive-next/src/main/resources/ui/hive-web/package.json b/contrib/views/hive-next/src/main/resources/ui/hive-web/package.json
index 595b1f2..6fe68e2 100644
--- a/contrib/views/hive-next/src/main/resources/ui/hive-web/package.json
+++ b/contrib/views/hive-next/src/main/resources/ui/hive-web/package.json
@@ -23,7 +23,7 @@
"body-parser": "^1.2.0",
"bower": ">= 1.3.12",
"broccoli-asset-rev": "^2.0.0",
- "broccoli-sass": "0.6.3",
+ "broccoli-sass": "^0.6.3",
"ember-cli": "0.2.2",
"ember-cli-autoprefixer": "0.4.1",
"ember-cli-blanket": "^0.5.0",
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/hive/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/hive/pom.xml b/contrib/views/hive/pom.xml
index 20b23f6..2814049 100644
--- a/contrib/views/hive/pom.xml
+++ b/contrib/views/hive/pom.xml
@@ -247,8 +247,8 @@
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.16</version>
<configuration>
- <nodeVersion>v0.12.2</nodeVersion>
- <npmVersion>1.4.8</npmVersion>
+ <nodeVersion>v4.5.0</nodeVersion>
+ <npmVersion>2.15.0</npmVersion>
<workingDirectory>src/main/resources/ui/hive-web/</workingDirectory>
</configuration>
<executions>
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/hive/src/main/resources/ui/hive-web/package.json
----------------------------------------------------------------------
diff --git a/contrib/views/hive/src/main/resources/ui/hive-web/package.json b/contrib/views/hive/src/main/resources/ui/hive-web/package.json
index 595b1f2..6fe68e2 100644
--- a/contrib/views/hive/src/main/resources/ui/hive-web/package.json
+++ b/contrib/views/hive/src/main/resources/ui/hive-web/package.json
@@ -23,7 +23,7 @@
"body-parser": "^1.2.0",
"bower": ">= 1.3.12",
"broccoli-asset-rev": "^2.0.0",
- "broccoli-sass": "0.6.3",
+ "broccoli-sass": "^0.6.3",
"ember-cli": "0.2.2",
"ember-cli-autoprefixer": "0.4.1",
"ember-cli-blanket": "^0.5.0",
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/hueambarimigration/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/hueambarimigration/pom.xml b/contrib/views/hueambarimigration/pom.xml
index 3b28276..21837c3 100644
--- a/contrib/views/hueambarimigration/pom.xml
+++ b/contrib/views/hueambarimigration/pom.xml
@@ -170,8 +170,8 @@
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.16</version>
<configuration>
- <nodeVersion>v0.12.2</nodeVersion>
- <npmVersion>1.4.8</npmVersion>
+ <nodeVersion>v4.5.0</nodeVersion>
+ <npmVersion>2.15.0</npmVersion>
<workingDirectory>${project.basedir}/src/main/resources/ui/hueambarimigration-view/</workingDirectory>
</configuration>
<executions>
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/jobs/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/jobs/pom.xml b/contrib/views/jobs/pom.xml
index bd01753..8460c5b 100644
--- a/contrib/views/jobs/pom.xml
+++ b/contrib/views/jobs/pom.xml
@@ -65,8 +65,8 @@
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.16</version>
<configuration>
- <nodeVersion>v0.10.26</nodeVersion>
- <npmVersion>1.4.3</npmVersion>
+ <nodeVersion>v4.5.0</nodeVersion>
+ <npmVersion>2.15.0</npmVersion>
<workingDirectory>src/main/resources/ui</workingDirectory>
</configuration>
<executions>
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/pig/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/pig/pom.xml b/contrib/views/pig/pom.xml
index 595537a..d2aada7 100644
--- a/contrib/views/pig/pom.xml
+++ b/contrib/views/pig/pom.xml
@@ -180,8 +180,8 @@
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.16</version>
<configuration>
- <nodeVersion>v0.10.26</nodeVersion>
- <npmVersion>1.4.3</npmVersion>
+ <nodeVersion>v4.5.0</nodeVersion>
+ <npmVersion>2.15.0</npmVersion>
<workingDirectory>${ui.directory}</workingDirectory>
</configuration>
<executions>
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/pig/src/main/resources/ui/pig-web/package.json
----------------------------------------------------------------------
diff --git a/contrib/views/pig/src/main/resources/ui/pig-web/package.json b/contrib/views/pig/src/main/resources/ui/pig-web/package.json
index 3221483..5468a3f 100644
--- a/contrib/views/pig/src/main/resources/ui/pig-web/package.json
+++ b/contrib/views/pig/src/main/resources/ui/pig-web/package.json
@@ -14,7 +14,7 @@
"css-brunch": ">= 1.0 < 1.8",
"uglify-js-brunch": ">= 1.0 < 1.8",
"bower": ">= 1.2.0",
- "ember-precompiler-brunch": ">= 1.5.0",
+ "ember-precompile-brunch": "^0.1.0",
"less-brunch": "~1.7.1",
"scaffolt": "^0.4.3"
},
http://git-wip-us.apache.org/repos/asf/ambari/blob/e84bc78e/contrib/views/wfmanager/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/pom.xml b/contrib/views/wfmanager/pom.xml
index 389dc6c..e03e656 100644
--- a/contrib/views/wfmanager/pom.xml
+++ b/contrib/views/wfmanager/pom.xml
@@ -159,8 +159,8 @@
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.16</version>
<configuration>
- <nodeVersion>v0.12.2</nodeVersion>
- <npmVersion>1.4.8</npmVersion>
+ <nodeVersion>v4.5.0</nodeVersion>
+ <npmVersion>2.15.0</npmVersion>
<workingDirectory>src/main/resources/ui/</workingDirectory>
</configuration>
<executions>