MCPcopy
hub / github.com/ccampbell/rainbow / _appendCode

Function _appendCode

gulpfile.js:186–198  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

184});
185
186function _appendCode(code) {
187 var dest = _getDestinationPath();
188 var stream = gulp.src(dest)
189 .pipe(inject.prepend(_getComment()))
190 .pipe(inject.append(code));
191
192 if (argv.output) {
193 stream.pipe(through(function(data) { this.queue(data.contents); })).pipe(process.stdout);
194 return;
195 }
196
197 stream.pipe(gulp.dest('dist'));
198}
199
200gulp.task('append-languages', function() {
201 var languageCode = [];

Callers 1

gulpfile.jsFile · 0.85

Calls 2

_getDestinationPathFunction · 0.85
_getCommentFunction · 0.85

Tested by

no test coverage detected