GithubHelp home page GithubHelp logo

colearnr / generator-gulp-bootstrap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smakman/generator-gulp-bootstrap

0.0 2.0 0.0 94 KB

Framework for developing modern front-end web apps

JavaScript 98.08% CSS 1.92%

generator-gulp-bootstrap's Introduction

Gulp Bootstrap 3 Framework

Yeoman generator that scaffolds out a front-end web app using Gulp, Bower and Bootstrap 3.

Features

  • CSS & JS minification
  • Sass compilation
  • EJS templating
  • Sprite generation
  • Image optimization
  • Bower packages
  • Built-in preview server

Getting started

  • Install: npm install -g generator-gulp-bootstrap3
  • Init: yo gulp-bootstrap3
  • Build: gulp
  • Run: gulp watch

For sprite generation install node-canvas.

CSS

For each sass file in src/css a minified CSS file is generated which gets stored in the build assets/css folder. Partials stored in src/css/partials can be included with @import file. Vendor CSS assets can be stored in src/vendor and included with @import file.css as well. Bootstrap 3 is imported by default.

Javascript

For each JS file in src/js a minified JS file is generated which gets stored in the build assets/js folder. Partials stored in src/js/partials can be included with //= require partials/file.js. Vendor JS assets can be stored in src/vendor and included with //=require ../vendor/file.js. Bootstrap 3 is imported by default.

Templates

For each EJS template in src/templates a HTML file is generated and stored in the build folder. Partials stored in src/templates/partials can be included with <% include partials/footer %>

Sprites

All images stored in src/images/sprite/ will be combined in to one sprite, which gets stored in src/images/sprite.png and src/images/sprite-2x.png.

Retina
By default retina is turned on, therefore you should only store retina images in the sprite folder. For each retina image a normal version is generated automatically.

Sass example

@import sprite

// cart icon (cart.png in sprite directory)
.cart
  +sprite($cart)

All HTML elements which use the sprite should have class="icon"

Check out the css-sprite documentation for other examples.

Images

All images stored in src/images are automatically optimized using gulp-imagemin and saved in the build assets/images directory.

Fonts

All fonts in the source directory or underlying subdirectories get copied to the build assets/fonts folder, removing relative paths.

Live Reload

A live reload server is included as well. Install the live reload Chrome extension if you don't use the included connect server.

License

BSD license

generator-gulp-bootstrap's People

Contributors

smakman avatar

Watchers

James Cloos avatar  avatar

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.