How to use the better-console.log function in better-console

To help you get started, we’ve selected a few better-console 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 hackatbrown / 2015.hackatbrown.org / ui / gulpfile.js View on Github external
function commitFiles() {
      // commit files
      console.log('Committing files', commitArgs);
      gulp.src('**/*', gitOptions)
        .pipe(git.add(gitOptions))
        .pipe(git.commit(commitMessage, { args: commitArgs, cwd: outputDirectory }))
        .on('error', function(error) {
          console.log('Nothing new to commit');
          stepRepo();
        })
        .on('finish', function(callback) {
          pullFiles();
        })
      ;
    }
    function pullFiles() {
github tombatossals / angular-openlayers-directive / bower_components / semantic-ui / gulpfile.js View on Github external
function commitFiles() {
      // commit files
      console.log('Committing files', commitArgs);
      gulp.src('**/*', gitOptions)
        .pipe(git.add(gitOptions))
        .pipe(git.commit(commitMessage, { args: commitArgs, cwd: outputDirectory }))
        .on('error', function(error) {
          console.log('Nothing new to commit');
          stepRepo();
        })
        .on('finish', function(callback) {
          pullFiles();
        })
      ;
    }
    function pullFiles() {
github lancetw / react-isomorphic-bundle / styles / semantic / tasks / install.js View on Github external
/*--------------
   Exit Conditions
  ---------------*/

  // if config exists and user specifies not to proceed
  if(answers.overwrite !== undefined && answers.overwrite == 'no') {
    return;
  }
  console.clear();
  if(install.shouldAutoInstall()) {
    console.log('Auto-Installing (Without User Interaction)');
  }
  else {
    console.log('Installing');
  }
  console.log('------------------------------');


  /*--------------
        Paths
  ---------------*/

  var
    installPaths = {
      config            : files.config,
      configFolder      : folders.config,
      site              : answers.site || folders.site,
      themeConfig       : files.themeConfig,
      themeConfigFolder : folders.themeConfig
    }
  ;
github hackatbrown / 2015.hackatbrown.org / ui / gulpfile.js View on Github external
json = {
          paths: {
            source: {},
            output: {}
          }
        }
      ;

      // exit if config exists and user specifies no overwrite
      if(answers.overwrite !== undefined && answers.overwrite == 'no') {
        return;
      }

      console.clear();
      console.log('Installing');
      console.log('------------------------------');

      // create site files
      if(siteExists) {
        console.info('Site folder exists, merging files (no overwrite)', siteDestination);
      }
      else {
        console.info('Creating site theme folder', siteDestination);
      }
      // copy recursively without overwrite
      wrench.copyDirSyncRecursive(config.templates.site, siteDestination, settings.wrench.recursive);

      // adjust less variable for site folder location
      console.info('Adjusting @siteFolder', sitePathReplace);
      if(themeConfigExists) {
        gulp.src(config.files.site)
          .pipe(plumber())
github tombatossals / angular-openlayers-directive / bower_components / semantic-ui / tasks / config / project / tasks.js View on Github external
errorHandler: function(error) {
          if(error.filename.match(/theme.less/)) {
            console.error('Looks like your theme.config is out of date. You will need to add new elements from theme.config.example');
          }
          else {
            console.log(error);
            this.emit('end');
          }
        }
      }
github hackatbrown / 2015.hackatbrown.org / ui / gulpfile.js View on Github external
function tagFiles() {
      console.log('Tagging new version ', version);
      git.tag(version, 'Updated version from semantic-ui (automatic)', function (err) {
        pushFiles();
      });
    }
    function pushFiles() {
github hackatbrown / 2015.hackatbrown.org / ui / gulpfile.js View on Github external
.on('error', function(error) {
          console.log('Nothing new to merge', error);
        })
        .on('finish', function(callback) {
github tombatossals / angular-openlayers-directive / bower_components / semantic-ui / gulpfile.js View on Github external
.on('error', function(error) {
          console.log('Nothing new to merge', error);
        })
        .on('finish', function(callback) {

better-console

A better console for Node.js

BSD
Latest version published 7 years ago

Package Health Score

44 / 100
Full package analysis