diff --git a/.nvmrc b/.nvmrc index e18a34b9d6..5007551bf8 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -6.11.2 +10.16.0 diff --git a/bin/compile-services b/bin/compile-services new file mode 100755 index 0000000000..471a2b7130 --- /dev/null +++ b/bin/compile-services @@ -0,0 +1,23 @@ +#! env bash + +set -e + +grep 'name:' config/services.js | \ + sed 's/.*name: "\(.*\)",/\1/' | \ + while read service + do + pushd $service + echo "Compiling Service $service" + case $service in + web) + make compile_full + ;; + chat) + echo "$service doesn't require a compilation" + ;; + *) + npm run compile:all + ;; + esac + popd + done diff --git a/bin/install-services b/bin/install-services old mode 100644 new mode 100755 index 3f1e5dd44b..b688a4b4f8 --- a/bin/install-services +++ b/bin/install-services @@ -1,25 +1,14 @@ #! env bash -[ -z "`type -t nvm`" ] && cat <