Skip to content

How to build and run the main branch? #292

Open

Description

@myrho

I try to use this generator from the unreleased main branch but I can't make it.

git clone https://github.com/wolfadex/elm-open-api-cli
cd elm-open-api-cli
npm install
npm run build
node dist/elm-open-api.js openapi.json 

Result:

-- Invalid CLI arguments ---------------
Could not match arguments.

Usage:

TODO - show error message explaining that user needs to pass unmodified `process.argv` from node here. <entryFilePath> [--output-dir <OUTPUT_DIR>] [--module-name <MODULE_NAME>] [--effect-types <EFFECT_TYPES>] [--server <SERVER>] [--auto-convert-swagger <AUTO_CONVERT_SWAGGER>] [--swagger-conversion-url <SWAGGER_CONVERSION_URL>] [--swagger-conversion-command <SWAGGER_CONVERSION_COMMAND>] [--swagger-conversion-command-args <SWAGGER_CONVERSION_COMMAND_ARGS>]... [--generateTodos] [--overrides <OVERRIDES>]... [--write-merged-to <WRITE_MERGED_TO>] [--no-elm-format] [--keep-going]

Activity

  1. added
    bugSomething isn't working
    dependenciesPull requests that update a dependency file
    on Mar 25, 2026
  2. wolfadex commented on Mar 25, 2026

    @wolfadex
    Owner

    Thanks for the bug report. It turns out this is caused by mdgriffith/elm-optimize-level-2#120. Currently waiting on that and then a new elm-pages (npm package) release.

  3. markovejnovic commented on May 8, 2026

    @markovejnovic
    Contributor

    I have a small workaround in #305

  4. miniBill commented on May 12, 2026

    @miniBill
    Collaborator

    I've tried the newly released elm-optimize-level-2 but it seems to not change anything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesPull requests that update a dependency file

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions