Skip to content

A simple Gulp Recipe for create and optimize landing pages or static websites

Notifications You must be signed in to change notification settings

lucapalomba/gulp-recipe-bootstrap-static-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speeder Website generator, optimizer flavoured

A simple Gulp Recipe for create and optimize landing pages or static websites

Mission

Create a simple Task/Generator for static websites without using any server side technologies or cache system. It can be usefull for Light/Small Business Developer for creating landing pages or multiple pages websites without using CMS.

This system integrates optimizer (minifying, img optimizer, ... ) in order to avoid you wasting your time looking for the best online tool, use it and then enter the results in your project.

briefly:

  • [SPEED]
  • [WEB OPTIMIZATION]

TOC

Specifications:

##Speeders:

This project includes some platforms,libs and frameworks to make you work faster.

Is important for you have some layers who can help you to increase your productivity and don't loss your quality and creativity time.

There's the list of speeders included in this project:

###Bootstrap Bootstrap is usefull for creating UI in a simple and fast way.
It uses most of common data UI structure ready out-of-the-box, well written and reliable. That's why I've decided to put inside this project.

Use the official knowledge base to understand how it works and how to use it.

###Twig Twig is a template engine who can use many abstraction layers and so allows you to compile templates also with complex structure like: templating, inheritance, imports, data injections... It's usefull in a project like this because allows to have many pages with the same structure (generally header, footer, sidebars...)

Take a look in the Twig official repository

###SASS (or Scss) With Sass you can write CSS using cool functions like calculations, variables and hineritances melted up with a simple writing way. Sass allows you to save a large amount of time, especially when you use complex templates or a personalized graphics.

Learn the base of Sass

###Browser Syncronized After you start and run this project you can use the auto-sync or manual sync of browser-sync package. This package allow you to writing code on your IDE and see in real-time what happen to our html without reload the entire page.

See for info and specs

###Automatic sitemap generation

Sitemaps are mandatory for a correct Web development. I've added an automatic sitemapper generator. This generator is triggered only with the distribuite version so you must use the gulp command for create it. After that you can found your version in the /dist folder ready to upload.

Here for how-to-customize

##Optimizers

Where speeders is a set of frameworks for save your time and be more faster an conentrated on your front-end works, the optimizers are and incredible set of plugin for doing a very important phase of your work: raise your quality level.

###Css optimizing

Optimize your Css makes your website faster. This Recipe contain 4 strategies for doing this.

  1. Using SASS:
    Sass allow you to write al your CSS like an Object, with hierarchy and nesting and prorerties. That is very usefull because you can keep concentrated on your scheme, section division, front-end skills and don't spent time to thinking about class names and so on. An this is only an Example.

How to nest classes 2. Compress CSS
Your compress CSS is smaller than your normal CSS. Smaller in web become faster. In this project I used 2 strategies to do this. SASS compresser, and CSS Optimizer.

SASS Compresser options
CSSO, Css Optimizer 3. Autoprefixer
Autoprefixer use the knowldgment about Browser diversification for adding classes to your Css specify class for Browser. Avoid headache!

Autoprefixer

  1. CSS Concatenation
    Cache systems think 1 Big Css is better than 100 small. Ok, you're in right. You can use the Build System "UseRef" for concats more css in one.

Use Ref Documentation

What you need before install:

  • Node.js
    This project is runned like a Node.js apps so you must install Node.js before continue

  • Patience
    This project was born like a personal project and not a commercial one. So what you see it may not be done as well as you could write in your own. I know. And it's true.

How to install:

  1. Clone locally this repo

  2. Install generator dependencies

npm install



 3. Install project dependencies

bower install


How to run:
=======

 * Run your project in the browser.

gulp serve


 * Generate in the */dist* folder your project complete version to be uploaded

gulp


Question about this project:
=======
Contact me at [luca palomba - web developer](http://lucapalomba.wordpress.com)

About

A simple Gulp Recipe for create and optimize landing pages or static websites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published