-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update local env reset process and fix Event type usage in orgs
- Loading branch information
1 parent
2e5f818
commit 2eb17ed
Showing
4 changed files
with
19 additions
and
11 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,20 +1,24 @@ | ||
# 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 | ||
# Run this script in the frontend directory to reset the local environment and allow for local testing. | ||
# macOS: sh reset_local_env.sh | ||
# Linux: bash reset_local_env.sh | ||
# Windows: Run the commands below. | ||
|
||
# Replace local yarn.lock file with the one in main: | ||
echo "Replacing local yarn.lock with the version on the main branch." | ||
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): | ||
echo "Cleaning yarn cache system wide (might take a long time)." | ||
yarn cache clean | ||
|
||
# Delete the node_modules folder: | ||
echo "Deleting the local node_modules directory." | ||
rm -rf node_modules | ||
echo "Local node_modules was deleted." | ||
|
||
# Load environment variables into your shell: | ||
echo "Loading environment variables into your shell." | ||
set -a && source ../.env.dev && set +a | ||
echo "Environment variables were loaded." | ||
|
||
# Reinstall and prompt to restart IDE: | ||
echo "Reinstalling frontend dependencies." | ||
yarn install | ||
|
||
echo "Local frontend environment restarted." | ||
echo "Please restart your IDE to assure that changes are picked up." |
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