UNPKG

1.17 kBTypeScriptView Raw
1import { PackageJson } from 'mrm-core';
2import { AppEnvironments } from '@ioc:Adonis/Core/Application';
3/**
4 * Shape of the template node
5 */
6export declare type TemplateNode = {
7 src: string;
8 dest: string;
9 data?: any;
10 mustache?: boolean;
11} | string;
12/**
13 * Shape of the package instructions node
14 */
15export declare type PackageInstructionsBlock = {
16 instructions?: string;
17 instructionsMd?: string;
18 templates?: {
19 basePath?: string;
20 } & {
21 [templateFor: string]: TemplateNode | TemplateNode[];
22 };
23 env?: {
24 [key: string]: string;
25 };
26 preloads?: (string | {
27 file: string;
28 environment?: AppEnvironments[];
29 optional?: boolean;
30 })[];
31 metaFiles?: (string | {
32 pattern: string;
33 reloadServer?: boolean;
34 })[];
35 types?: string;
36 commands?: string[];
37 providers?: string[];
38 aliases?: {
39 [key: string]: string;
40 };
41 aceProviders?: string[];
42 testProviders?: string[];
43};
44/**
45 * Shape of the package file along with the adonisjs
46 * block
47 */
48export declare type PackageFile = PackageJson & {
49 adonisjs: PackageInstructionsBlock;
50};