GithubHelp home page GithubHelp logo

sutterlity's Introduction

Hello Front

Maintainability

Boilerplate SCSS / PUG / ES6 for clean and fast Front-end project.

Work on src/ folder and gulp build in dist/.

Installation

Node version manager

Install NVM

Use the version v8.9.4 of NodeJS.

nvm use

Install Sass

Go to sass-lang.com/install for installation in command line.

Install Yarn

Go to https://yarnpkg.com/docs/install

Install Gulp

Go to https://gulpjs.com/

Download the dependencies NPM

yarn install

Install Tooling

Use Prettier for clean your JS / SCSS files.

Plugin for IDE :

Commands

Run project

yarn dev

Build project

yarn build

Optimize SVG

yarn svg

Clean project

yarn reset

How it works

Works with SCSS

Use atomic design design for orgaznise components

The SCSS files are located in ./src/assets/scss.

Example SCSS hierarchy :

  • base/ : Unclassed HTML elements (type selector)
  • atoms/ : Atoms are the basic building blocks of matter (button, input, etc.)
  • molecules/ : Molecules are groups of atoms bonded together and are the smallest fundamental units of a compound (from, cards, etc.)
  • organisms/ : Molecules give us some building blocks to work with, and we can now combine them together to form organisms. (header, footer, etc.)
  • template/ : Templates consist mostly of groups of organisms stitched together to form pages.
  • page/ : Pages are specific instances of templates
  • tools/ : Default mixin and functions
  • utils/ : Helpers and overrides
  • _settings.scss : Global variables
  • app.scss : Main stylesheet

Use the SUIT CSS namming convention.

Works with Pug templating

The PUG files are located in ./src/template

  • layout : layout of html files generated
  • mixin : for reusable pattern
  • pages : the content of html files generated
  • partial : includes of html pattern
  • config.pug : global variables

Works with JavaScript

The Javascript files are located in ./src/assets/js.

Use the ES6 syntaxe Babel convert it in ES5 for you via webpack.

Working with Images

The Image files are located in ./src/assets/img

Accepted file formats : - jpg - png - gif - svg

Working with Fonts

The font files are located in ./src/assets/font

Works with icons font

Disabled by default, for activate do :

  • in ./gulp/config.js at line 68 update value : enable: true;
  • Add _template-font-custom.scss in ./src/assets/scss/tools/;
  • Add SVG Files in folder ./src/assets/icons and gulp made magic.

Preparing-svgs

  • Icon format: svg
  • Icon size: 512x512
  • Vectorize stroke

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.