SPAConfig

class SPAConfig(var defaultPage: String = "index.html", var applicationRoute: String = "/", var filesPath: String = "", var useResources: Boolean = false, ignoredFiles: MutableList<(String) -> Boolean> = mutableListOf())

Configuration for the Route.singlePageApplication plugin.

Constructors

Link copied to clipboard
constructor(defaultPage: String = "index.html", applicationRoute: String = "/", filesPath: String = "", useResources: Boolean = false, ignoredFiles: MutableList<(String) -> Boolean> = mutableListOf())

Properties

Link copied to clipboard

The URL path under which the content should be served

Link copied to clipboard

The default name of a file or resource to serve when path inside applicationRoute is requested

Link copied to clipboard

The path under which the static content is located. Corresponds to the folder path if the useResources is false, a resource path otherwise

Link copied to clipboard

Specifies if static content is a resource package with true or folder with false

Functions

Link copied to clipboard
fun SPAConfig.angular(filesPath: String)

Creates an application configuration for the Angular project. Resources will be shared from the filesPath directory. The root file is index.html

Link copied to clipboard
fun SPAConfig.backbone(filesPath: String)

Creates an application configuration for the Backbone project. Resources will be shared from the filesPath directory. The root file is index.html

Link copied to clipboard
fun SPAConfig.ember(filesPath: String)

Creates an application configuration for the Ember project. Resources will be shared from the filesPath directory. The root file is index.html

Link copied to clipboard
fun SPAConfig.ignoreFiles(block: (path: String) -> Boolean)

Registers a block in ignoredFiles returns true if path should be ignored.

Link copied to clipboard
fun SPAConfig.react(filesPath: String)

Creates an application configuration for the React project. Resources will be shared from the filesPath directory. The root file is index.html

Link copied to clipboard
fun SPAConfig.vue(filesPath: String)

Creates an application configuration for the Vue project. Resources will be shared from the filesPath directory. The root file is index.html