Coder Social home page Coder Social logo

gulp-front-end-template's Introduction

gulp-front-end-template

Front-end template for Gulp

What it can do?

  • LESS
  • CSS autoprefixer
  • CSS, JS, image minify
  • Sprites (just put images in foders and get sprites with folders names)
  • SVG sprites
  • templates for asynchronous loading of CSS and JS (basic styles are minified and directly put into HTML)
  • manually controll of sprite versions to prevent cache

Getting Started

  1. Copy source, lib, package.json, gulpfile.js.
  2. Install node modules: $ npm install
  3. Start server: $ npm run start
  4. http://localhost:9999/ will open automatically

Using Sprites

Enable them in source/css/style.less SVG: add class .ico-svg and .svg-file-name, where svg-file-name - name of your svg picture without extension. IMG: add display: inline-block to your element; add .sprite(@file-name) mixin to your element, where file-name is the name of your picture without extension.

Folders structure

├── bower.json					# bower config
├── package.json					# npm confg
├── gulpfile.js					# gulpfile
├── lib							# gulp library files
└── build							# Собранный проект
	├── css						# compiled CSS
	├── img						# images
		└── sprite				# sprites
	├── js						# merged JS
	├── minified					# compressed JS and CSS files
		├── css
		└── js
	└── index.html				# HTML index file
└── source						# source files
	├── css						# stylesheets
		├── generated				# generated by gulp CSS and LESS files for sprites
		├── partials				# partial LESS files
		├── urgent				# basic CSS, that is built in head of html document
		└── style.less			# main LESS file. Merge all LESS files here
	├── fonts						# fonts - do not process, just are copied to build/fonts
	└── img						# images
		├── common				# images to minify and put into build/img
		└── sprite				# images to build sprite (png, gif, jpg, jpeg -> png sprites (one icluded foledr - one sprite)
			|					# SVG files - svg sprite with png fallback (no included directories allowd)
			└── symbol			# SVG sprite in symbol mode
	├── js
		├── lib					# JS libraries
		├── partials				# JS files
		└── js.js					# main JS file. Here merge all files
	├── templates					# HTML templates
	└── index.html				# HTML index file

gulp-front-end-template's People

Contributors

vibos avatar boikovs 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.