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

@doctolib/gulp-example

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@doctolib/gulp-example

Gulp plugin to generate example.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
5
Weekly downloads
 
Created
Source

gulp-example

Gulp plugin to generate example.

Install

npm install @doctolib/gulp-example

Usage

Configuration

The package.json is used to generate example, you can provide custom values:

{
  "examples": {
    "title": "Custom title",
    "description": "Custom description",
    "keywords": ["custom", "keywords"],
    "codeHighlighting": true
  }
}

generateIndex(pkg)

Generate templated index.

gulp.task('build:examples:html', () => {
  const pkg = require('./package.json');
  return githubExample.generateIndex(pkg)
    .pipe(gulp.dest(config.examples.dest));
  });

generateVendor(pkg)

Generate vendor dependencies.

gulp.task('build:examples:vendor', () => {
  const pkg = require('./package.json');
  return gulp.src(path.join(config.examples.src, 'vendor', '**/*'), {
      base: path.join(config.examples.src, 'vendor')
    })
    .pipe(githubExample.generateVendor(pkg))
    .pipe(gulp.dest(path.join(config.examples.dest, 'vendor')));
  });

License

MIT

Keywords

FAQs

Package last updated on 15 Apr 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