How to use the gulp-changed.compareSha1Digest function in gulp-changed

To help you get started, we’ve selected a few gulp-changed 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 CMSgov / design-system / tools / gulp / sass / index.js View on Github external
assetPaths: [
            path.resolve(__dirname, '../../../', cwd, 'images'),
            path.resolve(__dirname, '../../../', 'packages/core/images')
          ],
          strict: true
        })
      );
    }

    return gulp
      .src(`${cwd}src/**/*.scss`)
      .pipe(
        changed(dest, {
          extension: '.css',
          // compare contents so files that import the updated file also get piped through
          hasChanged: changed.compareSha1Digest
        })
      )
      .pipe(gulpIf(createSourcemaps, sourcemaps.init()))
      .pipe(sassCompiler)
      .pipe(gulpIf(createSourcemaps, sourcemaps.write()))
      .pipe(postcss(postcssPlugins))
      .pipe(gulp.dest(dest))
      .pipe(count(`## Sass files processed in ${cwd}`))
      .pipe(shared.browserSync.stream({ match: '**/public/styles/*.css' })); // Auto-inject into docs
  }
github atdrago / negative / gulpfile.js View on Github external
function compileJs(src, dest, filename) {
	return gulp.src(src)
		.pipe(concat(filename))
		.pipe(wrap("(function (window, document, JSON) { <%= contents %> })(window, document, JSON);"))
		.pipe(gulpUglify({}, uglifyJs).on('error', (err) => console.log(err)))
		.pipe(changed(jsDest, {
			hasChanged: changed.compareSha1Digest
		}))
		.pipe(gulp.dest(dest));
}
github artifex404 / sage-timber / gulpfile.js View on Github external
gulp.task('wiredep', function() {
  var wiredep = require('wiredep').stream;
  return gulp.src(project.css)
    .pipe(wiredep())
    .pipe(changed(path.source + 'styles', {
      hasChanged: changed.compareSha1Digest
    }))
    .pipe(gulp.dest(path.source + 'styles'));
});
github postaljs / monologue.js / gulpfile.js View on Github external
gulp.task( "format", [ "jshint" ], function() {
	return gulp.src( [ "**/*.js", "!node_modules/**" ] )
        .pipe( jscs( {
	configPath: ".jscsrc",
	fix: true
        } ) )
        .pipe( gulpChanged( ".", { hasChanged: gulpChanged.compareSha1Digest } ) )
        .pipe( gulp.dest( "." ) );
} );
github Interfacelab / ilab-media-tools / assets / gulpfile.js View on Github external
gulp.task('wiredep', function() {
    var wiredep = require('wiredep').stream;
    return gulp.src(project.css)
        .pipe(wiredep())
        .pipe(changed(path.source + 'css', {
            hasChanged: changed.compareSha1Digest
        }))
        .pipe(gulp.dest(path.source + 'css'));
});
github postaljs / postal.js / gulpfile.js View on Github external
gulp.task( "format-src", [ "jshint" ], function() {
	return gulp.src( [ "./src/**/*.js", "!node_modules/**" ] )
		.pipe( jscs( {
			configPath: ".jscsrc",
			fix: true
		} ) )
		.pipe( gulpChanged( "./src", { hasChanged: gulpChanged.compareSha1Digest } ) )
		.pipe( gulp.dest( "./src" ) );
} );
github asuh / sage-starter / gulpfile.js View on Github external
gulp.task('wiredep', function() {
  var wiredep = require('wiredep').stream;
  return gulp.src(project.css)
    .pipe(wiredep())
    .pipe(changed(path.source + 'styles', {
      hasChanged: changed.compareSha1Digest
    }))
    .pipe(gulp.dest(path.source + 'styles'));
});
github roots / sage / gulpfile.js View on Github external
gulp.task('wiredep', function() {
  var wiredep = require('wiredep').stream;
  return gulp.src(project.css)
    .pipe(wiredep())
    .pipe(changed(path.source + 'styles', {
      hasChanged: changed.compareSha1Digest
    }))
    .pipe(gulp.dest(path.source + 'styles'));
});
github elierotenberg / react-animate / config / gulp / tasks / build.js View on Github external
return () => gulp.src(misc)
  .pipe(changed(path.join(dist, platform, env, 'lib'), { hasChanged: changed.compareSha1Digest }))
  .pipe(gulp.dest(path.join(dist, platform, env, 'lib')));
}
github studiorabota / sage-twig-theme / gulpfile.js View on Github external
gulp.task('wiredep', function() {
  var wiredep = require('wiredep').stream;
  return gulp.src(project.css)
    .pipe(wiredep())
    .pipe(changed(path.source + 'styles', {
      hasChanged: changed.compareSha1Digest
    }))
    .pipe(gulp.dest(path.source + 'styles'));
});

gulp-changed

Only pass through changed files

MIT
Latest version published 1 year ago

Package Health Score

59 / 100
Full package analysis