1.0.2 • Published 3 years ago

@tanglesite/esbuild-taskrunner v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@tanglesite/esbuild-taskrunner

Great for small Projects

This taskrunner is not robust, it is meant for small projects; demos. To use esbuild-taskrunner all you need to do is install it from the npm registry.

  npm install @tanglesite/esbuild-taskrunner

Then inside a file of your choosing, instantiate the taskrunner object

const run = require("@tanglesite/esbuild-taskrunner");

(async function () {
  const result = await run({
    entryPoints: ["./src/index.ts", "./src/index.css"],
    incremental: true,
    outdir: "./dist",
    bundle: true,
    plugins: [],
    server: "./dist",
    globs: ["./src/*.ts", "./src/*.css"],
  });
})();

The output would look something like this:

EsBuild Taskrunner;