-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] 117 generator #144
[WIP] 117 generator #144
Conversation
I'd appreciate some tests checking if generation works properly |
installer/.gitignore
Outdated
# variables. | ||
/config/prod.secret.exs | ||
|
||
# -*- mode: gitignore; -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something went wrong here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What exactly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know Emacs mode should be at the first line to work properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:/ As far as I can remember its fresh elixir generated gitignor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine but it'd make a use of some cleaning. Too many commented out lines and generally test-code
"exposed-modules": [], | ||
"dependencies": { | ||
"elm-lang/core": "5.1.1 <= v < 6.0.0", | ||
"wende/elmchemy-core": "1.0.0 <= v < 2.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the correct one is "wende/elchemy-core": "0.0.0 <= v < 1.0.0"
But probably it'd be better to copy it entirely from the current /templates/elm-package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -0,0 +1,5 @@ | |||
defmodule CharacterTest do | |||
use ExUnit.Case | |||
use Elmchemy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good template for testing would be
defmodule <%= app_module %>Test do
use ExUnit.Case
use Elchemy
doctest <%= app_module %>
typetest <%= app_module %>
test do
assert <%= app_module %>.hello == "world"
end
end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@baransu Go ahead, I am dead out of time to work on it. I will be gratefull! |
Closing the PR till somebody picks it up |
One step generator based on the one that phoenix have.
[WIP] - Please don't touch since a lot of things will chagne
/Edit wende: Closes #117