Skip to content

Commit

Permalink
Add script to create JAR archive
Browse files Browse the repository at this point in the history
  • Loading branch information
lukin committed Mar 10, 2023
1 parent c5ab06d commit f1df034
Show file tree
Hide file tree
Showing 14 changed files with 578 additions and 152 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# build
out/

# dependencies
node_modules/

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,9 @@ When you're ready to deploy your own theme, run the build command to generate a
pnpm install
pnpm build
```

To deploy a theme as an archive, create a JAR archive with the theme resources.

```bash
pnpm build:jar
```
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
{
"$schema": "https://json.schemastore.org/package",
"name": "keywind",
"scripts": {
"build": "tsc && vite build",
"build:jar": "vite-node scripts/build",
"dev": "vite build --watch",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"alpinejs": "^3.10.5",
"alpinejs": "^3.12.0",
"rfc4648": "^1.5.2"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.3",
"@types/alpinejs": "^3.7.1",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.20",
"tailwindcss": "^3.2.4",
"typescript": "^4.9.4",
"vite": "^4.0.1"
"@types/archiver": "^5.3.1",
"@types/node": "^18.15.0",
"archiver": "^5.3.1",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.7",
"typescript": "^4.9.5",
"vite": "^4.1.4",
"vite-node": "^0.29.2"
}
}
Loading

0 comments on commit f1df034

Please sign in to comment.