initial commit
This commit is contained in:
commit
4037e24558
11 changed files with 420 additions and 0 deletions
17
install.sh
Normal file
17
install.sh
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
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"
|
||||
cd ..
|
||||
|
||||
cp src/index.js import-cost
|
||||
Loading…
Add table
Add a link
Reference in a new issue