I'm currently trying to setup a "static" frontend/styleguide of sorts for a project, and needing some help/direction on where I should go with what type of workflow/plugins/etc I should use.
Basically right now I'm using gulp + handlebars, converting templates into static html, and using sample json data to create placeholder examples on pages. This works great, however what I have currently, limits the project structure I can use/want.
So without going into detail (this is still pretty much all new ground for me), I am trying to do the following structure for this project. I just have no clue where to begin, what type of workflows/frameworks/gulp plugins etc could potentially allow this.
Ignore the current folder/file names:
dist - compiled static version of site
src - where all assets are stored, images, scss, templates, data etc
assets
scss - global styling
js - global js
media
images
video
audio
pages
index
page
gallery
single image
components
gallery - component directory that contains the template, example data, component specific css/js
template.hbs - the handlebars or whatever template
data.json - example data
style.scss - standalone scss
javascript.js - standalone js
info.md - info about component
layouts
1 column
2 column
modal
Basically the idea is, this project has 100+ components, that each may have different variants that require alot of component specific styling/functionality. With this structure, it allows everything to be pretty modular, and allows for other projects to take the component folder, and plop in and it'd just work (for the most part of course).
Has anyone had any experience with something like this? If so any sort of suggestions/input would be appreciated it. Doesn't seem to be too much out there, or its some wonky thing that requires non-html type templates.
Question
Timan Veteran
I'm currently trying to setup a "static" frontend/styleguide of sorts for a project, and needing some help/direction on where I should go with what type of workflow/plugins/etc I should use.
Basically right now I'm using gulp + handlebars, converting templates into static html, and using sample json data to create placeholder examples on pages. This works great, however what I have currently, limits the project structure I can use/want.
So without going into detail (this is still pretty much all new ground for me), I am trying to do the following structure for this project. I just have no clue where to begin, what type of workflows/frameworks/gulp plugins etc could potentially allow this.
Ignore the current folder/file names:
Basically the idea is, this project has 100+ components, that each may have different variants that require alot of component specific styling/functionality. With this structure, it allows everything to be pretty modular, and allows for other projects to take the component folder, and plop in and it'd just work (for the most part of course).
Has anyone had any experience with something like this? If so any sort of suggestions/input would be appreciated it. Doesn't seem to be too much out there, or its some wonky thing that requires non-html type templates.
Anyway, thanks.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts