aurelia / new

The Aurelia 2 scaffolding repo used by our tools to setup new projects.
MIT License
38 stars 18 forks source link

github ignore support #22

Closed xenoterracide closed 4 years ago

xenoterracide commented 4 years ago

would be really cool if the prompter could ask you if you want ignores from here https://github.com/github/gitignore, this is non critical to me just an idea.

3cp commented 4 years ago

What is "ignores from here"?

xenoterracide commented 4 years ago

"from here" is the link. I guess I should reorder my wording

3cp commented 4 years ago

I prefer to ship a default (and improved) .gitignore, instead of providing users too many options.

Right now, everything is minimum in this repo to keep it easy to maintain. PR is welcome to enhance the .gitignore.

3cp commented 4 years ago

Pls PR in to fill the gap of our gitignore. Pls don't create new question for end users to choose.

For those seems too much beyond the scope of this project, pls follow the guide in our gitignore file

# We recommend that you use a Global Gitignore for files that are not related
# to the project. (https://help.github.com/articles/ignoring-files/#create-a-global-gitignore)
xenoterracide commented 4 years ago

We recommend that you use a Global Gitignore for files that are not related

this is a good idea in theory... but do you have a global gitignore? I never have in the last... 12? years of using git.

new questions may or may not be right, maybe it'd be better to add all the OS ones by default, and node.

If later we add questions about IDEs/editors, then it would be good to add their templates dynamically.

3cp commented 4 years ago

I do have a global one. But I agree it's good idea to add all OS/node ones by default, unless it's too rare to common users. Feel free to PR in.

xenoterracide commented 4 years ago

My thought is to add it by fetching it from the github repo at runtime (presuming that is possible)

3cp commented 4 years ago

There is customise point https://makes.js.org/before-and-after-tasks#after-task But I do think the complexity of this feature is not justified due to user demand.

If there is something missing, why not just add in common ignores?

xenoterracide commented 4 years ago

my thought process is that if we fetch them at runtime, instead of baking them in, they'll be up to date with any changes. I don't have to do that though.

3cp commented 4 years ago

I see, but I cannot imagine they will be updated too often (even per year), especially the JS area. It's not a big burden to manually update this repo whenever needed.

If you want, you can try to use after task to synthesis a gitignore file.

xenoterracide commented 4 years ago

finally got around to a PR for this