Front-end template for Gulp
- 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
- Copy source, lib, package.json, gulpfile.js.
- Install node modules:
$ npm install
- Start server:
$ npm run start
- http://localhost:9999/ will open automatically
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.
├── 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