Skip to content

ahmetcanozcan/dukefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dukefile

a build tool that inspired from Magefile, for Deno


Installation

Dukefile can be installed by Deno install tool easily

deno install --allow-read https://deno.land/x/dukefile/bin/duke.ts

Usage

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

Example dukefile.ts

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published