Home Reference Source
import Dum from 'dum/src/index.js'
public class | source

Dum

Static Method Summary

Static Public Methods
public static

new(packageDir: *): *

Creates a new Dum instance for the given package.

Method Summary

Public Methods
public

build()

Transforms inDir to outDir and copies bower.inDir to bower.outDir.

public

serve(): *

Serve the contents of the outDir.

public

watch()

Continually build in response to changes to the inDir.

Static Public Methods

public static new(packageDir: *): * source

Creates a new Dum instance for the given package. This loads options from the package.json there.

Params:

NameTypeAttributeDescription
packageDir *

Return:

*

Public Methods

public build() source

Transforms inDir to outDir and copies bower.inDir to bower.outDir.

public serve(): * source

Serve the contents of the outDir. Unlike dum serve, this does not build and watch.

Return:

*

An HttpServer

public watch() source

Continually build in response to changes to the inDir. There's currently no way to turn off the watching. If you know of a better watch module tell me!