Skip to main content
Home

Built and signed on GitHub Actions

A lightweight development web server.

This package works with Deno
This package works with Deno
JSR Score
100%
Published
4 months ago (0.10.2)
class BuildHelper

Build helper.

Examples

Basic usage

const buildHelper = new BuildHelper();

const bundleOptions = {
  minify: true,
  externals: ['package', 'jsr:*', 'npm:*', 'https:*', './node_modules/*'],
};

const code = await buildHelper.bundle('src/main.ts', bundleOptions);

await buildHelper.bundleFile('src/main.ts', 'dist/main.bundle.js', bundleOptions);

await buildHelper.export('public', ['src/index.html', 'src/assets']);

Constructors

new
BuildHelper()

Creates a new instance of the BuildHelper class.

Methods

bundle(
entryPoint: string,
options?: Partial<BuildHelperBundleOptions>,
): Promise<string>

Bundles the scripts into a single package.

bundleFile(
entryPoint: string,
outFile: string,
options?: Partial<BuildHelperBundleOptions>,
): Promise<void>

Bundles the scripts into a single package and saves it as a file.

export(
outDirectory: string,
includes?: Array<string>,
): Promise<void>

Exports files and directories to the output directory.

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:@akiraohgaki/devsrv

Import symbol

import { BuildHelper } from "@akiraohgaki/devsrv";
or

Import directly with a jsr specifier

import { BuildHelper } from "jsr:@akiraohgaki/devsrv";