From 13e31a563768f8e2b58e488a530335c3cbc40d2a Mon Sep 17 00:00:00 2001 From: Ilia Kasianenko Date: Sat, 11 Mar 2017 11:30:34 +0200 Subject: [PATCH] fix shared path issue --- lib/mina/npm/tasks.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mina/npm/tasks.rb b/lib/mina/npm/tasks.rb index 7f36e0d..1eb5697 100644 --- a/lib/mina/npm/tasks.rb +++ b/lib/mina/npm/tasks.rb @@ -13,8 +13,8 @@ command %{ echo "-----> Installing node modules using Npm" sub_directory=$(pwd | sed -r "s/.*?$(basename $build_path)//g") - #{echo_cmd %[mkdir -p "#{fetch(:deploy_to)}/#{fetch(:shared_path)}/$sub_directory/node_modules"]} - #{echo_cmd %[ln -s "#{fetch(:deploy_to)}/#{fetch(:shared_path)}/$sub_directory/node_modules" "node_modules"]} + #{echo_cmd %[mkdir -p "#{fetch(:shared_path)}/$sub_directory/node_modules"]} + #{echo_cmd %[ln -s "#{fetch(:shared_path)}/$sub_directory/node_modules" "node_modules"]} #{echo_cmd %[#{fetch(:npm_bin)} install #{fetch(:npm_options)}]} } end @@ -26,8 +26,8 @@ command %{ echo "-----> Installing bower modules" sub_directory=$(pwd | sed -r "s/.*?$(basename $build_path)//g") - #{echo_cmd %[mkdir -p "#{fetch(:deploy_to)}/#{fetch(:shared_path)}/$sub_directory/bower_components"]} - #{echo_cmd %[ln -s "#{fetch(:deploy_to)}/#{fetch(:shared_path)}/$sub_directory/bower_components" "bower_components"]} + #{echo_cmd %[mkdir -p "#{fetch(:shared_path)}/$sub_directory/bower_components"]} + #{echo_cmd %[ln -s "#{fetch(:shared_path)}/$sub_directory/bower_components" "bower_components"]} #{echo_cmd %[[ -f bower.json ] && (#{fetch(:bower_bin)} install #{fetch(:bower_options)}) || ! [ -f bower.json ]]} } end