mirror of https://github.com/usememos/memos.git
feat: add Taskfile, prettier formatting
This commit is contained in:
parent
801cc1e9db
commit
e14d73edb0
|
|
@ -19,3 +19,5 @@ dist
|
|||
|
||||
# VSCode settings
|
||||
.vscode
|
||||
|
||||
test.log
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
**/types/proto/
|
||||
**/locales/
|
||||
|
|
@ -18,4 +18,4 @@
|
|||
"hooks": "@/hooks"
|
||||
},
|
||||
"iconLibrary": "lucide"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
4717
web/pnpm-lock.yaml
4717
web/pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -149,4 +149,4 @@
|
|||
--shadow-lg: var(--shadow-lg);
|
||||
--shadow-xl: var(--shadow-xl);
|
||||
--shadow-2xl: var(--shadow-2xl);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue