Home Reference Source Repository

References

Function Summary

Static Public Function Summary
public

Adds a trailing slashes to a path.

public

clean(path: string): Promise

Cleans a directory

public

createBuilder(target: string, rocBuilder: rocBuilder, resolver: string): rocBuilder

Creates a builder.

public

createServer(options: rocServerOptions, beforeUserMiddlewares: Function[]): rocServer

Creates a server instance.

public

getBuilder(debug: boolean, target: string, createBuilders: function | array | object, extensionCreateBuilders: object | array): rocBuilder

Gets the final rocBuilder object..

public

getDevPath(relativeBuildPath: string): string

Returns the current dev path.

public

Returns the current dev port.

public

Returns the current port.

public

getResolvePath(resolvePaths: ...string): string

Used on the server to find all dependecies.

public

listSettings(rocCommandObject: object)

List the settings that are possible with the current extensions.

public

markdownSettings(rocCommandObject: object)

List the settings that are possible with the current extensions in a markdown format.

public

middlewares(config: object): array

Returns the middlewares to be used

public

Removes possible trailing slashes from a path.

public

runBuild(rocCommandObject: object): Promise

Build runner.

public

runDev(rocCommandObject: object)

Development runner.

public

start(rocCommandObject: object)

Starts a Roc application.

public

watchClient(compiler: object): Promise

Client watcher.

public

watchServer(compiler: object): Promise

Server watcher.

Variable Summary

Static Public Variable Summary
public

Gives the base configuration.

public

Exports the default roc.config.js.

public

Exports the roc.config.meta.js.

public

Gives the meta configuration.

Typedef Summary

Static Public Typedef Summary
public

Output path object.

public

Roc builder object.

public

Roc server.

public

Roc server options.

public

Starts a server.