Registry / devops / dong-build

dong-build

JSON →
library0.4.5jsnpmunverified

dong-build is a build tool for view and static file processing, part of the dong ecosystem. Current version 0.4.5, with sporadic releases. It serves as a build helper for the dong framework, focusing on compiling views and handling static assets. Compared to full-featured bundlers like webpack or Vite, dong-build is minimal and tightly coupled with dong, making it suitable only within that ecosystem. The package is deprecated in favor of more modern tooling.

npm install dong-build
INSTALL
IMPORT
SIG · DONG-BUILD
D
dong-build
devopsjavascriptv0.4.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dongBuild
import dongBuild from 'dong-build';
const dongBuild = require('dong-build');
ESM-only. CommonJS require will not work.
build
import { build } from 'dong-build';
const { build } = require('dong-build');
Named export available. Ensure ESM.
type BuildOptions
import type { BuildOptions } from 'dong-build';
import { BuildOptions } from 'dong-build';
TypeScript type import only; not a runtime value.

Basic usage: import build function and call with configuration for views and static files.

import { build } from 'dong-build'; import { resolve } from 'path'; const root = resolve(process.cwd(), 'src'); const output = resolve(process.cwd(), 'dist'); build({ root, output, views: 'views/**/*.html', static: 'static/**/*' }).then(() => { console.log('Build complete'); }).catch(err => { console.error('Build failed', err); });
dong-build --version
Debug
Known issues
deprecatedPackage is deprecated and no longer maintained. Use modern bundlers like Vite or Webpack.
fix
Switch to Vite or Webpack.
affects: >=0.0.0
gotchaESM-only; requires Node.js >=12 or bundler support for ES modules.
fix
Use import syntax and ensure Node version or bundler supports ESM.
affects: >=0.4.0
breakingAPI changed between versions 0.3.x and 0.4.x; options object structure changed.
fix
Refer to documentation for 0.4.x API.
affects: >=0.4.0
Errors
Common errors & fixes
Cannot find module 'dong-build'
Package not installed or incorrect import path.
fix
Install with npm install dong-build@0.4.5
ERR_REQUIRE_ESM
Attempted to require() an ES module.
fix
Use import instead of require().
TypeError: build is not a function
Incorrect import: imported default instead of named export.
fix
Use import { build } from 'dong-build';
Upgrade
Version history
0.4.5latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
dong-build — npm install dong-build · libregistry