1
Fork 0

Add the cargo-make configuration.

This commit is contained in:
Bauke 2024-01-24 19:31:45 +01:00
parent f6ffc0182d
commit f26b4dd09e
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 38 additions and 0 deletions

35
Makefile.toml Normal file
View File

@ -0,0 +1,35 @@
# Build the package.
[tasks.build]
dependencies = ["clean", "lint"]
clear = true
command = "pnpm"
args = ["tsc"]
# Clean the build directory.
[tasks.clean]
clear = true
command = "pnpm"
args = ["trash", "build/"]
# Run the full set of linting and testing.
[tasks.lint]
clear = true
dependencies = ["lint-js", "typecheck", "test"]
# Lint the TypeScript using XO.
[tasks.lint-js]
clear = true
command = "pnpm"
args = ["xo"]
# Run the tests.
[tasks.test]
clear = true
command = "pnpm"
args = ["tsx", "tests/migrate.test.ts"]
# Do a typecheck with tsc.
[tasks.typecheck]
clear = true
command = "pnpm"
args = ["tsc", "--noEmit"]

View File

@ -8,6 +8,9 @@
"type": "git",
"url": "https://git.bauke.xyz/Holllo/migration-helper"
},
"scripts": {
"prepublishOnly": "makers build"
},
"devDependencies": {
"@holllo/test": "^0.2.1",
"trash-cli": "^5.0.0",