a build tool that inspired from Magefile, for Deno
Dukefile can be installed by Deno install tool easily
deno install --allow-read https://deno.land/x/dukefile/bin/duke.ts
Firstly, create dukefile.ts
on root of the application.
running for a spesified task:
duke <task name>
or only duke
for running default
task
duke
export function hello(){
console.log("Hello Task");
}
export function echo(args : string[]){
console.log("Echo Task with",s);
}
export default function(){
console.log("Default Task");
}
export const build = {
linux() {
console.log("build::linux task");
}
}
duke hello
# prints: Hello Task
duke echo hal
# prints: Echo Task with hal
duke build::linux #or build:linux
#prints: build::linux task
duke
# prints: Default Task