How to use gulp-print - 10 common examples

To help you get started, we’ve selected a few gulp-print 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 JamesCraster / OpenWerewolf / semantic / tasks / docs / serve.js View on Github external
var
        lessPath,

        stream,
        compressedStream,
        uncompressedStream,

        isDefinition,
        isPackagedTheme,
        isSiteTheme,
        isConfig
      ;

      // log modified file
      gulp.src(file.path)
        .pipe(print(log.modified))
      ;

      /*--------------
         Find Source
      ---------------*/

      // recompile on *.override , *.variable change
      isConfig        = (file.path.indexOf('theme.config') !== -1 || file.path.indexOf('site.variables') !== -1);
      isPackagedTheme = (file.path.indexOf(source.themes) !== -1);
      isSiteTheme     = (file.path.indexOf(source.site) !== -1);
      isDefinition    = (file.path.indexOf(source.definitions) !== -1);

      if(isConfig) {
        // console.info('Rebuilding all files');
        // cant rebuild paths are wrong
        // gulp.start('build-docs');
github JamesCraster / OpenWerewolf / semantic / tasks / watch.js View on Github external
var
        lessPath,

        stream,
        compressedStream,
        uncompressedStream,

        isDefinition,
        isPackagedTheme,
        isSiteTheme,
        isConfig
      ;

      // log modified file
      gulp.src(file.path)
        .pipe(print(log.modified))
      ;

      /*--------------
         Find Source
      ---------------*/

      // recompile on *.override , *.variable change
      isConfig        = (file.path.indexOf('theme.config') !== -1 || file.path.indexOf('site.variables') !== -1);
      isPackagedTheme = (file.path.indexOf(source.themes) !== -1);
      isSiteTheme     = (file.path.indexOf(source.site) !== -1);
      isDefinition    = (file.path.indexOf(source.definitions) !== -1);

      if(isConfig) {
        console.info('Rebuilding all UI');
        // impossible to tell which file was updated in theme.config, rebuild all
        gulp.start('build-css');
github JamesCraster / OpenWerewolf / semantic / tasks / rtl / watch.js View on Github external
var
        lessPath,

        stream,
        compressedStream,
        uncompressedStream,

        isDefinition,
        isPackagedTheme,
        isSiteTheme,
        isConfig
      ;

      // log modified file
      gulp.src(file.path)
        .pipe(print(log.modified))
      ;

      /*--------------
         Find Source
      ---------------*/

      // recompile on *.override , *.variable change
      isConfig        = (file.path.indexOf('.config') !== -1);
      isPackagedTheme = (file.path.indexOf(source.themes) !== -1);
      isSiteTheme     = (file.path.indexOf(source.site) !== -1);
      isDefinition    = (file.path.indexOf(source.definitions) !== -1);


      if(isConfig) {
        console.log('Change detected in theme config');
        // cant tell which theme was changed in theme.config, rebuild all
github synzen / Discord.RSS / web / client / src / semantic / tasks / watch.js View on Github external
var
        lessPath,

        stream,
        compressedStream,
        uncompressedStream,

        isDefinition,
        isPackagedTheme,
        isSiteTheme,
        isConfig
      ;

      // log modified file
      gulp.src(file.path)
        .pipe(print(log.modified))
      ;

      /*--------------
         Find Source
      ---------------*/

      // recompile on *.override , *.variable change
      isConfig        = (file.path.indexOf('theme.config') !== -1 || file.path.indexOf('site.variables') !== -1);
      isPackagedTheme = (file.path.indexOf(source.themes) !== -1);
      isSiteTheme     = (file.path.indexOf(source.site) !== -1);
      isDefinition    = (file.path.indexOf(source.definitions) !== -1);

      if(isConfig) {
        console.info('Rebuilding all UI');
        // impossible to tell which file was updated in theme.config, rebuild all
        gulp.start('build-css');
github synzen / Discord.RSS / web / client / src / semantic / tasks / rtl / watch.js View on Github external
var
        lessPath,

        stream,
        compressedStream,
        uncompressedStream,

        isDefinition,
        isPackagedTheme,
        isSiteTheme,
        isConfig
      ;

      // log modified file
      gulp.src(file.path)
        .pipe(print(log.modified))
      ;

      /*--------------
         Find Source
      ---------------*/

      // recompile on *.override , *.variable change
      isConfig        = (file.path.indexOf('.config') !== -1);
      isPackagedTheme = (file.path.indexOf(source.themes) !== -1);
      isSiteTheme     = (file.path.indexOf(source.site) !== -1);
      isDefinition    = (file.path.indexOf(source.definitions) !== -1);


      if(isConfig) {
        console.log('Change detected in theme config');
        // cant tell which theme was changed in theme.config, rebuild all
github skydiver / nextjs-semantic / .semantic / tasks / docs / build.js View on Github external
function copyExample() {
    // copy src/ to server
    console.info('Copying examples');
    return gulp.src('examples/**/*.*')
      .pipe(gulp.dest(output.examples))
      .pipe(print(log.created));
  }
github skydiver / nextjs-semantic / .semantic / tasks / docs / serve.js View on Github external
.on('all', function (event, path) {
      // We don't handle deleted files yet
      if (event === 'unlink' || event === 'unlinkDir') {
        return;
      }
      return gulp.src(path, {
        base: 'src/'
      })
        .pipe(gulp.dest(config.paths.output.less))
        .pipe(print(log.created))
        ;
    })
  ;
github Heigvd / Wegas / wegas-app / src / main / webapp / wegas-lobby / gulp / build.js View on Github external
gulp.task('debug-build', ['inject'], function(cb) {
    gulp.src('../../../src/main/webapp/wegas-lobby/**/*.js')
        .pipe($.cache($.uglify().on("error", function(error) {
            console.log("Error: " + error);
        }))).pipe(print());


    return gulp.src(paths.tmp + '/serve/*.jsp')
        .pipe($.useref())
        .pipe(gulp.dest(paths.dist + '/'))
        .pipe($.size({
            title: paths.dist + '/',
            showFiles: true
        }));
});
gulp.task('images', function() {
github zkoss / zk / gulpfile.js View on Github external
function typescript_build(src, dest) {
    return gulp.src(src + '/**/*.ts')
        .pipe(sourcemaps.init())
        .pipe(babel({
            root: __dirname
        }))
        .pipe(rename({suffix: '.src'}))
        .pipe(gulp.dest(dest))
        .pipe(uglify())
        .pipe(rename(function (path) {
            path.basename = path.basename.replace(/\.src/, '');
        }))
        .pipe(sourcemaps.write('.', {addComment: false, includeContent: false}))
        .pipe(gulp.dest(dest))
        .pipe(print());
}
github skydiver / nextjs-semantic / .semantic / tasks / build / assets.js View on Github external
function build(src, config) {
  return gulp.src(src, {base: config.paths.source.themes})
    .pipe(gulpif(config.hasPermissions, chmod(config.parsedPermissions)))
    .pipe(gulp.dest(config.paths.output.themes))
    .pipe(print(log.created))
    ;
}

gulp-print

Prints names of files to the console so that you can see what's going through the the gulp pipe.

MIT
Latest version published 6 years ago

Package Health Score

47 / 100
Full package analysis

Popular gulp-print functions