Skip to content

ProjectFacts beta ​

Interface of @v12-engine/editor

ts
export interface ProjectFacts

What the Project panel says of a project, as its files say it (Project.facts)

Members ​

app ​

ts
app?: CodePlace;

Where it starts its app (startApp)

desktop ​

ts
desktop?: string;

The folder of its desktop app's shell (Electron's main process, electron/), where it has one

entries ​

ts
entries: (CodePlace & {
        entry: string;
        files: number;
    })[];

The library's entries its code imports, each with how many files do and the first

file ​

ts
file?: string;

Its package.json, where it has one

layers ​

ts
layers: string[];

The layers of npm create @v12-engine that can be told from what they leave: editor, server, rooms, tests, assets, desktop, source

library ​

ts
library: (CodePlace & {
        name: string;
        wanted: string;
        installed?: string;
    })[];

The packages of the library it depends on: what it asks for, and what is installed

name ​

ts
name?: string;

The project's name, as its package.json says

node ​

ts
node: {
        running: string;
        wanted?: string;
        file?: string;
    };

The Node the dev server runs on, and the one asked for (.nvmrc, or engines)

scripts ​

ts
scripts: (CodePlace & {
        name: string;
        command: string;
    })[];

The scripts of the project's package.json, each with its name, command and place

servers ​

ts
servers: (Partial<CodePlace> & {
        script?: string;
        command?: string;
    })[];

Its scripts named for a server, and the files of its code that start one

version ​

ts
version?: string;

The project's version, as its package.json says

workspaces ​

ts
workspaces?: CodePlace & {
        patterns: string[];
    };

The workspaces of its package.json, or of the repository it is in