-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create reset frontend testing script and link in contributing
- Loading branch information
1 parent
68afc74
commit a888f2c
Showing
2 changed files
with
30 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Run this script to reset the local frontend environment to allow for local testing. | ||
# macOS: sh frontend/reset_local_env.sh | ||
# Linux: bash frontend/reset_local_env.sh | ||
# Windows: Run the commands below. | ||
|
||
# Replace local yarn.lock file with the one in main: | ||
wget -O yarn.lock https://raw.githubusercontent.com/activist-org/activist/refs/heads/main/frontend/yarn.lock | ||
|
||
# Clear the yarn cache system wide (might take a long time): | ||
yarn cache clean | ||
|
||
# Delete the node_modules folder: | ||
rm -rf node_modules | ||
|
||
# Load environment variables into your shell: | ||
set -a && source ../.env.dev && set +a | ||
|
||
# Reinstall and prompt to restart IDE: | ||
yarn install | ||
echo "Please restart your IDE to assure that changes are picked up." |