Skip to content

ProjectLayout beta ​

Interface of @v12-engine/editor/vite

ts
export interface ProjectLayout

A project's layout, worked out: every path whole

Members ​

code ​

ts
code: string;

The folder of the project's code, searched for what uses an asset: src under the root by default

gameFolder ​

ts
gameFolder(game: string): string;

The folder of one game by its id: the project's gameFolder option when it gives one, else a folder of that id under games

games ​

ts
games: string;

The folder of the games, and of one game

public ​

ts
public: string;

The folder whose files are served as they are, where a game's own assets go: public under the root by default

root ​

ts
root: string;

The project's root folder, as an absolute path

scaffold ​

ts
scaffold?(game: string): string[];

The folders a game's new code may be written into: none where this says none or is not there

scenarios ​

ts
scenarios: string;

Where scenarios saved from the editor go, each game in a folder of its id: tests/scenarios under the root by default

sources ​

ts
sources: string[];

The folders searched for where something is defined (Alt+click in the editor); the games' folder when left out