Skip to content

Commit 053b49e

Browse files
committed
Configure tanstack, prettier and tailwindcss
1 parent 1252ae0 commit 053b49e

File tree

8 files changed

+601
-45
lines changed

8 files changed

+601
-45
lines changed

client/.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/dist
2+
**/node_modules
3+
*.md
4+
.github
5+
pnpm-lock.yaml

client/.prettierrc.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/** @type {import("prettier").Config} */
2+
export default {
3+
semi: true,
4+
singleQuote: true,
5+
plugins: ['prettier-plugin-astro', 'prettier-plugin-tailwindcss'],
6+
overrides: [
7+
{
8+
files: '*.astro',
9+
options: {
10+
parser: 'astro',
11+
},
12+
},
13+
],
14+
};

client/astro.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineConfig } from "astro/config";
2-
import solidJs from "@astrojs/solid-js";
1+
import { defineConfig } from 'astro/config';
2+
import solidJs from '@astrojs/solid-js';
33

44
// https://astro.build/config
55
export default defineConfig({

client/components/Form.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { Component } from 'solid-js';
2+
3+
const Form: Component = () => {
4+
return (
5+
<div>
6+
<h1>Register</h1>
7+
</div>
8+
);
9+
};
10+
11+
export default Form;

client/package.json

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,37 @@
22
"name": "safepup",
33
"type": "module",
44
"version": "0.0.1",
5+
"packageManager": "[email protected]",
6+
"volta": {
7+
"node": "22.19.0"
8+
},
59
"scripts": {
610
"dev": "astro dev",
711
"build": "astro check && astro build",
812
"preview": "astro preview",
9-
"astro": "astro"
13+
"astro": "astro",
14+
"format": "prettier --check .",
15+
"format:fix": "prettier --write --list-different ."
1016
},
1117
"dependencies": {
18+
"@tanstack/solid-form": "^1.19.3",
1219
"astro": "^5.13.5",
1320
"solid-js": "^1.9.9"
1421
},
22+
"devDependencies": {
23+
"@astrojs/check": "^0.9.4",
24+
"@astrojs/solid-js": "^5.1.0",
25+
"@tailwindcss/vite": "^4.1.12",
26+
"prettier": "^3.6.2",
27+
"prettier-plugin-astro": "^0.14.1",
28+
"prettier-plugin-tailwindcss": "^0.6.14",
29+
"typescript": "^5.9.2"
30+
},
1531
"pnpm": {
1632
"onlyBuiltDependencies": [
33+
"@tailwindcss/oxide",
1734
"esbuild",
1835
"sharp"
1936
]
20-
},
21-
"packageManager": "[email protected]",
22-
"volta": {
23-
"node": "22.19.0"
24-
},
25-
"devDependencies": {
26-
"@astrojs/check": "^0.9.4",
27-
"@astrojs/solid-js": "^5.1.0",
28-
"typescript": "^5.9.2"
2937
}
3038
}

0 commit comments

Comments
 (0)