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:
parent
f0ec43f468
commit
d1f0d28dac
12 changed files with 1770 additions and 1278 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
||||||
/target
|
/node_modules/
|
||||||
|
/target/
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
"proseWrap": "always"
|
"proseWrap": "always",
|
||||||
|
"plugins": ["prettier-plugin-tailwindcss"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1
.vscode/extensions.json
vendored
1
.vscode/extensions.json
vendored
|
|
@ -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
1273
gdn-app/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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">
|
||||||
|
|
|
||||||
2
meta/fmt
2
meta/fmt
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
6
package.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"devDependencies": {
|
||||||
|
"prettier": "^3.4.2",
|
||||||
|
"prettier-plugin-tailwindcss": "^0.6.11"
|
||||||
|
}
|
||||||
|
}
|
||||||
1750
pnpm-lock.yaml
generated
Normal file
1750
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load diff
2
pnpm-workspace.yaml
Normal file
2
pnpm-workspace.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
packages:
|
||||||
|
- gdn-app
|
||||||
2
tailwind.config.ts
Normal file
2
tailwind.config.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
// Even though tailwind 4 no longer uses this config file, it is required for
|
||||||
|
// the tailwind intellisense vscode extension.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue