0-vortex / open-sauced-hot-vite-ts-test

Experimenting with vite typescript template rewrite for hot.opensauced.pizza

Home Page:https://0-vortex.github.io/open-sauced-hot-vite-ts-test/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Open Sauced

πŸ• Open Sauced Vite Typescript Template Test πŸ•

The path to your next Open Source contribution

GitHub code size in bytes GitHub commit activity GitHub issues GitHub Release Discord Twitter

πŸ“– Prerequisites

In order to run the project we need the following software binaries installed on our development machines:

  • node>=16.7.0
  • npm>=8.0.0
  • docker>=20.10.12
  • supabase>=0.18.0

πŸ–₯️ Local development

To install the application:

npm ci

To start a local copy of the app on port 3000:

npm start

πŸ§ͺ Test

For running the test suite, use the following command. Since the tests run in watch mode by default, some users may encounter errors about too many files being open. In this case, it may be beneficial to install watchman.

npm test

You can request a coverage report by running the following command:

npm run test:coverage

πŸ“¦ Docker builds

A development preview can also be run from docker:

docker build -t open-sauced-template .
docker run -p 8080:80 open-sauced-template

Alternatively you can pull the production container and skip all builds:

docker run -dit -p 8080:80 ghcr.io/open-sauced/open-sauced

🎨 Code linting

To check the code and styles quality, use the following command:

npm run lint

This will also display during development, but not break on errors.

To fix the linting errors, use the following command:

npm run format

πŸš€ Production deployment

A production deployment is a complete build of the project, including the build of the static assets.

npm run build

You can analyze the build by running the following command:

npm run build:analyze

🎭 Offline asset optimization

We also have a script for updating .svg files used in the project, you only need to run this if you add new assets:

npm run build:svgo

And one for .png and .jpg files:

npm run build:squoosh

🚧 Development debugging

Thanks to antfu/vite-plugin-inpesct we can always inspect the bundles in development by navigating to localhost:3000/__inspect/ in your browser.

🀝 Contributing

We encourage you to contribute to Open Sauced! Please check out the Contributing guide for guidelines about how to proceed.

πŸ• Community

Got Questions? Join the conversation in our Discord.
Find Open Sauced videos and release overviews on our YouTube Channel.

🎦 Repository Visualization

Visualization of this repository

βš–οΈ LICENSE

MIT Β© Open Sauced

About

Experimenting with vite typescript template rewrite for hot.opensauced.pizza

https://0-vortex.github.io/open-sauced-hot-vite-ts-test/

License:MIT License


Languages

Language:TypeScript 79.3%Language:JavaScript 15.8%Language:HTML 2.1%Language:Dockerfile 1.1%Language:CSS 1.0%Language:Shell 0.6%