Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-blok

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-blok

Tool to publish Storyblok templates and assets

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

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

Keywords

FAQs

Package last updated on 01 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc