-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a72c77
commit 6cc45bf
Showing
3 changed files
with
17 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
#!/bin/bash | ||
|
||
echo "[ + ] Running post-create script..." | ||
echo "[ + ] Installing Node.js 20..." | ||
NVM_VERSION="0.38.0" | ||
NODE_VERSION="20" | ||
|
||
echo "[ + ] Running post-create script. Installing the following:" | ||
echo "[ + ] NVM version: $NVM_VERSION" | ||
echo "[ + ] NodeJS version: $NODE_VERSION" | ||
echo "[ + ] ==============================" | ||
|
||
# Check if we don't have nvm, if no - install it | ||
echo "[ + ] Installing nvm..." | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash | ||
echo "[ + ] Installing nvm at v$NVM_VERSION" | ||
|
||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v$NVM_VERSION/install.sh | bash | ||
# Activate nvm | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | ||
|
||
# Refresh bash | ||
source ~/.bashrc | ||
|
||
# Install node 20 | ||
echo "[ + ] Installing Node.js 20..." | ||
nvm install 20 && nvm use 20; | ||
# Install node at a set versions | ||
echo "[ + ] Installing NodeJS at v$NODE_VERSION" | ||
nvm install $NODE_VERSION && nvm use $NODE_VERSION | ||
|
||
echo "[ + ] Installing UI dependencies and building..." | ||
# Change to the "ui" directory | ||
cd ui && npm install && cd ../ | ||
|
||
echo "[ + ] Installing Go dependencies and building..." | ||
make build | ||
make build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters