1.1.3 • Published 7 years ago

gulp-blok v1.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Installation

$ npm install gulp-blok --save-dev

Usage

var blok = require('gulp-blok')
var watch = require('gulp-watch')
var config = {
  apiVersion: 2,
  themeId: 'YOUR_SPACE_ID',
  domain: 'YOURSUBDOMAIN.me.storyblok.com',
  apiKey: 'YOUR_TOKEN',
  basePath: 'views',
  environment: 'dev'
}

gulp.task('deploy', function () {
  config.environment = 'live'

  return gulp.src('./views/**/*')
    .pipe(blok(config))
})

gulp.task('default', ['other_tasks'], function () {
  return watch('./views/**/*')
    .pipe(blok(config))
})

What it does

This plugin uses the Storyblok theme api to upload templates and assets when saving and can deploy your project to the live environment.

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago