-
Notifications
You must be signed in to change notification settings - Fork 0
Description
The Issue
Currently, the js and css bundled build files are not ignored by the .gitignore
for the purpose of making it easy to host the site directly on GitHub pages by committing it to the repo. However, many projects will not make use of this functionality and it can be cumbersome to constantly commit updated build files when source code changes are made.
A Solution
I think that an option should be presented during install to enable this inclusion, making it an opt-in feature with clear intentions that it allows for simple hosting with GitHub Pages when the site output folder is left as /docs
. It may be best to bundle those two options together, asking:
Would you like the project to be set up for hosting on GitHub Pages? (default: no)
If they say yes, the site folder and .gitignore will be set accordingly. If they say no, then the .gitignore include the build folder and they will be asked to specify the site folder.