Skip to content

Commit 409d942

Browse files
committed
feat: add script to create jar archive
1 parent 8d2160b commit 409d942

14 files changed

+578
-152
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

3+
# build
4+
out/
5+
36
# dependencies
47
node_modules/
58

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,9 @@ When you're ready to deploy your own theme, run the build command to generate a
9898
pnpm install
9999
pnpm build
100100
```
101+
102+
To deploy a theme as an archive, create a JAR archive with the theme resources.
103+
104+
```bash
105+
pnpm build:jar
106+
```

package.json

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
{
22
"$schema": "https://json.schemastore.org/package",
3+
"name": "keywind",
34
"scripts": {
45
"build": "tsc && vite build",
6+
"build:jar": "vite-node scripts/build",
57
"dev": "vite build --watch",
68
"test": "echo \"Error: no test specified\" && exit 1"
79
},
810
"dependencies": {
9-
"alpinejs": "^3.10.5",
11+
"alpinejs": "^3.12.0",
1012
"rfc4648": "^1.5.2"
1113
},
1214
"devDependencies": {
1315
"@tailwindcss/forms": "^0.5.3",
1416
"@types/alpinejs": "^3.7.1",
15-
"autoprefixer": "^10.4.13",
16-
"postcss": "^8.4.20",
17-
"tailwindcss": "^3.2.4",
18-
"typescript": "^4.9.4",
19-
"vite": "^4.0.1"
17+
"@types/archiver": "^5.3.1",
18+
"@types/node": "^18.15.0",
19+
"archiver": "^5.3.1",
20+
"autoprefixer": "^10.4.14",
21+
"postcss": "^8.4.21",
22+
"tailwindcss": "^3.2.7",
23+
"typescript": "^4.9.5",
24+
"vite": "^4.1.4",
25+
"vite-node": "^0.29.2"
2026
}
2127
}

0 commit comments

Comments
 (0)