Prepend node path on npm calls
parent
3e6c32b0d5
commit
0c9a80d636
|
|
@ -20,14 +20,14 @@ fi
|
||||||
echo "Node Version"
|
echo "Node Version"
|
||||||
bin/node --version
|
bin/node --version
|
||||||
echo "NPM Version"
|
echo "NPM Version"
|
||||||
bin/node bin/npm --version
|
bin/node bin/npm --version --scripts-prepend-node-path
|
||||||
|
|
||||||
if [ "$BUILD_ANGULAR" = true ]; then
|
if [ "$BUILD_ANGULAR" = true ]; then
|
||||||
cd tempcheckout/Client
|
cd tempcheckout/Client
|
||||||
echo "Pruning Client Node Modules"
|
echo "Pruning Client Node Modules"
|
||||||
../../bin/node ../../bin/npm prune --silent
|
../../bin/node ../../bin/npm prune --silent --scripts-prepend-node-path
|
||||||
echo "Installing Client Node Modules"
|
echo "Installing Client Node Modules"
|
||||||
../../bin/node ../../bin/npm install --silent
|
../../bin/node ../../bin/npm install --silent --scripts-prepend-node-path
|
||||||
echo "Building Angular Application"
|
echo "Building Angular Application"
|
||||||
../../bin/node node_modules/@angular/cli/bin/ng build --prod
|
../../bin/node node_modules/@angular/cli/bin/ng build --prod
|
||||||
cd ../../
|
cd ../../
|
||||||
|
|
@ -43,9 +43,9 @@ bin/node tempcheckout/Client/node_modules/@angular/cli/bin/ng --version
|
||||||
|
|
||||||
cd tempcheckout/Server/src
|
cd tempcheckout/Server/src
|
||||||
echo "Pruning Server Node Modules"
|
echo "Pruning Server Node Modules"
|
||||||
../../../bin/node ../../../bin/npm prune --silent
|
../../../bin/node ../../../bin/npm prune --silent --scripts-prepend-node-path
|
||||||
echo "Installing Server Node Modules"
|
echo "Installing Server Node Modules"
|
||||||
../../../bin/node ../../../bin/npm install --silent
|
../../../bin/node ../../../bin/npm install --silent --scripts-prepend-node-path
|
||||||
cd ../../../
|
cd ../../../
|
||||||
rm -r -f src/
|
rm -r -f src/
|
||||||
mv tempcheckout/Server/src/ src/
|
mv tempcheckout/Server/src/ src/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue