-
Notifications
You must be signed in to change notification settings - Fork 0
/
bonnie.toml
33 lines (31 loc) · 1.01 KB
/
bonnie.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version="0.3.2"
[scripts]
## Builds Tailwind CSS for development (no purging)
build-tailwind-dev = [
"pnpm tailwindcss -c ./tailwind.config.js -o ./tailwind.css"
]
## Builds Tailwind CSS for production (maximum purging and minification)
build-tailwind-prod = [
"pnpm tailwindcss -c ./tailwind.config.js -o ./tailwind.css --minify"
]
## Builds Tailwind CSS for development usage
setup.subcommands.tailwind = "bonnie build-tailwind-dev"
setup.subcommands.prompt-tailwind = "echo \"Have you installed the Tailwind CLI globally with 'npm i -g tailwindcss' or 'yarn global add tailwindcss'?\""
setup.order = """
tailwind {
Failure => prompt-tailwind
}
"""
## Builds everything
build.cmd = "cargo build"
## Builds the frontend
build.subcommands.frontend = [
"bonnie build-tailwind-prod",
"export CI=true && cargo tauri build"
]
## Runs the frontend, watching for changes (uses Trunk)
## Tailwind is assumed to be set up after `setup`
run.subcommands.frontend = [
"bonnie build-tailwind-dev",
"cargo tauri dev"
]