feat: add Taskfile, prettier formatting

This commit is contained in:
Tobias Waslowski 2025-08-07 09:15:36 +02:00
parent 801cc1e9db
commit e14d73edb0
No known key found for this signature in database
GPG Key ID: 30013DA2D0F8AFAD
8 changed files with 2391 additions and 2371 deletions

2
.gitignore vendored
View File

@ -19,3 +19,5 @@ dist
# VSCode settings
.vscode
test.log

24
Taskfile.yaml Normal file
View File

@ -0,0 +1,24 @@
version: '3'
tasks:
backend:test:
desc: Run backend tests
cmds:
- ./mvnw test
backend:run:
desc: Run the backend
cmds:
- go run ./bin/memos/main.go --mode dev --port 8081
web:lint:
desc: Run prettier and eslint
dir: web
cmds:
- pnpm lint:fix
- pnpm lint
web:run:
desc: Run web frontend
dir: web
cmds:
- pnpm dev

2
web/.prettierignore Normal file
View File

@ -0,0 +1,2 @@
**/types/proto/
**/locales/

View File

@ -18,4 +18,4 @@
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
}

View File

@ -5,7 +5,8 @@
"dev": "vite",
"build": "vite build",
"release": "vite build --mode release --outDir=../server/router/frontend/dist --emptyOutDir",
"lint": "tsc --noEmit --skipLibCheck && eslint --ext .js,.ts,.tsx, src"
"lint": "tsc --noEmit --skipLibCheck && eslint --ext .js,.ts,.tsx, src",
"lint:fix": "eslint src --fix && prettier -w src"
},
"dependencies": {
"@dnd-kit/core": "^6.3.1",
@ -90,4 +91,4 @@
"esbuild"
]
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -20,17 +20,11 @@ export const editorCommands: Command[] = [
cursorOffset: 1,
},
{
name: "table-2",
name: "table",
description: "Insert a table",
run: () => "| Header | Header |\n| ------ | ------ |\n| Cell | Cell |",
cursorOffset: 1,
},
{
name: "table-3",
description: "Insert a table",
run: () => "| Header | Header | Header |\n| ------ | ------ | ------ |\n| Cell | Cell | Cell |",
cursorOffset: 1,
},
{
name: "highlight",
description: "Insert highlighted text",

View File

@ -149,4 +149,4 @@
--shadow-lg: var(--shadow-lg);
--shadow-xl: var(--shadow-xl);
--shadow-2xl: var(--shadow-2xl);
}
}