Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0-vortex/open-sauced-hot-vite-ts-test
Experimenting with vite typescript template rewrite for hot.opensauced.pizza
https://github.com/0-vortex/open-sauced-hot-vite-ts-test
Last synced: 9 days ago
JSON representation
Experimenting with vite typescript template rewrite for hot.opensauced.pizza
- Host: GitHub
- URL: https://github.com/0-vortex/open-sauced-hot-vite-ts-test
- Owner: 0-vortex
- License: mit
- Created: 2022-02-27T16:06:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-19T21:12:25.000Z (over 2 years ago)
- Last Synced: 2024-05-20T20:39:16.258Z (6 months ago)
- Language: TypeScript
- Homepage: https://0-vortex.github.io/open-sauced-hot-vite-ts-test/
- Size: 4.57 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
๐ Open Sauced Vite Typescript Template Test ๐
The path to your next Open Source contribution
## ๐ 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:
```shell
npm ci
```To start a local copy of the app on port `3000`:
```shell
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](https://facebook.github.io/watchman/docs/install.html).
```shell
npm test
```You can request a coverage report by running the following command:
```shell
npm run test:coverage
```### ๐ฆ Docker builds
A development preview can also be run from docker:
```shell
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:
```shell
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:
```shell
npm run lint
```This will also display during development, but not break on errors.
To fix the linting errors, use the following command:
```shell
npm run format
```### ๐ Production deployment
A production deployment is a complete build of the project, including the build of the static assets.
```shell
npm run build
```You can analyze the build by running the following command:
```shell
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:
```shell
npm run build:svgo
```And one for `.png` and `.jpg` files:
```shell
npm run build:squoosh
```### ๐ง Development debugging
Thanks to [antfu/vite-plugin-inpesct](https://github.com/antfu/vite-plugin-inspect) we can always inspect the bundles in development by navigating to [localhost:3000/__inspect/](http://localhost:3000/__inspect/) in your browser.
## ๐ค Contributing
We encourage you to contribute to Open Sauced! Please check out the [Contributing guide](https://docs.opensauced.pizza/contributing/introduction-to-contributing/) for guidelines about how to proceed.
## ๐ Community
Got Questions? Join the conversation in our [Discord](https://discord.gg/U2peSNf23P).
Find Open Sauced videos and release overviews on our [YouTube Channel](https://www.youtube.com/channel/UCklWxKrTti61ZCROE1e5-MQ).## ๐ฆ Repository Visualization
[![Visualization of this repository](./public/diagram.svg)
](./src)## โ๏ธ LICENSE
MIT ยฉ [Open Sauced](LICENSE)