Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Releases: vigetlabs/blendid

Twig

12 Feb 19:47
42be028
Compare
Choose a tag to compare

Adds Twig support to the HTML task (the default is still Nunjucks).

Basic use: in task-config.js, set html.templateLanguage to twig.

  html : {
    templateLanguage: 'twig',
  },

Advanced use: pass gulp-twig options in task-config.js's html.twig

html: {
  templateLanguage: 'twig',
  twig: {},
},

YAML

20 Nov 17:06
3da0e6f
Compare
Choose a tag to compare

Adds YAML support to the HTML task. Just give your YAML dataFile the extension .yaml or .yml.

PostCSS

29 Oct 22:14
ebeec7d
Compare
Choose a tag to compare
  • Adds PostCSS support
  • Autoprefixer replaces gulp-autoprefixer
  • cssnano replaces gulp-cssnano

Users can configure plugins and options in task-config.js's stylesheets.postcss. See gulp-postcss for more info.

Basic usage is unchanged. Source stylesheets will be preprocessed with Sass unless stylesheets.sass is false. You can still call out Sass explicitly if you like:

// in task-config.js
stylesheets: true

A task-config with custom PostCSS will look like this

// task-config.js
// must also add the dependencies (`(npm i|yarn add) some-plugin some-option`)

var somePlugin = require('some-plugin')
var someOption = require('some-option')

var postCssPlugins = [somePlugin()]
var postCssOptions = {someOption}

module.exports = {
    // ...
    stylesheets: {
        // sass: true is implied
        postcss: {
           plugins: postCssPlugins,
           options: postCssOptions
        }
    }
    // ...
}

Autoprefixer and cssnano are injected into the PostCSS plugins list, and do not need to be specified. However custom Autoprefixer and/or cssnano configs are respected if provided. That looks like this:

// task-config.js
// must also add the autoprefixer dependency (`(npm i|yarn add) autoprefixer`)

var autoprefixer = require('autoprefixer')

var postCssPlugins = [
    autoprefixer({
        grid: "autoplace"
    })
]

module.exports = {
    // ...
    stylesheets: {
        // sass: true is implied
        postcss: {
           plugins: postCssPlugins
        }
    }
    // ...
}

v4.5.0

19 Apr 20:57
f914316
Compare
Choose a tag to compare

Primarily a security and dependency updates release.

Breaking change: in task-config.js's javascripts.babel.presets, es2015 must be replaced with env:

    babel: {
      presets: ['es2015', 'stage-1']
    }

becomes

    babel: {
      presets: ['env', 'stage-1']
    }

For more info, see PR #573

Also includes PR #574

v4.4.3

31 Jan 16:52
Compare
Choose a tag to compare

fixes a bug in which project pathing in Windows environments did not work as expected

4.4.2

18 Jan 20:36
Compare
Choose a tag to compare

Fixes

  • relatively references files and directories in init tasks to ensure gulp.dest can properly build

4.4.1 hotfix

16 Jan 20:32
Compare
Choose a tag to compare

tasks were breaking due to fancy-log syntax being slightly different than gulp-util.log. this addresses those breaks.

4.4.0

16 Jan 18:01
Compare
Choose a tag to compare

Minor fixes

  • Prevent browserSync.server.middleware from being overwritten completely [#525]

Hotfixes

  • reorganizes production and replace file tasks to ensure public directory is cleaned on build task [#496]
  • replaces outdated gulp-util with appropriate packages [#508]

HTTP/2 hotfix

11 Oct 21:40
Compare
Choose a tag to compare
  • ensures directories and class names match
  • ensures config/task-config.js sass task imports via globbing

4.3.0

03 Oct 19:03
Compare
Choose a tag to compare

HTTP/2 Upgrade

  • Adds an HTTP/2 assets upgrade by running yarn run blendid -- http2-upgrade
  • Updates extras to include HTTP/2 init files