hoodiehq / discussion

General discussions and questions about Hoodie
7 stars 1 forks source link

[hoodie-boilerplate] different templates for new app's #22

Open zoepage opened 10 years ago

zoepage commented 10 years ago

The idea is to have several templates you can choose from when you create a new hoodie app in the cli.

hoodie new appName

which template would you like to get:
(1) my-first-hoodie
(2) boilerplate
(3) boilerplate with bootstrap
(4) boilerplate + OO-CSS + res. CSS

choose: 2

Later (maybe for 1.0.0., we could make custom builds). // @svnlto and I already talked about that.

Your thoughts?

svnlto commented 10 years ago

/cc @gr2m @caolan @janl

gr2m commented 10 years ago

I think this goes beyond our scope. I'd make the default app really really good and keep the way to use custom templates as we have today. But beyond that, I'd rather create yeoman generators, that appears to be the right tool for that in my opinion

svnlto commented 10 years ago

@gr2m assuming everybody's got the yo command installed. Which I don't for example.

janl commented 10 years ago

I like to have different examples, but I think hoodie new should be a single, minimal and tight first run experience.

But we can make the different templates more obvious. Maybe we can publish them on npm as well and then have a hoodie-app-template registry.

zoepage commented 10 years ago

@jan Would it make sense using hoodie new app -t "usr/repo" for that?

svnlto commented 10 years ago

Would it make sense using hoodie new app -t "usr/repo" for that?

It's how it'd work currently.

janl commented 10 years ago

yeah, we could make hoodie new app -t without an argument list the available ones or something

zoepage commented 10 years ago

that's what i was thinking about! :)

gr2m commented 10 years ago

+1 on hoodie new app -t listing selected templates

zoepage commented 10 years ago

we should also make sure it's documented somewhere. http://hood.ie/#installation maybe?

svnlto commented 10 years ago

I'd like to start documenting hoodie-cli's features in the projects readme, which would mean presenting the output of hoodie command -h nicely as people don't seem to know that they can use the -h command, event tho it's documented.

Meaning, I wouldn't necessarily put it on the website?

zoepage commented 10 years ago

It's the first place everybody is looking, when they make a installation for the first time. They should see at least that they can install different templates / how to get help. When you are familiar with things like Terminal / bash, you know -h, but now everybody does. We should help the users to help themselves

janl commented 10 years ago

Yeah I agree, this should at least have a teaser somewhere on the website.