Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions cli/elm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"type": "application",
"source-directories": [
"src",
"../src",
"../codegen"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"dillonkearns/elm-cli-options-parser": "3.2.0",
"dillonkearns/elm-pages": "10.2.2",
"elm/bytes": "1.0.8",
"elm/core": "1.0.5",
"elm/json": "1.1.3",
"elm/regex": "1.0.0",
"elm/url": "1.0.0",
"elmcraft/core-extra": "2.2.0",
"json-tools/json-schema": "1.0.2",
"json-tools/json-value": "1.0.1",
"mdgriffith/elm-codegen": "5.2.0",
"miniBill/elm-fast-dict": "1.2.4",
"myrho/yaml": "1.0.0",
"turboMaCk/non-empty-list-alias": "1.4.0",
"wolfadex/elm-ansi": "3.0.0",
"wolfadex/elm-open-api": "2.0.0"
},
"indirect": {
"Chadtech/elm-bool-extra": "2.4.2",
"NoRedInk/elm-json-decode-pipeline": "1.0.1",
"avh4/elm-color": "1.0.0",
"danfishgold/base64-bytes": "1.1.0",
"danyx23/elm-mimetype": "4.0.1",
"dillonkearns/elm-bcp47-language-tag": "2.0.0",
"dillonkearns/elm-date-or-date-time": "2.0.0",
"dillonkearns/elm-form": "3.0.1",
"dividat/elm-semver": "2.0.0",
"elm/browser": "1.0.2",
"elm/file": "1.0.5",
"elm/html": "1.0.0",
"elm/http": "2.0.0",
"elm/parser": "1.1.0",
"elm/random": "1.0.0",
"elm/time": "1.0.0",
"elm/virtual-dom": "1.0.4",
"elm-community/basics-extra": "4.1.0",
"elm-community/json-extra": "4.3.0",
"elm-community/list-extra": "8.7.0",
"elm-community/maybe-extra": "5.3.0",
"fredcy/elm-parseint": "2.0.1",
"jluckyiv/elm-utc-date-strings": "1.0.0",
"justinmimbs/date": "4.1.0",
"miniBill/elm-codec": "2.3.0",
"miniBill/elm-unicode": "1.1.1",
"myrho/elm-parser-extras": "1.0.1",
"noahzgordon/elm-color-extra": "1.0.2",
"robinheghan/fnv1a": "1.0.0",
"robinheghan/murmur3": "1.0.0",
"rtfeldman/elm-css": "18.0.0",
"rtfeldman/elm-hex": "1.0.0",
"rtfeldman/elm-iso8601-date-strings": "1.1.4",
"stil4m/elm-syntax": "7.3.9",
"stil4m/structured-writer": "1.0.3",
"the-sett/elm-pretty-printer": "3.1.2",
"the-sett/elm-syntax-dsl": "6.0.3",
"zwilias/elm-utf-tools": "2.0.1"
}
},
"test-dependencies": {
"direct": {},
"indirect": {}
}
}
File renamed without changes.
1 change: 0 additions & 1 deletion cli/src/TestGenScript.elm
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,4 @@ run =
, Pages.Script.exec "sh"
[ "-c", "cd example && npx --no -- elm make src/Example.elm --output=/dev/null" ]
]
|> BackendTask.inDir "cli"
)
90 changes: 21 additions & 69 deletions elm.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,28 @@
{
"type": "application",
"source-directories": [
"src",
"codegen",
"cli/src"
"type": "package",
"name": "wolfadex/elm-open-api-cli",
"summary": "A CLI tool for generating Elm modules from Open API specs. ",
"license": "MIT",
"version": "1.0.0",
"exposed-modules": [
"OpenApi.Config",
"OpenApi.Generate"
],
"elm-version": "0.19.1",
"elm-version": "0.19.0 <= v < 0.20.0",
"dependencies": {
"direct": {
"dillonkearns/elm-cli-options-parser": "3.2.0",
"dillonkearns/elm-pages": "10.2.0",
"elm/core": "1.0.5",
"elm/json": "1.1.3",
"elm/regex": "1.0.0",
"elm/url": "1.0.0",
"elmcraft/core-extra": "2.1.0",
"json-tools/json-schema": "1.0.2",
"json-tools/json-value": "1.0.1",
"mdgriffith/elm-codegen": "5.2.0",
"miniBill/elm-fast-dict": "1.2.1",
"myrho/yaml": "1.0.0",
"turboMaCk/non-empty-list-alias": "1.4.0",
"wolfadex/elm-ansi": "3.0.0",
"wolfadex/elm-open-api": "2.0.0"
},
"indirect": {
"Chadtech/elm-bool-extra": "2.4.2",
"NoRedInk/elm-json-decode-pipeline": "1.0.1",
"avh4/elm-color": "1.0.0",
"danfishgold/base64-bytes": "1.1.0",
"danyx23/elm-mimetype": "4.0.1",
"dillonkearns/elm-bcp47-language-tag": "2.0.0",
"dillonkearns/elm-date-or-date-time": "2.0.0",
"dillonkearns/elm-form": "3.0.1",
"dividat/elm-semver": "2.0.0",
"elm/browser": "1.0.2",
"elm/bytes": "1.0.8",
"elm/file": "1.0.5",
"elm/html": "1.0.0",
"elm/http": "2.0.0",
"elm/parser": "1.1.0",
"elm/random": "1.0.0",
"elm/time": "1.0.0",
"elm/virtual-dom": "1.0.3",
"elm-community/basics-extra": "4.1.0",
"elm-community/json-extra": "4.3.0",
"elm-community/list-extra": "8.7.0",
"elm-community/maybe-extra": "5.3.0",
"fredcy/elm-parseint": "2.0.1",
"jluckyiv/elm-utc-date-strings": "1.0.0",
"justinmimbs/date": "4.1.0",
"miniBill/elm-codec": "2.2.0",
"miniBill/elm-unicode": "1.1.1",
"myrho/elm-parser-extras": "1.0.1",
"noahzgordon/elm-color-extra": "1.0.2",
"robinheghan/fnv1a": "1.0.0",
"robinheghan/murmur3": "1.0.0",
"rtfeldman/elm-css": "18.0.0",
"rtfeldman/elm-hex": "1.0.0",
"rtfeldman/elm-iso8601-date-strings": "1.1.4",
"stil4m/elm-syntax": "7.3.8",
"stil4m/structured-writer": "1.0.3",
"the-sett/elm-pretty-printer": "3.1.0",
"the-sett/elm-syntax-dsl": "6.0.3",
"zwilias/elm-utf-tools": "2.0.1"
}
"elm/core": "1.0.0 <= v < 2.0.0",
"elm/json": "1.1.3 <= v < 2.0.0",
"elm/regex": "1.0.0 <= v < 2.0.0",
"elm/url": "1.0.0 <= v < 2.0.0",
"elmcraft/core-extra": "2.2.0 <= v < 3.0.0",
"json-tools/json-schema": "1.0.0 <= v < 2.0.0",
"mdgriffith/elm-codegen": "5.2.0 <= v < 6.0.0",
"miniBill/elm-fast-dict": "1.2.0 <= v < 2.0.0",
"turboMaCk/non-empty-list-alias": "1.4.0 <= v < 2.0.0",
"wolfadex/elm-open-api": "2.0.0 <= v < 3.0.0"
},
"test-dependencies": {
"direct": {
"elm-explorations/test": "2.2.0",
"miniBill/elm-unicode": "1.1.1"
},
"indirect": {}
"elm-explorations/test": "2.2.0 <= v < 3.0.0",
"miniBill/elm-unicode": "1.1.1 <= v < 2.0.0"
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
"bin": "dist/elm-open-api.js",
"type": "module",
"scripts": {
"dev": "elm-pages run src/Cli.elm",
"build": "elm-pages bundle-script src/Cli.elm --output dist/elm-open-api.js --debug",
"dev": "cd cli && elm-pages run src/Cli.elm",
"docs": "elm make --docs=docs.json",
"build": "cd cli && elm-pages bundle-script src/Cli.elm --output ../dist/elm-open-api.js --debug",
"review": "elm-review",
"review:watch": "elm-review --watch --fix",
"format": "elm-format src tests --validate",
"test": "elm-test",
"test:gen": "elm-pages run cli/src/TestGenScript.elm",
"test:gen": "cd cli && elm-pages run src/TestGenScript.elm",
"test:watch": "elm-test --watch",
"pub": "npm run build && npm publish"
},
Expand Down
5 changes: 3 additions & 2 deletions review/src/ReviewConfig.elm
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ exceptCodegenRules =
, NoExposingEverything.rule
, NoImportingEverything.rule []
, NoMissingTypeAnnotation.rule
|> Rule.ignoreErrorsForDirectories [ "src/Gen" ]
, NoMissingTypeAnnotationInLetIn.rule
, NoMissingTypeExpose.rule
, NoSimpleLetBody.rule
Expand All @@ -73,9 +74,9 @@ includingCodegenRules : List Rule
includingCodegenRules =
[ NoUnused.Exports.rule
|> Rule.ignoreErrorsForFiles
[ "src/Cli.elm"
[ "cli/src/Cli.elm"
, "src/OpenApi/Config.elm"
, "src/TestGenScript.elm"
, "cli/src/TestGenScript.elm"
]
, NoUnused.Variables.rule
]
9 changes: 9 additions & 0 deletions review/suppressed/Docs.NoMissing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": 1,
"automatically created by": "elm-review suppress",
"learn more": "elm-review suppress --help",
"suppressions": [
{ "count": 33, "filePath": "src/OpenApi/Config.elm" },
{ "count": 6, "filePath": "src/OpenApi/Generate.elm" }
]
}
14 changes: 14 additions & 0 deletions review/suppressed/Docs.ReviewAtDocs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 1,
"automatically created by": "elm-review suppress",
"learn more": "elm-review suppress --help",
"suppressions": [
{ "count": 3, "filePath": "src/Gen/BackendTask/Http.elm" },
{ "count": 3, "filePath": "src/Gen/Dict.elm" },
{ "count": 3, "filePath": "src/Gen/Http.elm" },
{ "count": 3, "filePath": "src/Gen/Result.elm" },
{ "count": 2, "filePath": "src/Gen/BackendTask.elm" },
{ "count": 2, "filePath": "src/Gen/List.elm" },
{ "count": 2, "filePath": "src/Gen/Task.elm" }
]
}
9 changes: 9 additions & 0 deletions review/suppressed/NoMissingTypeExpose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": 1,
"automatically created by": "elm-review suppress",
"learn more": "elm-review suppress --help",
"suppressions": [
{ "count": 4, "filePath": "src/OpenApi/Config.elm" },
{ "count": 1, "filePath": "src/OpenApi/Generate.elm" }
]
}
3 changes: 2 additions & 1 deletion review/suppressed/NoUnused.Exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"automatically created by": "elm-review suppress",
"learn more": "elm-review suppress --help",
"suppressions": [
{ "count": 1, "filePath": "cli/src/TestGenScript.elm" }
{ "count": 1, "filePath": "src/BackendTask/Extra.elm" },
{ "count": 1, "filePath": "src/OpenApi/Common/Internal.elm" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading