Flows


Simple Local Flow

Just gulp your way without worries:

$ gulp

#
# create posts, modify layouts, use Jekyll at will
#
# restart only when changing main *_config.yml*
#

The default task:

Pre-Reqs

Of course, NPM and Gulp must be properly installed for your local environment (won’t go into that).

$ npm install

Folder /node_modules is created locally, it should be ignored from the repo

Gulp Tasks

Available from /gulpfiles.js

$ gulp --tasks

[22:25:43] Tasks for D:\pub\jekyll-crazymentat\gulpfile.js
[22:25:43] ├─┬ browser-sync
[22:25:43] │ ├── styles
[22:25:43] │ └── jekyll
[22:25:43] ├─┬ default
[22:25:43] │ ├── styles
[22:25:43] │ ├── jekyll
[22:25:43] │ └─┬ browser-sync
[22:25:43] │   ├── styles
[22:25:43] │   └── jekyll
[22:25:43] ├── jekyll
[22:25:43] ├─┬ reload
[22:25:43] │ └── jekyll
[22:25:43] ├── styles
[22:25:43] └── watch

browser-sync

This lovely plugin brings back some joy to HTML/CSS development (seriously)

Serves files under /docs/_site:

watch

Because file tree watchers are used everywhere.

Styles watch:

triggers CSS regeneration

Other watches:

All watches reload clients of browser-sync.

styles

Uses the huge postcss plugin.

Includes declared at /_src/css/main.css.

Colors and global variables at /_src/css/_global.css