Skip to content
This repository was archived by the owner on May 31, 2026. It is now read-only.

Commit e63ca66

Browse files
committed
chore; update tailwindcss
1 parent 61bddc3 commit e63ca66

34 files changed

Lines changed: 1429 additions & 1265 deletions

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on: [push]
2+
3+
jobs:
4+
publish:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
contents: read
8+
deployments: write
9+
name: Publish to Cloudflare Pages
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
13+
14+
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
15+
with:
16+
run_install: true
17+
18+
- name: Lint project
19+
run: pnpm run lint:ci

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm check:fix

astro.config.mjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { defineConfig } from "astro/config";
2-
import tailwind from "@astrojs/tailwind";
31
import sitemap from "@astrojs/sitemap";
2+
import tailwindcss from "@tailwindcss/vite";
3+
import { defineConfig } from "astro/config";
44
import icon from "astro-icon";
55

66
export default defineConfig({
7-
site: "https://tuhuratech.org.nz",
8-
prefetch: true,
9-
integrations: [
10-
tailwind(),
11-
sitemap(),
12-
icon(),
13-
],
7+
site: "https://tuhuratech.org.nz",
8+
prefetch: true,
9+
integrations: [sitemap(), icon()],
10+
11+
vite: {
12+
plugins: [tailwindcss()],
13+
},
1414
});

biome.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "tab"
14+
},
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"recommended": true
19+
}
20+
},
21+
"javascript": {
22+
"formatter": {
23+
"quoteStyle": "double"
24+
}
25+
},
26+
"assist": {
27+
"enabled": true,
28+
"actions": {
29+
"source": {
30+
"organizeImports": "on"
31+
}
32+
}
33+
},
34+
"overrides": [
35+
{
36+
"includes": ["**/*.astro"],
37+
"linter": {
38+
"rules": {
39+
"style": {
40+
"useConst": "off",
41+
"useImportType": "off"
42+
},
43+
"correctness": {
44+
"noUnusedVariables": "off",
45+
"noUnusedImports": "off"
46+
}
47+
}
48+
}
49+
}
50+
]
51+
}

package.json

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
11
{
2-
"name": "website",
3-
"type": "module",
4-
"version": "1.0.0",
5-
"scripts": {
6-
"dev": "astro dev",
7-
"start": "astro dev",
8-
"build": "astro check && astro build",
9-
"preview": "astro preview",
10-
"astro": "astro"
11-
},
12-
"dependencies": {
13-
"@astrojs/check": "^0.9.4",
14-
"@astrojs/sitemap": "^3.2.1",
15-
"@astrojs/tailwind": "^6.0.0",
16-
"@iconify-json/mdi": "^1.1.66",
17-
"astro": "^5.0.3",
18-
"astro-icon": "^1.1.0",
19-
"preline": "^2.1.0",
20-
"sharp": "^0.34.0",
21-
"tailwindcss": "^3.4.3"
22-
},
23-
"devDependencies": {
24-
"@tailwindcss/forms": "0.5.10",
25-
"prettier": "3.6.2",
26-
"prettier-plugin-astro": "0.14.1",
27-
"typescript": "5.8.3"
28-
},
29-
"packageManager": "pnpm@10.12.4"
30-
}
2+
"name": "website",
3+
"type": "module",
4+
"version": "1.0.0",
5+
"scripts": {
6+
"preinstall": "npx only-allow pnpm",
7+
"prepare": "husky",
8+
"dev": "astro dev",
9+
"start": "astro dev",
10+
"build": "astro check && astro build",
11+
"preview": "astro preview",
12+
"astro": "astro",
13+
"check": "astro check",
14+
"lint": "biome check",
15+
"lint:ci": "biome ci",
16+
"lint:fix": "biome lint --write"
17+
},
18+
"dependencies": {
19+
"@astrojs/check": "^0.9.4",
20+
"@astrojs/sitemap": "^3.4.1",
21+
"@iconify-json/mdi": "^1.2.3",
22+
"@tailwindcss/forms": "^0.5.10",
23+
"@tailwindcss/vite": "^4.1.11",
24+
"astro": "^5.11.0",
25+
"astro-icon": "^1.1.5",
26+
"preline": "^3.1.0",
27+
"tailwindcss": "^4.1.11",
28+
"typescript": "^5.8.3"
29+
},
30+
"devDependencies": {
31+
"@biomejs/biome": "^2.0.6",
32+
"husky": "^9.1.7",
33+
"sharp": "^0.34.2"
34+
},
35+
"packageManager": "pnpm@10.12.4+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184"
36+
}

0 commit comments

Comments
 (0)