elchemy
elchemy copied to clipboard
Add one step generator for new projects
Add:
Example:
elmchemy new my_project
mix test
# 0
->
my_project/
├── elm-package.json
├── mix.exs
├── elm
├── Hello.elm
├── lib
├── Hello.ex
├── tests
├── hello_test.exs
I technically could do that.
Shouldn't files be named after project name or something? What contents should those files have?
They (elm/File.elm
, tests/file_test.exs
) could be parametrized to the name of the project.
The main idea is to cut the boilerplate and hopefully generate something self-explanatory code with benefits of learning all the essential basics with just a template
@wende Do you still want to store files under Elm directory after name change?
@wende Mix task is created and it does work. It needs more testing though. I have no idea how to put in production.
Sample usage. Go into installer and call:
mix elchemy.new erlang_style_name --location where_to_put_files
Also help needs to be written.
@wende Do you still want to store files under Elm directory after name change
That's a good question actually. I think it's worth leaving it as it is until we're using .elm
extension and Elm tooling
@Baransu Let me know when you're feeling like picking up this issue