Set up prettier and tailwind even harder

JS tooling breaks at the slightest whiff of nonstandard setups. God
forbid you set up your js project in a subdirectory of the repository
instead of in the root...
This commit is contained in:
Joscha 2025-01-26 23:57:28 +01:00
parent f0ec43f468
commit d1f0d28dac
12 changed files with 1770 additions and 1278 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
/target /node_modules/
/target/

View file

@ -1,2 +1,3 @@
/gdn-app/pnpm-lock.yaml /gdn-app/dist/
/gdn-app/src-tauri/gen/ /gdn-app/src-tauri/gen/
/pnpm-lock.yaml

View file

@ -1,3 +1,4 @@
{ {
"proseWrap": "always" "proseWrap": "always",
"plugins": ["prettier-plugin-tailwindcss"]
} }

View file

@ -1,6 +1,7 @@
{ {
"recommendations": [ "recommendations": [
"Vue.volar", "Vue.volar",
"bradlc.vscode-tailwindcss",
"esbenp.prettier-vscode", "esbenp.prettier-vscode",
"rust-lang.rust-analyzer", "rust-lang.rust-analyzer",
"tamasfe.even-better-toml", "tamasfe.even-better-toml",

1273
gdn-app/pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -13,6 +13,7 @@ async function greet() {
<template> <template>
<main class="container"> <main class="container">
<p class="font-bold underline">Hello</p>
<h1>Welcome to Tauri + Vue</h1> <h1>Welcome to Tauri + Vue</h1>
<div class="row"> <div class="row">

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
prettier . --write pnpm prettier . --write
cargo fmt cargo fmt

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
prettier . --check pnpm prettier . --check
cargo fmt --check cargo fmt --check

6
package.json Normal file
View file

@ -0,0 +1,6 @@
{
"devDependencies": {
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.11"
}
}

1750
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff

2
pnpm-workspace.yaml Normal file
View file

@ -0,0 +1,2 @@
packages:
- gdn-app

2
tailwind.config.ts Normal file
View file

@ -0,0 +1,2 @@
// Even though tailwind 4 no longer uses this config file, it is required for
// the tailwind intellisense vscode extension.