Skip to content

Front-end Boilerplate | Gulp 4 + Webpack 4 + Babel + ITCSS Architecture + BEM Methodology + Twig.js

Notifications You must be signed in to change notification settings

tomaszbujnowicz/frontie-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

There is a slightly different approach based on Utility CSS. Check it out https://github.com/tomaszbujnowicz/hybrid-utility-itcss

Frontie Webpack - Front-end Boilerplate

πŸš€ Gulp 4 + Webpack 4 + Babel + BrowserSync + ITCSS Architecture + BEM Methodology

These tools make it a solid front-end boilerplate to get a new project off the ground.

🎁 Features

Features Description
Task Runner Gulp
CSS SASS, ITCSS, CSS Guidelines, BEM
CSS Tools Autoprefixer, Source Maps, Stylelint
Bootstrap 4 Grid System, Responsive Breakpoints
JS Webpack, Babel, ESLint
Live Reload BrowserSync
HTML Templates Twig.js
Deployment GitHub Pages

Usage

Requirements

Make sure all dependencies have been installed before moving on:

Quick start: Installation

Clone this repository and run

  • yarn or npm install to install dependencies

Tasks

Task Name Description Environment
yarn start or npm run start Generate a development environment, start the server and watch for changes Development
yarn watch or npm run watch Start the server and watch for changes Development
yarn build or npm run build Compile production code Production
yarn deploy or npm run deploy Compile production code and deploy to GitHub Pages Production

Structure

|--dist/                   # β†’  Static version of the website ready to upload (never edit)
|
|--gulpfile.babel.js/      # β†’  Gulpfile config and tasks
|--node_modules/           # β†’  Node.js packages (never edit)
|--src/                    # β†’  Source files
|  |--assets/              # β†’  Assets
|  |  |--fonts/            # β†’  Assets: Fonts
|  |  |--img/              # β†’  Assets: Images
|  |--modules/             # β†’  Modules: Multi-part components e.g. Navbar (HTML, CSS and JS)
|  |--scripts/             # β†’  JS
|  |  |--components/       # β†’  JS: Components
|  |  |--app.js            # β†’  JS: Main file
|  |--styles/              # β†’  Styles: ITCSS Architecture + BEM Methodology
|  |  |--main.scss         # β†’  Styles: Main stylesheet file
|  |--templates/           # β†’  Site templates (Twig.js)
|  |  |--layouts/          # β†’  Templates: Layouts
|  |  |--components/       # β†’  Templates: Components
|  |  |--pages/            # β†’  Templates: Pages
|--.babelrc                # β†’  Babel presets
|--.browserslistrc         # β†’  Browserslist config, browsers that we support
|--.eslintrc               # β†’  ESLint config
|--.gitignore              # β†’  Gitignore
|--.stylelintrc            # β†’  Stylelint config
|--package-lock.json       # β†’  NPM lock file (never edit)
|--package.json            # β†’  Node.js dependencies and scripts
|--webpack.config.js       # β†’  Webpack config
|--yarn.lock               # β†’  Yarn lock file (never edit)

Copyright and license

Copyright 2018-2019 Tomasz Bujnowicz under the MIT license.