Skip to content
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

Add one step generator for new projects #117

Open
wende opened this issue May 22, 2017 · 8 comments
Open

Add one step generator for new projects #117

wende opened this issue May 22, 2017 · 8 comments

Comments

@wende
Copy link
Owner

wende commented May 22, 2017

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
@Hajto
Copy link
Collaborator

Hajto commented Jul 1, 2017

I technically could do that.

@Hajto Hajto self-assigned this Jul 1, 2017
@Hajto Hajto added this to the Elmchemy 1.0.0 - Meta release milestone Jul 1, 2017
@wende wende modified the milestones: Elmchemy 0.4.0, Elmchemy 1.0.0 - Meta release Jul 1, 2017
@Hajto
Copy link
Collaborator

Hajto commented Jul 6, 2017

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

@wende
Copy link
Owner Author

wende commented Jul 6, 2017

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

@Hajto
Copy link
Collaborator

Hajto commented Jul 22, 2017

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

@Hajto
Copy link
Collaborator

Hajto commented Jul 22, 2017

@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
Copy link
Collaborator

Hajto commented Jul 22, 2017

Also help needs to be written.

@wende
Copy link
Owner Author

wende commented Jul 22, 2017

@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 wende modified the milestones: Elmchemy 0.4.0, Elchemy 0.5 Oct 15, 2017
@wende
Copy link
Owner Author

wende commented Oct 15, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants