Boilerplate tech stack composed on Vite.js, Typescript, Tailwind and React-Query stack
-
yarn dev- for development -
yarn build- production build -
yarn preview- production version of application -
yarn lint- run ESLint kode check -
yarn lint:fix- run ESLint kode check with autofix
For development
to build image: docker build -t [name of the image] .
to run image docker run -it --rm -p 4001:4000 --name [name of the container] [name of the image]
to run image with mounted local volume for Hot Module Reload
docker run -it --rm -p 4001:4000 -v "$PWD"/src:/app/src [name of the container] [name of the image]
For production preview
to build image: docker build -t [name of image] -f dockerfile.preview .
to run image docker run -it --rm -p 4200:4200 --name [name of the container] [name of the image]