Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

DennisSmuda/frontend-boilerplate

Repository files navigation

Frontend Boilerplate

Webpack build (ES6 / PostCSS) + Pug Templating

Includes Minimal CLI to generate repetetive code

// Create new Route
// - pug template + view script
node cli g:route <name>

Included Libraries

import $ from 'jquery';
import Barba, { BaseView, BaseTransition } from 'barba.js';
import { TweenMax, TimelineMax } from 'gsap';

See postcss.config.js for plugin configuration

CSSNext

AutoPrefixer

Custom Media Queries

{
  '--viewport-phone-small'  : '(max-width : 320px)'
  '--viewport-phone'        : '(max-width : 400px)'
  '--viewport-phone-wide'   : '(max-width : 480px)'
  '--viewport-phablet'      : '(max-width : 560px)'
  '--viewport-tablet-small' : '(max-width : 640px)'
  '--viewport-tablet'       : '(max-width : 768px)'
  '--viewport-tablet-wide'  : '(max-width : 1024px)'
  '--viewport-desktop'      : '(max-width : 1250px)'
  '--viewport-desktop-wide' : '(max-width : 1250px)'
  '--viewport-desktop-huge' : '(min-width : 1920px)'
}

Screenshot

screenshot

Installing

Clone Repo

git clone git@github.com:dennissmuda/frontend-boilerplate

Install Dependencies

yarn install

Developing

Build JS/CSS

yarn start

Watch templates directory

yarn templates

Testing

Run all tests

yarn run tests

Production Build

Minify/Uglify

yarn run prod

Releases

No releases published

Packages

No packages published