@fringe3d/build
v0.0.1
Published
This is the compiler/builder for FRINGE game engine projects that packages components into one file. At least for now, it simply packages components, and does not truly build. Treat this as a placeholder.
Readme
@fringe3d/build
This is the compiler/builder for FRINGE game engine projects that packages components into one file. At least for now, it simply packages components, and does not truly build. Treat this as a placeholder.
Usage:
const builder = require('@fringe3d/build');
builder.build({
entrypoint: './index.js',
outfile: './out.js',
})To include an on completion callback function:
//Include a callback for once building has completed
const builder = require('@fringe3d/build');
builder.build({
entrypoint: './index.js',
outfile: './out.js',
}, function callback() {
console.log("Building complete.")
})Building directories:
To build a directory, it must contain a fringe.config file of the following format:
entrypoint: ./scene.js
outfile: ./bundle.jsAny valid node resolvable path will work in a fringe.config file.
Javascript api usage:
const builder = require('@fringe3d/build');
builder.buildDirectory() //current directory
builder.buildDirectory("./game") //specified directory
builder.buildDirectory("./games/testGame/", function done() {
console.log("Done building.")
}) //specified directory with callback