JSPM CLI
    Preparing search index...

    Interface ServeFlags

    Flags for the serve command to start a development server.

    Used by the jspm serve command to run a local development server with live reloading and TypeScript support.

    interface ServeFlags {
        map?: string;
        conditions?: string | string[];
        resolution?: string | string[];
        provider?: string;
        cache?: string;
        root?: string;
        installMode?: "default" | "latest-primaries" | "latest-all" | "freeze";
        compact?: boolean;
        stdout?: boolean;
        out?: string;
        flattenScopes?: boolean;
        combineSubpaths?: boolean;
        preload?: string | boolean;
        integrity?: boolean;
        quiet?: boolean;
        showVersion?: boolean;
        dir?: string;
        disableWarning?: string | string[];
        port?: number;
        typeStripping?: boolean;
        static?: boolean;
        install?: boolean;
    }

    Hierarchy

    Index

    Properties

    map?: string

    File containing initial import map (defaults to importmap.json, supports .js with embedded JSON, or HTML with inline import map)

    conditions?: string | string[]

    Comma-separated environment condition overrides or array of conditions (defaults to ['browser', 'development', 'module'] in normal mode, or ['browser', 'production', 'module'] in production mode)

    resolution?: string | string[]

    Comma-separated dependency resolution overrides or array of resolutions (no default, used to override specific package versions)

    provider?: string

    Default module provider to use (e.g., 'jspm.io', 'unpkg', 'jsdelivr', etc.) (defaults to user's configured defaultProvider or 'jspm.io')

    cache?: string

    Cache mode for fetches (defaults to 'online', accepts 'online', 'offline', 'no-cache')

    root?: string

    URL to treat as server root for rebasing import maps (defaults to current directory)

    installMode?: "default" | "latest-primaries" | "latest-all" | "freeze"

    Install mode for resolving dependencies (defaults to 'default')

    compact?: boolean

    Output a compact import map (defaults to false, true for production)

    stdout?: boolean

    Output the import map to stdout (defaults to false)

    out?: string

    File to inject the final import map into (defaults to value of --map or importmap.js)

    flattenScopes?: boolean

    Flatten import map scopes into smaller single top-level scope per origin (defaults to false, true for production)

    combineSubpaths?: boolean

    Combine import map subpaths under folder maps (defaults to false, true for production)

    preload?: string | boolean

    Add module preloads to HTML output (defaults to undefined, accepts 'static', 'dynamic')

    integrity?: boolean

    Add module integrity attributes to the import map (defaults to false)

    quiet?: boolean

    Suppress non-essential output (defaults to false)

    showVersion?: boolean

    Display version information (defaults to false)

    dir?: string

    Directory to operate in (defaults to current working directory)

    disableWarning?: string | string[]

    Comma-separated list of warnings to disable (e.g., 'file-count')

    port?: number

    Port to run the server on (defaults to 5776)

    typeStripping?: boolean

    Enable/disable TypeScript type stripping (defaults to true)

    static?: boolean

    Disable file watching, auto installs and hot reloading (defaults to false)

    install?: boolean

    Enable/disable automatic import map installs in watch mode (defaults to true)