ProjectLayout beta
Interface of @v12-engine/editor/vite
export interface ProjectLayoutA project's layout, worked out: every path whole
Members
code
code: string;The folder of the project's code, searched for what uses an asset: src under the root by default
gameFolder
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
games: string;The folder of the games, and of one game
public
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
root: string;The project's root folder, as an absolute path
scaffold
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
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
sources: string[];The folders searched for where something is defined (Alt+click in the editor); the games' folder when left out