FullstackAcademy / boilermaker

Code scaffold for projects

Home Page:https://www.youtube.com/watch?v=7bLSuTHH4Ag&list=PLx0iOsdUOUmn7D5XL4mRUftn8hvAJGs8H

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider using an ignored `build` directory instead of mixing ignored/included `public` files

glebec opened this issue · comments

I sometimes see students use tools which dynamically generate assets meant to be served up (e.g. CSS files, svgs, etc.). Students use public as the build target but fail to gitignore those assets, meaning they end up in version control.

Arguably a better idea is to have separate public and build directories, the former being included and the latter being ignored, both served up statically. Webpack would build to build, and other tools could as well; conversely, students would be taught that everything in public is supposed to be tracked in version control.

I really like this idea 👍