Skip to content

elm make "--docs" flag doesn't do anything #1835

Closed
@QuinnFreedman

Description

@QuinnFreedman

From what I understand, putting --docs=docs.json in the elm make CLI should save a json version of my module's docs, but using that flag doesn't seem to have any effect.

SSCCE:

$ elm init
-- src/Main.elm
module Main exposing (main)

{-| Main module

# Main

@docs main
}

import Html exposing (text)

{-| main function
-}
main=
    text "Hello"
$ elm make src/Main.elm --docs=docs.json

> Nothing happens (the module compiles but there are no new json files anywhere)

Did the way you do doc comments change in 0.19? Am I using the CLI wrong somehow? Or is this a bug? I have reproduced it on two different systems (Windows 10 and macOS) with Elm 0.19.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions