-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev_install.sh
executable file
·54 lines (42 loc) · 2.03 KB
/
dev_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# get the version number from the VERSION file
version=$(./version.sh -v)
echo "$(tput setaf 2)
888b d888 888 d8b d8888 8888888b. 8888888
8888b d8888 888 Y8P d88888 888 Y88b 888
88888b.d88888 888 d88P888 888 888 888
888Y88888P888 8888b. .d88b. 88888b. .d88b. 888 888 8888b. d88P 888 888 d88P 888
888 Y888P 888 \"88b d88P\"88b 888 \"88b d88\"\"88b 888 888 \"88b d88P 888 8888888P\" 888
888 Y8P 888 .d888888 888 888 888 888 888 888 888 888 .d888888 d88P 888 888 888
888 \" 888 888 888 Y88b 888 888 888 Y88..88P 888 888 888 888 d8888888888 888 888
888 888 \"Y888888 \"Y88888 888 888 \"Y88P\" 888 888 \"Y888888 d88P 888 888 8888888
888 $(tput setaf 4)Version $version$(tput setaf 2)
Y8b d88P
\"Y88P\"
$(tput sgr0)"
echo "$(tput setaf 2)Dev Install Script$(tput sgr0)"
#echo "First Step:\n Use this documentation to create a github token and login to npm: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry"
#echo "This is a required first step."
#echo "First step - use npm login or npm adduser to login to npm."
#echo "with your github username and the token you created."
# while true; do
# read -p "Have you completed this step?" yn
# case $yn in
# [Yy]* ) break;;
# [Nn]* ) exit;;
# * ) echo "Please answer yes or no.";;
# esac
# done
echo "$(tput setaf 2)Installing dependencies$(tput sgr0)"
# install dependencies
cd browser-lib
npm install
cd ..
cd npm-lib
npm install
cd ..
cd SPA-Example
npm install
cd ..
echo "$(tput setaf 2)All Done$(tput sgr0)"
echo "You will have to login to npm - npm login or npm adduser - to publish to npm."