How to use vinyl-paths - 10 common examples

To help you get started, we’ve selected a few vinyl-paths 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 facelessuser / pymdown-extensions / gulpfile.babel.js View on Github external
}
    )
  ].filter(t => t)

  return gulp.src("./docs/src/scss/extra*.scss")
    .pipe(sass({
      includePaths: [
        "node_modules/modularscale-sass/stylesheets",
        "node_modules/material-design-color",
        "node_modules/material-shadows",
        "node_modules/mermaid/src/themes"]
    }).on("error", sass.logError))
    .pipe(postcss(plugins))
    .pipe(gulpif(config.compress.enabled, cleanCSS()))
    .pipe(
      vinylPaths(
        filepath => {
          return concat(path.basename(filepath, ".scss"))
        }))

    // Revisioning
    .pipe(gulpif(config.revision, rev()))
    .pipe(gulp.dest(config.folders.theme))
    .pipe(gulpif(config.revision, rev.manifest("manifest.json", {base: config.folders.theme, merge: true})))
    .pipe(gulpif(config.revision, gulp.dest(config.folders.theme)))
})
github fedspendingtransparency / data-act-broker-web-app / gulpfile.babel.js View on Github external
const cssFile = 'main.' + commitHash + '.css';
    const jsFile = 'app.' + commitHash + '.js';
    const coreFile = 'core.' + coreHash + '.js';

    return merge(
        gulp.src('./public/index.html')
            // replace the app.js script reference with one that points to the minified file
            // add in a ?v=[git hash] param to override browser caches when a new version is deployed
            .pipe(replace('app.js', jsFile))
            .pipe(replace('core.js', coreFile))
            // now do the same thing (without minification) for the CSS file
            .pipe(replace('main.css', cssFile))
            .pipe(gulp.dest('./public')),
        // now we have to rename the CSS file to match (JS renaming is handled by minification process)
        gulp.src('./public/css/main.css')
            .pipe(vinylPaths(del))
            .pipe(rename(cssFile))
            .pipe(gulp.dest('./public/css'))
    );
});
github 2600hz / monster-ui / gulp / tasks / require.js View on Github external
const cleanRequire = () => gulp
	.src(require, {
		allowEmpty: true,
		read: false
	})
	.pipe(vinylPaths(del));
github lookfirst / gulp-helpers / src / tasks / clean.js View on Github external
gulp.task(options.taskName, options.taskDeps, () => {
			if (!_isArray(options.src)) {
				options.src = [options.src];
			}
			return gulp.src(options.src).pipe(vinylPaths(del));
		});
	}
github material-components / material-components-web / gulpfile.babel.js View on Github external
gulp.task('publish:release', ['_release'], () => {
  return gulp.src('_release')
    .pipe($.subtree({
      remote: 'origin',
      branch: 'release'
    }))
    .pipe(vinylPaths(del));
});
github 2600hz / monster-ui / gulp / tasks / clean-move.js View on Github external
export const cleanTmp = () => gulp
	.src(tmp, {
		allowEmpty: true,
		read: false
	})
	.pipe(vinylPaths(del));
github VadimDez / ng2-pdf-viewer / build / lib / material-design-lite / gulpfile.babel.js View on Github external
gulp.task('publish:release', ['_release'], () => {
  return gulp.src('_release')
    .pipe($.subtree({
      remote: 'origin',
      branch: 'release'
    }))
    .pipe(vinylPaths(del));
});
github facelessuser / pymdown-extensions / gulpfile.babel.js View on Github external
gulp.task("mkdocs:clean", () => {
  return gulp.src(config.folders.mkdocs, {allowEmpty: true})
    .pipe(vinylPaths(del))
})

vinyl-paths

Get the file paths in a `vinyl` stream

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis

Popular vinyl-paths functions