how to use
please create help video
we need a video on how to run the plugin I don't understand what is the command "Windows wsl bash dos2unix gradlew ./gradlew run --args="-config=application.conf" "
I just installed wsl from Windows Store app. Then I installed Ubuntu 22.04.2 LTS from Windows Store app. And restart my computer.
I ran PowerShell as administrator and:
wsl
cd my/location/FigmaToCompose
sudo apt-get update
sudo apt-get install dos2unix
sudo dos2unix gradlew
./gradlew run --args="-config=application.conf"
I got an error about JAVA_HOME. Then:
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.deb
sudo apt-get install ./jdk-17_linux-x64_bin.deb
./gradlew run --args="-config=application.conf"
And restart the computer again.
It helped me.
Hey, I found the readme confusing as well. But actually it's pretty simple:
Regardless of whether you're on mac, linux or windows, after cloning the repository, open the project on android studio and go to the terminal. You don't need WSL or anything. Just directly paste the following command and hit enter:
./gradlew run --args="-config=application.conf"
After some time, the server starts running as can be seen below:
Then you can just select a node on your figma project and run the plugin as shown in the video. Click "generate" to get the composable code.