linuxmint / website-wizixo

59 stars 25 forks source link

TECH Optimization: Change build file to create a separate dist folder #38

Closed vneogi199 closed 3 years ago

vneogi199 commented 3 years ago

Currently, generated files from build are placed in same folder as source templates. Instead this PR aims to create a new dist folder which will contain all files (created by build process + source file). This dist folder is deleted and recreated after every build to make sure older files are cleared. dist folder is used for serving to gulp instead of templates folder.

clefebvre commented 3 years ago

This is a good idea but it had to ease the deployment phase mostly, not so much the development. I implemented it with https://github.com/linuxmint/website-wizixo/commit/e64deb5dfd49941ebeaa3d790b86e16a26a47154. wizixo/ now only contains the theme, everything else is in /.

When we deploy in php, includes will be native in that language so we won't need build.py nor page- and non-page pages. Existing assets are already in /.