JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 30
  • Score
    100M100P100Q65907F
  • License MIT

Tool to publish Storyblok templates and assets

Package Exports

  • gulp-blok

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-blok) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Storyblok gulp plugin

A simple tool for developing Storyblok templates.

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.



Storyblok Logo