javascript - Modular web design -


i've been looking nice way organize website, , i've found grunt, npm, gulp, , handful of other great things. i'm going can organize webpage using modules in html, css, , javascript, or way in methods listed. example:

+-- files | +-- html | |  +-- header.html | |  +-- footer.html | |  +-- content.html | +------- | | +-- styles | |  +-- stylesheet.scss | |  +-- fonts.css | +--------- | | +-- scripts | |  +-- base.js | |  +-- jquery.min.js | |  +-- bootstrap.min.js | +---------- +------------- 

and (magic tool) magically merge javascript files 1 file, merge styles 1 file, , merge html components 1 file.

tl;dr: organizing files getting complicated, magical way organize files needed, or project explode violently.

cheers,

a disorganized captain crunch

tools grunt, npm, gulp you've mentioned build tools... use such tool called webpack bundle css , js files 1 big js file , minify it... find link webpack css bundler here
kind of languages use: static html? jquery? angular? react?
file structures vary according language you're using.
static html web pages can use index.html , give links other web pages. refer stackoverflow answer simple website struture
there advanced file structures when developing frameworks/libraries angular , react... depends on you're developing with.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -