Closed JStruk closed 1 year ago
@JStruk npm run tailwind
fails for me, but it's easy to fix. Can you change the file extension to .cjs
and update package.js script "tailwindcss build -i ./src/styles/index.css -o ./src/styles/styles.css -c ./tailwind.config.cjs"
(note the extension update).
@JStruk
npm run tailwind
fails for me, but it's easy to fix. Can you change the file extension to.cjs
and update package.js script"tailwindcss build -i ./src/styles/index.css -o ./src/styles/styles.css -c ./tailwind.config.cjs"
(note the extension update).
Nice catch. Updated and tested locally as well 👍
Import existing UI code from https://github.com/mobtimeapp/mobtime/tree/master/public
Description
npm run dev
to spin up a Vite server:localhost:5173
localhost:5173/timer
Review Notes
This PR is large since most of it is copy/paste from the original mobtime repo
Some important-ish files to review would be:
package.json
Smoke Test
The app can be run as a local dev server without rollup doing its thing for easy debugging, and can also be built for production with the output from Vite's rollup going to
dist/
Spinning up a local dev server
npm run dev
should start a vite server @ localhost:5173Building for production
npm run build
produces a bundle via Vite for production. Outputs bundle todist/
http-server
works greatnpm i -g http-server
cd dist
http-server
http://127.0.0.1:8080
andhttp://127.0.0.1:8080/timer/
Notes
Websocket-related code fails right now. Example: press the 'START TURN' button and look at the console. How do we proceed with this?
ToDo
Before this is out of draft: