Documentation
    Preparing search index...

    RcFileParser is responsible for parsing and validating the contents of adonisrc.js file. It normalizes configuration values, applies presets, validates structure, and merges user configuration with sensible defaults.

    Index

    Constructors

    Methods

    Constructors

    • Creates a new RcFileParser instance.

      Parameters

      • rcFile: Record<string, any>

        The raw RC file configuration object to parse and validate

      Returns RcFileParser

    Methods

    • Parses and validates the RC file configuration, applying all normalization and validation rules. This is the main entry point for processing RC file data.

      The parsing process:

      1. Applies any preset functions to modify the configuration
      2. Normalizes all configuration sections (preloads, providers, etc.)
      3. Validates the structure and values
      4. Merges with defaults to create the final configuration

      Returns RcFile