Notes
2025
Init NativeWind
-
05:33PM
Going to take a break from the tamagui and see if I can get nativewind running without any major issues. I will start by installing the base package and then loop back around and delete the tamagui for now. To get the ball rolling, we will do the basic
pnpm install nativewind
.After installing the nativewind, the next stage would be to setup Metro using the exisiting
metro.config.js
. For that we will be importing:
const { withNativeWind } = require('nativewind/metro');
const customConfig = withNativeWind({..._default});
That is the sudo code that we would be using for wrapping around our withNativeWind. I wonder if the order of metro configurations might have been a problem with tamagui, but that is for a future problem for me to experiment around with.
User Profile Update
-
05:38PM
While I am installing and set
2024
Git
Part 2 of the Git plan! We went ahead and setup a private repo with the source code for a couple plugins, however we need to make sure we can use them inside our unity editor. The next stage would be to setup the script commands for setting up the sub module.
Lets start with at least setting up the variables. Wait before we do that , we need to setup a ULID for the shell file.
# Function to add optional submoduleaddOptionalSubmodule() { local SUBMODULE_PATH=$1 local SUBMODULE_URL=$2
# Check if the necessary arguments are provided if [ -z "$SUBMODULE_PATH" ] || [ -z "$SUBMODULE_URL" ]; then echo "Error: Missing required arguments. You must provide both a submodule path and a submodule URL." exit 1 fi
# Check if the submodule directory already exists if [ ! -d "$SUBMODULE_PATH" ]; then echo "Adding optional submodule..." git submodule add $SUBMODULE_URL $SUBMODULE_PATH echo "$SUBMODULE_PATH" >> .gitignore else echo "Submodule already exists." fi
# Deduplicate .gitignore entries awk '!seen[$0]++' .gitignore > temp && mv temp .gitignore}
This is the basic function that will handle the git submodule setup. We want this to be optional and not have it affect the whole repo, definitely when cloning it from one area to another.
Then we run another command to place the DLLs during the build process!
Let me update the last part of the journal and then merge the patches.
Azure
The GIT LFS limit is around 250GB on Azure, thus we can place all of the RentEarth codebase with the plugins inside of a private Git LFS?
If the build does not work through Github actions, we can work around using the git lfs
from Azure devops as a backup plan.
For the git lfs
, we need a solid unity git attributes, here is the one that I am adding in.
Here is the location of gist for .gitattributes
when using Unity LFS.
I might come back and shrink this down but for now this should help a ton with the storage and handling of the complex files.
JS
During the migration of the UI/UX, we need to keep track of the different watch commands.
I am just going to use this entry to help keep track.
npx tailwindcss -i ./input.css -o ./output.css --watch