How to use the gulp-append-prepend.prependFile function in gulp-append-prepend

To help you get started, we’ve selected a few gulp-append-prepend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OpenCircuits / OpenCircuits / gulpfile.js View on Github external
function testsBuild() {
    // Combine js files and append tests
    return gulp.src(getPaths().map(function(f) { return 'site/public/' + f; })) // Get rid of prepend
      .pipe(concat('tests/index.js'))
      .pipe(gap.prependFile('tests/prepend.js'))
      .pipe(gap.appendText('start();'))
      .pipe(addsrc.append(getTestPaths().map(function (f) { return 'tests/public/' + f; })))
      .pipe(concat('tests/index.js'))
      .pipe(gulp.dest('.'));
}
github CosmoMyzrailGorynych / FilterJS / gulpfile.js View on Github external
const compileRiot = () =>
    gulp.src('./src/riotTags/**')
    .pipe(riot({
        compact: false,
        template: 'pug'
    }))
    .pipe(concat('riot.js'))
    .pipe(gap.prependFile('./eslintfix.js'))
    .pipe(gulp.dest('./app/js'));
github wasikuss / select2-multi-checkboxes / gulpfile.js View on Github external
function build() {
  return gulp.src(paths.includes)
    .pipe(replace('define([', function() {
      var pathObj = path.parse(path.relative('src', this.file.path));
      var name = path.format(Object.assign({}, pathObj, { ext: null, base: null }));
      return 'define(\'' + name + '\', [';
    }))
    .pipe(concat('select2.multi-checkboxes.js', { newLine: '\n\n' }))
    .pipe(indent())
    .pipe(gap.prependFile('build/wrapper.start.js', { trim: false }))
    .pipe(gap.appendFile('build/wrapper.end.js', { trim: false, separator: '' }))
    .pipe(gulp.dest('build'));
};

gulp-append-prepend

Simple Gulp plugin to append/prepend.

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis