Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

ConfigSource

interfaz

Una fuente de páginas y autoimports del proyecto: la aplicación, un layer de layers (o extends) o, con kind: "module", un layer que aportan los módulos: el que añade un módulo con meeko.addLayer o una carpeta con app/pages listada en modules. La devuelve resolveConfigSources.

ts
import type { ConfigSource } from "@meekojs/meeko/build";

Source code src/framework/config.ts:41

Declaración #

ts
interface ConfigSource {
	readonly name: string
	readonly root: string
	readonly kind: 'app' | 'layer' | 'module'
}

Example #

ts
import { resolveConfigSources } from "@meekojs/meeko/build";

for (const source of await resolveConfigSources(process.cwd())) {
  console.log(source.kind, source.name, source.root); // "app" "app" "/ruta/al/proyecto"
}

Propiedades #

name #

propiedad sólo lectura

readonly name: string

Nombre en los diagnósticos: "app" o el nombre de la carpeta del layer o módulo.

root #

propiedad sólo lectura

readonly root: string

Carpeta absoluta de la fuente, que contiene app/pages.

kind #

propiedad sólo lectura

readonly kind: 'app' | 'layer' | 'module'

Tipo de fuente: "layer" para layers y extends, "module" para las que aportan los módulos.

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/framework/config.ts