Add the cargo-make configuration.
This commit is contained in:
parent
f6ffc0182d
commit
f26b4dd09e
|
@ -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"]
|
|
@ -8,6 +8,9 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.bauke.xyz/Holllo/migration-helper"
|
"url": "https://git.bauke.xyz/Holllo/migration-helper"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"prepublishOnly": "makers build"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@holllo/test": "^0.2.1",
|
"@holllo/test": "^0.2.1",
|
||||||
"trash-cli": "^5.0.0",
|
"trash-cli": "^5.0.0",
|
||||||
|
|
Loading…
Reference in New Issue