All Projects → kogakure → Gulp Tutorial

kogakure / Gulp Tutorial

Code examples for my Gulp.js tutorial series

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gulp Tutorial

Frasco
Quick starter for Jekyll including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, ESLint, imagemin, Browsersync, etc.
Stars: ✭ 123 (-67.89%)
Mutual labels:  jekyll, sass, postcss, browsersync
Long Haul
A minimal, type-focused Jekyll theme.
Stars: ✭ 524 (+36.81%)
Mutual labels:  gulp, jekyll, sass, browsersync
Magento2 Frontools
Set of front-end tools for Magento 2 based on Gulp.js
Stars: ✭ 416 (+8.62%)
Mutual labels:  gulp, sass, browsersync
Wordpress Starter
📦 A starter template for WordPress websites
Stars: ✭ 26 (-93.21%)
Mutual labels:  gulp, sass, browsersync
Jekyll Boilerplate
Helpful files to get started working on a new Jekyll website
Stars: ✭ 30 (-92.17%)
Mutual labels:  gulp, jekyll, postcss
Reactql
Universal React+GraphQL starter kit: React 16, Apollo 2, MobX, Emotion, Webpack 4, GraphQL Code Generator, React Router 4, PostCSS, SSR
Stars: ✭ 1,833 (+378.59%)
Mutual labels:  gzip, sass, postcss
Startjekyll
An example and guide to getting started with Jekyll and static site generators.
Stars: ✭ 106 (-72.32%)
Mutual labels:  jekyll, tutorial, learning
Bootstrap 4 Sass Gulp 4 Boilerplate
A Bootstrap 4.5.2 boilerplate with font-awesome, sass, gulp 4 tasks
Stars: ✭ 103 (-73.11%)
Mutual labels:  gulp, sass, browsersync
Frontie Webpack
Front-end Boilerplate | Gulp 4 + Webpack 4 + Babel + ITCSS Architecture + BEM Methodology + Twig.js
Stars: ✭ 102 (-73.37%)
Mutual labels:  gulp, sass, browsersync
Generator Kittn
The Yeoman Kittn Generator
Stars: ✭ 63 (-83.55%)
Mutual labels:  gulp, sass, postcss
Bathe
The simplest WordPress starter theme including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, Eslint, imagemin, Browsersync, etc.
Stars: ✭ 65 (-83.03%)
Mutual labels:  sass, postcss, browsersync
Gopablo
🐺 Static site generator.
Stars: ✭ 166 (-56.66%)
Mutual labels:  gulp, postcss, browsersync
Fastshell
Fiercely quick front-end boilerplate and workflows, HTML5, Gulp, Sass
Stars: ✭ 563 (+47%)
Mutual labels:  gulp, sass, browsersync
Dough
React/Redux + SASS + Gulp/Browserify/Babel skeleton codebase with demo application.
Stars: ✭ 38 (-90.08%)
Mutual labels:  gulp, browserify, sass
Bootstrap 4 Boilerplate
Bootstrap 4.3.1 boilerplate with Browsersync, Sass and Gulp.js
Stars: ✭ 155 (-59.53%)
Mutual labels:  gulp, sass, browsersync
middleman-gulp
A Middleman 4 template using Gulp.js via the external pipeline
Stars: ✭ 42 (-89.03%)
Mutual labels:  gulp, browserify, browsersync
tux
A baseline toolkit to ease the building of static HTML sites or integrating into templated CMS builds.
Stars: ✭ 34 (-91.12%)
Mutual labels:  gulp, browsersync
bootstrap-5-sass-gulp-4-boilerplate
A Bootstrap 5.0.0 boilerplate with bootstrap-icons, sass and gulp 4
Stars: ✭ 26 (-93.21%)
Mutual labels:  gulp, browsersync
postcss-font-grabber
A postcss plugin, it grabs remote font files and update your CSS, just like that.
Stars: ✭ 26 (-93.21%)
Mutual labels:  gulp, postcss
genesis-sample-task-runner
Gulp workflow for Auto prefixing, Sass compiling, CSS minification, automatic browser reloading and more
Stars: ✭ 23 (-93.99%)
Mutual labels:  gulp, browsersync

Maintenance GitHub Forks GitHub Stars

Introduction to Gulp.js

Tutorial

These are the files for my series Introduction to Gulp.js published on my website stefanimhoff.de.

Tutorial Overview

  1. Intro and Setup
  2. Server with BrowserSync and Configuration
  3. Build, Clean and Jekyll
  4. Creating CSS with Sass (and Compass)
  5. Bundling JavaScript with Browserify
  6. Images and Vector Fonts
  7. Base64 Encoded Images
  8. Watch for Changes
  9. Checking the Syntax of SCSS and JavaScript
  10. Generating CSS Image Sprites
  11. Production Build, Server and Jekyll
  12. Optimize CSS, JavaScript, Images and HTML
  13. Revisioning
  14. Deploying the Website with Rsync
  15. Performance Improvements with WebP and Gzip
  16. PostCSS

Preparation

Install nvm and node:

$ git clone https://github.com/creationix/nvm.git ~/.nvm
$ cd ~/.nvm
$ git checkout `git describe --abbrev=0 --tags`
$ export NVM_DIR="$HOME/.nvm/"
$ [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
nvm install 6.3.1

If you like install yarn, I provide a yarn.lock file:

brew install yarn

Install bundler:

$ gem install bundler

Install bower:

$ npm install -g bower

Installation

Clone the repository on your computer and change into the projects folder. Run:

$ bundle
$ bower install
$ npm install

To install Fontcustom you should have Homebrew installed or use another package management tool to install the dependencies:

$ brew install fontforge --with-python
$ brew install eot-utils

Setup

Open gulp/config.js and change settings if needed. Only the rsync settings need to be adjusted. Change the destination to a path on your webserver and change hostname and username.

Running Gulp.js

Three tasks are available (npm works, too):

$ yarn start
$ yarn run publish
$ yarn run deploy
  • Running yarn start will start a development server, build assets and the Jekyll site and start a watch task.
  • Running yarn run publish will copy and optimize assets and run a production build of Jekyll.
  • Running yarn run deploy will copy the generated files with Rsync to your server.

Sass, Compass or PostCSS

The current version of this tutorial uses PostCSS. If you would like to use Sass (or Compass), you can still easily access the old code in the branch ruby-sass. The new code at the time I wrote the article is available in the branch postcss. Additionally I merge it into master and will process with PostCSS in my tutorial.

Credits

This tutorial includes some files for demonstation purposes:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].