I hope it makes life easier and development faster.
- Install all dependencies
npm i
-
Install plugin
fontforge
for fonts generation on your OS:- OS X:
brew install fontforge
- Linux Ubuntu:
sudo apt install fontforge
-
Generate fonts
npm run font:generate
- Start your project
npm run dev
- Build your project
npm run build
- Archive current production version of your project
npm run archive:zip
gulp
- where the magic is workinggulpfile.js
- main gulp configurecommon
- configs and pathstasks
- describe task you want the gulp to doversion.json
- created dynamically to avoid caching files during development (don't touch it)
src
- our projectfonts
img
scss
utilities
- contains tools, helpers, variables, mixins etc.base
- contains boilerplate code for the project. This includes styles such as resets, typography etc.components
- contains all the smaller page components like separated into multiple smaller files like slider, carousel etc.layout
contains the layout styles, separated into several smaller files like header, footer etc.pages
- contains page-specific styles. For example, the home page and search results page typically looks very different.themes
- contains files that are theme specific, like alternate color schemes (if any).vendors
- contains third party code from external frameworks and libraries like jQueryUi, Bootstrap etc.main.scss
- it should ONLY contain the imports for the above files
js
html
- partials of html (header, footer, sidebar)example.html
index.html
- main endpoint
dist
- containing production version of your project (it doesn't exist firstly)archive
- containing archived production version of your project
There is an example of Wikipedia page. When you start your project, don't forget to delete it in src/fonts/*
, src/img/*
, src/scss/example.scss
and using this file in main.scss
, src/example.html
and archive/*
.
Also take a look another version of my gulp template.
Here's a brief high-level overview of the tech stack:
- Node.js v.16.13.1 - a JavaScript runtime built on Chrome's V8 JavaScript engine.
- Gulp v.4.0.2 - A toolkit to automate & enhance your workflow