-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update gm frontend tutorial * Update gm world tutorial: use bash and which * Add celestia-da tutorial, network agnostic (#368) * Add celestia-da tutorial, network agnostic * Update vitepress config * Add link to /guides/gas-price * Update tutorials/celestia-da.md Co-authored-by: joshcs.eth <[email protected]> * Update tutorials/celestia-da.md Co-authored-by: joshcs.eth <[email protected]> * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update tutorials/celestia-da.md * Update tutorials/celestia-da.md * Update tutorials/celestia-da.md * Apply suggestions from code review * Apply suggestions from code review * Update tutorials/gm-world.md Co-authored-by: joshcs.eth <[email protected]> * Remove sudo, we install gmd, no need to use sudo now * docs: use 1 line for install instead of 2 --------- Co-authored-by: joshcs.eth <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Node and yarn versions as constants, custom script to install yarn and node * Add brew bin to $PATH * Minor updates to jq and go installation scripts * Update public/install-jq.sh Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Use bash-vue * Use bash instead of sh, yes, it's opinionated * Add screenshot with connected wallet * Uppercase yarn and nodejs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Exit if curl is not installed * docs: add vA callout back * fix: image linking, err in runtime * docs: standard sentence case capitalization * feat: remove now unused images * Apply suggestions from code review * Update tutorials/gm-world-frontend.md --------- Co-authored-by: joshcs.eth <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Yarik Bratashchuk <[email protected]> Co-authored-by: jcstein <[email protected]>
- Loading branch information
1 parent
8840797
commit 4eb0578
Showing
11 changed files
with
176 additions
and
301 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
echo "Downloading GM Frontend tutorial source code..." | ||
git clone https://github.com/rollkit/gm-frontend.git | ||
cd gm-frontend || { echo "Failed to find the downloaded repository"; exit 1; } | ||
echo "Installing dependencies..." | ||
yarn install | ||
echo "Starting dev server..." | ||
yarn run dev |
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,29 +1,42 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
echo "Detected macOS. Installing jq..." | ||
if ! command -v brew &> /dev/null; then | ||
echo "Homebrew is not installed. Installing Homebrew..." | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
fi | ||
brew install jq | ||
echo "jq has been installed successfully." | ||
|
||
echo "Detected macOS. Installing jq..." | ||
if ! command -v brew &> /dev/null; then | ||
echo "Homebrew is not installed. Installing Homebrew..." | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
# adding /opt/homebrew/bin to the $PATH variable based on the shell | ||
if [[ -f "$HOME/.bash_profile" ]]; then | ||
echo "export PATH=\"/opt/homebrew/bin:\$PATH\"" >> "$HOME/.bash_profile" | ||
source "$HOME/.bash_profile" | ||
elif [[ -f "$HOME/.bashrc" ]]; then | ||
echo "export PATH=\"/opt/homebrew/bin:\$PATH\"" >> "$HOME/.bashrc" | ||
source "$HOME/.bashrc" | ||
elif [[ -f "$HOME/.zshrc" ]]; then | ||
echo "export PATH=\"/opt/homebrew/bin:\$PATH\"" >> "$HOME/.zshrc" | ||
source "$HOME/.zshrc" | ||
else | ||
echo "Unsupported shell. Please add /opt/homebrew/bin to your PATH manually." | ||
exit 1 | ||
fi | ||
fi # Closing the brew installation check | ||
brew install jq | ||
echo "jq has been installed successfully." | ||
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
echo "Detected Linux. Installing jq..." | ||
if command -v apt &> /dev/null; then | ||
sudo apt update | ||
sudo apt install -y jq | ||
elif command -v yum &> /dev/null; then | ||
sudo yum install -y epel-release | ||
sudo yum install -y jq | ||
else | ||
echo "Unsupported package manager. Please install jq manually." | ||
exit 1 | ||
fi | ||
echo "jq has been installed successfully." | ||
|
||
echo "Detected Linux. Installing jq..." | ||
if command -v apt &> /dev/null; then | ||
sudo apt update | ||
sudo apt install -y jq | ||
elif command -v yum &> /dev/null; then | ||
sudo yum install -y epel-release | ||
sudo yum install -y jq | ||
else | ||
echo "Unsupported package manager. Please install jq manually." | ||
exit 1 | ||
fi | ||
echo "jq has been installed successfully." | ||
else | ||
echo "Unsupported operating system." | ||
exit 1 | ||
fi | ||
echo "Unsupported operating system." | ||
exit 1 | ||
fi # Closing the OS type check | ||
|
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
INSTALL_NODE_VER=21.7.2 | ||
INSTALL_NVM_VER=0.39.7 | ||
INSTALL_YARN_VER=1.22.19 | ||
|
||
# You can pass node and yarn versions as arguments to this script | ||
if [ "$1" != '' ]; then | ||
echo "==> Using specified node version - $1" | ||
INSTALL_NODE_VER=$1 | ||
fi | ||
if [ "$2" != '' ]; then | ||
echo "==> Using specified yarn version - $2" | ||
INSTALL_YARN_VER=$2 | ||
fi | ||
|
||
echo "==> Ensuring .bashrc exists and is writable" | ||
touch ~/.bashrc | ||
|
||
echo "==> Installing node version manager (NVM). Version $INSTALL_NVM_VER" | ||
# Removed if already installed | ||
rm -rf ~/.nvm | ||
# Unset exported variable | ||
export NVM_DIR= | ||
|
||
# Install nvm | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v$INSTALL_NVM_VER/install.sh | bash | ||
# Make nvm command available to terminal | ||
source ~/.nvm/nvm.sh | ||
|
||
echo "==> Installing node js version $INSTALL_NODE_VER" | ||
nvm install $INSTALL_NODE_VER | ||
|
||
echo "==> Make this version system default" | ||
nvm alias default $INSTALL_NODE_VER | ||
nvm use default | ||
|
||
echo "==> Installing Yarn package manager" | ||
rm -rf ~/.yarn | ||
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $INSTALL_YARN_VER | ||
|
||
echo "==> Adding Yarn and Node to environment path" | ||
# Yarn configurations | ||
mv $HOME/.nvm/versions/node/v$INSTALL_NODE_VER/bin/node $HOME/.yarn/bin | ||
|
||
export PATH="$HOME/.yarn/bin:$PATH" | ||
yarn config set prefix ~/.yarn -g | ||
|
||
echo "==> Checking for versions" | ||
nvm --version | ||
node --version | ||
npm --version | ||
yarn --version | ||
|
||
echo "==> Print binary paths" | ||
which npm | ||
which node | ||
which yarn | ||
|
||
echo "==> List installed node versions" | ||
nvm ls | ||
|
||
nvm cache clear | ||
echo "==> Now you're all setup and ready for development. If changes are yet to take effect, I suggest you restart your computer" |
Oops, something went wrong.