Skip to main content
Home
This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
94%
Published
a year ago (0.3.2)

Shake

A simple task runner/ dependency resolver for JavaScript.

Usage

import $ from 'jsr:@david/dax';
import { FileTask, Task, run, watch } from 'jsr:@tani/shake';

// File task will be run only if the file is missing or older than the dependencies
const hello = new FileTask("hello.out", [new FileTask("hello.c")], async () => {
  await $`gcc -o hello.out hello.c`;
});


// Task always will be run when it is called
const greet = new Task([hello], async () => {
  await $`./hello.out`;
});

// Run the task once
run(greet);

// Watch the task
// This will run the task when the file is changed
watch(".", greet);

License

MIT License

Copyright (c) 2024, Masaya Taniguchi

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@tani/shake

Import symbol

import * as shake from "@tani/shake";
or

Import directly with a jsr specifier

import * as shake from "jsr:@tani/shake";

Add Package

pnpm i jsr:@tani/shake
or (using pnpm 10.8 or older)
pnpm dlx jsr add @tani/shake

Import symbol

import * as shake from "@tani/shake";

Add Package

yarn add jsr:@tani/shake
or (using Yarn 4.8 or older)
yarn dlx jsr add @tani/shake

Import symbol

import * as shake from "@tani/shake";

Add Package

vlt install jsr:@tani/shake

Import symbol

import * as shake from "@tani/shake";

Add Package

npx jsr add @tani/shake

Import symbol

import * as shake from "@tani/shake";

Add Package

bunx jsr add @tani/shake

Import symbol

import * as shake from "@tani/shake";