whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: switch to n and lts version of node
Date Sat, 07 Dec 2019 15:41:51 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 0ab43df  switch to n and lts version of node
0ab43df is described below

commit 0ab43df1a28b2624b6939c715ad918a4ac8b9fd6
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sat Dec 7 10:41:31 2019 -0500

    switch to n and lts version of node
---
 config/setupmymac | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/config/setupmymac b/config/setupmymac
index 4019078..7e59c8a 100755
--- a/config/setupmymac
+++ b/config/setupmymac
@@ -184,16 +184,14 @@ end
 ## Install Node.js
 
 if not $root and option != :docker
-  if `which node`.empty?
-    brew 'install', 'node' 
+  if `which n`.empty?
+    brew 'install', 'n' 
   elsif force[:node]
-    brew 'upgrade', 'node' 
+    brew 'upgrade', 'n' 
   end
 
-  if `which npm`.empty?
-    run 'npm install -g npm'
-  elsif force[:node]
-    run 'npm upgrade -g npm'
+  if `which node`.empty? or force[:node]
+    run 'n lts'
   end
 
   # Prompt for xcode installation


Mime
View raw message