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