Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @sutne
* @sutne
3 changes: 3 additions & 0 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:

- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm

- name: Install Dependencies
run: npm ci
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint-and-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:

- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm

- name: Install Dependencies
run: npm ci
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.env
.DS_Store
.vscode/*
!.vscode/tasks.json
.vscode
node_modules
dist
11 changes: 11 additions & 0 deletions .mise/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[tools]
node = "24"

[task_config]
includes = [".mise/tasks/general.toml"]

[settings]
experimental = true

[hooks]
postinstall = ["mise run install-dependencies"]
16 changes: 16 additions & 0 deletions .mise/tasks/general.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[install-dependencies]
description = "Install dependencies"
run = "npm install"

[serve]
description = "Serve api with hot reloading on changes"
depends = "install-dependencies"
run = "npx vite --open --host"

[clean]
description = "Remove all untracked or safe to remove files"
run = "git clean -fdx"

[format]
description = "Format all files"
run = ["mise fmt", "npm run check"]
40 changes: 0 additions & 40 deletions .vscode/tasks.json

This file was deleted.

20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,27 @@

</div>

## Development

### Configuration

To setup the dev environment:

1. Install [mise][mise], make sure to also:
- add auto-activation for your shell
- add autocompletion (if it wasn't done automatically)
2. Run `mise install`

### Running

Once the dev environment is configured, serve the app with:

```sh
mise serve
```

> To show all available commands write `mise run` and hit **tab**.

[on-push-main-action]: https://github.com/sutne/sutne.github.io/actions/workflows/on-push-main.yaml
[on-push-main-action-badge]: https://github.com/sutne/sutne.github.io/actions/workflows/on-push-main.yaml/badge.svg
[mise]: https://mise.jdx.dev/getting-started.html
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"private": true,
"type": "module",
"scripts": {
"start": "vite --open --host",
"check": "biome check",
"fix": "biome check --write --unsafe --diagnostic-level=error",
"check": "biome check --write --diagnostic-level=error",
"compile": "tsc -b",
"build": "vite build"
},
Expand Down