@gxcloud/fuze
v0.0.2
Published
A TypeScript build tool inspired by Jake.
Downloads
124
Readme
@gxcloud/fuze
@gxcloud/fuze allows you to write tasks using TypeScript similar to Jake. You just need to put a build.config.ts
file into your project's root.
// build.config.ts
task("build", (args) => {
...
});
task("lint", (args) => {
...
});
Installation
You can install this package with any package manager of your choice.
npm install -D @gxcloud/fuze
Then you have to create a build.config.ts
file which is just an ordinary TypeScript file without a custom config object.
Usage
To describe your task you have two distinct methods task
and taskSequence
.
import { task, taskSequence } from "@gxcloud/fuze/util";
import esbuild from "esbuild";
task("build", (args) => {
if(!args.arch) throw new Error("you haven't specified an arch");
});
taskSequence("prepare", [
(args) => console.log(args),
(args) => esbuild.buildSync(),
]);