Miss any of our Open RFC calls?Watch the recordings here! »

gulp-gist

1.1.0 • Public • Published

gulp-gist

Parse source code for comments and update related gists. Useful to test code snippets published on Gist.

You need to create a ~/.gistauth file with authentication info, e.g. "username:password".

Usage

Annotate your code to delimit Gists (they must already exist on github).

 
var toto
 
// startgist:12345-id-of-your-gist-123456:filename.js
 
// This will go to the gist
var sum = 2 + 2;
 
// endgist
 
// No longer in the gist

You can then use it in your gulpfile:

 
var gist = require('gulp-gist');
 
gulp.task('deploy:gist', ['test:doc'], function () {
    gulp.src("./test/doc.js")
        .pipe(gist());
});
 
 

Install

npm i gulp-gist

DownloadsWeekly Downloads

9

Version

1.1.0

License

Apache 2.0

Last publish

Collaborators

  • avatar