Documentation
    Preparing search index...

    Subset of properties assembler needs from the "adonisrc.ts" file. Contains configuration for file watching, hooks, and test suites.

    const rcFile: AssemblerRcFile = {
    metaFiles: [
    { pattern: 'config/**', reloadServer: true }
    ],
    hooks: {
    devServerStarted: [() => import('./hooks/server_started')]
    },
    suites: [
    { name: 'unit', files: ['tests/unit/**/*.spec.ts'] }
    ]
    }
    type AssemblerRcFile = {
        metaFiles?: { pattern: string; reloadServer: boolean }[];
        hooks?: Partial<
            CommonHooks & WatcherHooks & DevServerHooks & BundlerHooks & TestRunnerHooks & RouterHooks,
        >;
        suites?: { name: string; files: string
        | string[] }[];
    }
    Index

    Properties

    metaFiles?: { pattern: string; reloadServer: boolean }[]

    An array of metaFiles glob patterns to watch for changes

    Type Declaration

    • pattern: string

      Glob pattern to match files

    • reloadServer: boolean

      Whether to reload server when these files change

    Hooks to execute at different stages of development and build processes

    suites?: { name: string; files: string | string[] }[]

    An array of test suites configuration

    Type Declaration

    • name: string

      Name of the test suite

    • files: string | string[]

      Glob pattern(s) for test files in this suite