readme: acknowledgements
This commit is contained in:
parent
20478055b5
commit
85c2659ea3
2 changed files with 28 additions and 13 deletions
12
install.sh
12
install.sh
|
|
@ -1,17 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ "$1" ] || (echo 'Must provide node.js package manager' && exit)
|
||||
|
||||
git clone 'git@github.com:wix/import-cost.git' || (echo 'Failed to clone wix/import-cost' && exit)
|
||||
|
||||
echo 'Install import-cost with which package manager? [npm/yarn]'
|
||||
read -r installer
|
||||
|
||||
if [ "$installer" != 'npm' ] && [ "$installer" != 'yarn' ]; then
|
||||
echo "Please enter either 'npm' or 'yarn'"
|
||||
exit
|
||||
fi
|
||||
|
||||
cd import-cost || exit
|
||||
eval "$installer install"
|
||||
$1 install
|
||||
cd ..
|
||||
|
||||
cp index.js import-cost
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue