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

Generate files in package-name directory #26

Closed
fujimura opened this issue Jan 13, 2014 · 3 comments
Closed

Generate files in package-name directory #26

fujimura opened this issue Jan 13, 2014 · 3 comments
Labels
Milestone

Comments

@fujimura
Copy link
Owner

Currently it's accomplished by having packageName in template. But, it seems to be a bit tricky way and there's no reason to not do it by the library itself.

To archive this, it's inevitable to change directory structure of templates. This will cause some unexpected behaviour for old hi users. Obviously it's a downside but this change will benefit further development of this library.

@tfausak
Copy link

tfausak commented Mar 6, 2014

I would like it if hi only generated files in the package-name directory of the template repository. That way the template repository can have it's metadata (README.md, .gitignore, etc.) totally separate.

Assuming you had a template repository laid out like this:

+ template-repository
  - README.md
  + package-name
    - README.md.template

Running hi against that repository creates files that I wouldn't expect.

$ hi -m Foo.Bar
# Actual
    create  README.md
    create  foo-bar/README.md
# Expected
    create  foo-bar/README.md

@fujimura
Copy link
Owner Author

fujimura commented Jan 1, 2015

Fixed in 1.0.0.

@fujimura fujimura closed this as completed Jan 1, 2015
@tfausak
Copy link

tfausak commented Jan 1, 2015

👍 Thank you!

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

No branches or pull requests

2 participants