Skip to content

Commit

Permalink
Merge pull request #456 from miniBill/generator-cleanup
Browse files Browse the repository at this point in the history
Generator cleanup
  • Loading branch information
dillonkearns authored Apr 25, 2024
2 parents 7851061 + 3ad8f74 commit f27ca58
Show file tree
Hide file tree
Showing 12 changed files with 510 additions and 822 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "examples/todos/send-grid"]
path = examples/todos/send-grid
url = https://github.com/MartinSStewart/send-grid
[submodule "codegen/elm-codegen"]
path = codegen/elm-codegen
url = https://github.com/dillonkearns/elm-codegen
1,294 changes: 491 additions & 803 deletions codegen/GenerateMain.elm

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion codegen/elm-codegen
Submodule elm-codegen deleted from 5576e9
3 changes: 2 additions & 1 deletion codegen/elm.codegen.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"elm/browser": "1.0.2"
},
"local": [
"src/"
"src/",
"generator/template/app/"
]
}
}
4 changes: 2 additions & 2 deletions codegen/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"type": "application",
"source-directories": [
".",
"../src/",
"elm-codegen/src"
"../src/"
],
"elm-version": "0.19.1",
"dependencies": {
Expand All @@ -13,6 +12,7 @@
"elm/html": "1.0.0",
"elm/json": "1.1.3",
"elm/regex": "1.0.0",
"mdgriffith/elm-codegen": "4.2.1",
"rtfeldman/elm-hex": "1.0.0",
"stil4m/elm-syntax": "7.2.9",
"the-sett/elm-pretty-printer": "3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/base-path/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/escaping/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions examples/routing/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"elm-community/list-extra": "8.7.0",
"jluckyiv/elm-utc-date-strings": "1.0.0",
"justinmimbs/date": "4.0.1",
"lamdera/codecs": "1.0.0",
"lamdera/core": "1.0.0",
"matheus23/elm-default-tailwind-modules": "4.0.1",
"mdgriffith/elm-codegen": "4.1.1",
"miniBill/elm-codec": "2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/routing/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@types/node": "^20.10.7",
"@types/serve-static": "^1.15.5",
"cypress": "^13.6.2",
"elm-codegen": "0.3.0",
"elm-codegen": "^0.5.2",
"elm-optimize-level-2": "^0.3.5",
"elm-review": "^2.10.3",
"elm-test": "^0.19.1-revision12",
Expand Down
9 changes: 5 additions & 4 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
set -ex;
yes | lamdera reset || true
npx elm-test-rs
(cd examples/routing && yes | lamdera reset || true && npm i && npm run build && npx elm-test-rs)
(cd generator/dead-code-review && npx elm-test-rs)
(cd generator/review && npx elm-test-rs)
npm run build:generator
npx elm-test-rs --compiler lamdera
(cd examples/routing && yes | lamdera reset || true && npm i && npm run build && npx elm-test-rs --compiler lamdera)
(cd generator/dead-code-review && npx elm-test-rs --compiler lamdera)
(cd generator/review && npx elm-test-rs --compiler lamdera)
npm run test:snapshot
npx elmi-to-json --version
elm-verify-examples --run-tests --elm-test-args '--compiler=lamdera'
Expand Down

0 comments on commit f27ca58

Please sign in to comment.