1
Fork 0
bauke-xyz/Makefile.toml

42 lines
769 B
Makefile
Raw Normal View History

# Build the website.
[tasks.build]
clear = true
2023-01-09 15:23:37 +00:00
command = "cargo"
args = ["run", "--release"]
2023-01-09 15:23:37 +00:00
# Remove build directories.
[tasks.clean]
clear = true
command = "pnpm"
args = ["trash", "public"]
2023-01-09 15:23:37 +00:00
# Deploy the website to Netlify.
[tasks.deploy-netlify]
clear = true
command = "pnpm"
dependencies = ["clean", "lint", "build"]
args = ["netlify", "deploy", "-p", "-d", "public/", "-s", "bauke.xyz"]
2023-01-09 15:23:37 +00:00
# Run all other linting tasks.
[tasks.lint]
clear = true
dependencies = ["lint-clippy", "lint-js", "lint-scss"]
2023-01-09 15:23:37 +00:00
# Run Clippy.
[tasks.lint-clippy]
clear = true
2023-01-09 15:23:37 +00:00
command = "cargo"
args = ["clippy"]
2023-01-09 15:23:37 +00:00
# Run XO.
[tasks.lint-js]
clear = true
command = "pnpm"
args = ["xo"]
2023-01-09 15:23:37 +00:00
# Run Stylelint.
[tasks.lint-scss]
clear = true
command = "pnpm"
args = ["stylelint", "source/**/*.scss"]