elchemy icon indicating copy to clipboard operation
elchemy copied to clipboard

Add one step generator for new projects

Open wende opened this issue 7 years ago • 8 comments

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

wende avatar May 22 '17 11:05 wende

I technically could do that.

Hajto avatar Jul 01 '17 08:07 Hajto

Shouldn't files be named after project name or something? What contents should those files have?

Hajto avatar Jul 06 '17 11:07 Hajto

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 avatar Jul 06 '17 12:07 wende

@wende Do you still want to store files under Elm directory after name change?

Hajto avatar Jul 22 '17 11:07 Hajto

@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

Hajto avatar Jul 22 '17 11:07 Hajto

Also help needs to be written.

Hajto avatar Jul 22 '17 11:07 Hajto

@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

wende avatar Jul 22 '17 12:07 wende

@Baransu Let me know when you're feeling like picking up this issue

wende avatar Oct 15 '17 21:10 wende