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

gulp-fastly

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-fastly

A gulp plugin to help with Fastly purges

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gulp-fastly

Helps with common deploy tasks with Fastly.

Usage

npm install gulp-fastly --save

Purging

Especially useful for if you have a static site or need to purge things per deploy. Currently only allows full purges and not specific ones.

var Fastly = require('fastly')
gulp.task('deploy', function () {
  var fastly = new Fastly({
    apiKey: '',
    serviceId: ''
  })

  gulp.src('*')
    .pipe(fastly.purge())
})

Upload VCLs

This allows you to upload a new Fastly version with a current VCL file. Note that this will only upload the VCL if the md5 hash of the given VCL file is different than what is already activated.

var Fastly = require('fastly')
gulp.task('deploy', function () {
  var fastly = new Fastly({
    apiKey: '',
    serviceId: ''
  })

  return gulp.src('./fastly.vcl')
    .pipe(fastly.deployVcl())

License

MIT

Keywords

FAQs

Package last updated on 04 Aug 2016

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