Really Simple app that calculates tithe amounts based on salary inputs
-
Install fswatch (if not already installed):
brew install fswatch
-
Start Tailwind CSS in watch mode: Run the following command to watch for changes in the
src/tailwind.css
file and update themain.css
file:./tailwindcss -i ./src/tailwind.css -o ./main.css --watch
-
Start Elm in watch mode: Run the following command to watch for changes in the
src/Main.elm
file and recompile it tomain.js
:fswatch -o src/Main.elm | xargs -n1 -I{} elm make src/Main.elm --output=main.js
-
Open index.html: After running the above commands, open
index.html
to see the changes:open index.html
These commands will ensure that your CSS and Elm files are watched for changes, and the respective output files are updated automatically.
Compile the Elm code to HTML and JS
elm make src/Main.elm --optimize --output=main.js
./tailwindcss -i ./src/tailwind.css -o ./main.css