How to use the storyboard.mainStory.info function in storyboard

To help you get started, we’ve selected a few storyboard 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 guigrpa / storyboard / packages / storyboard-cli / src / index.js View on Github external
  .on('data', (line) => mainStory.info(line))
  .on('end', () => { if (!program.server) process.exit(); });
github compactd / compactd / server / src / CompactdApplication.ts View on Github external
_write(chunk: string, enc: string, next: Function) {
        const str = chunk.toString();
        if (str && str.length) {
          mainStory.info('http', str.replace('\n', ''));
        } 
        next();
      }
    }
github guigrpa / mady / src / server / httpServer.js View on Github external
httpServer.on('listening', () => {
    mainStory.info('http', `Listening on port ${chalk.cyan.bold(port)}`);
  });
  httpServer.listen(port);
github compactd / compactd / server / src / DevApplication.ts View on Github external
log: (data) => {
          mainStory.info('webpack', data);
        }
      });
github vinz243 / cassette / src / server / features / scanner / scanner.js View on Github external
mainStory.trace('scanner', 'Added a new track', {attach: file.props});
        }).catch(err => {
          mainStory.warn('scanner', err.message);
          mainStory.trace('scanner', 'Library scan encountered an error', {attach: err});
        });
      }
      return Promise.resolve();
    case 'unlink':
      return File.findOne({path: filePath}).then((file) => {
        if (!file) {
          return Promise.resolve();
        }
        return file.remove();
      });
    case 'mkdir':
      mainStory.info('scanner', 'Scanning new dir ' + filePath);
    case 'rmdir':
      return Promise.resolve();
  }
}
const operationMapperFactory = module.exports.operationMapperFactory = (models, mediastic) => {
github compactd / compactd / server / src / features / configure / DatabaseConfigurator.ts View on Github external
async endAdminParty () {
    const node = await this.getNode();

    mainStory.info('configure', 'Ending admin party...');

    const url = `http://${
      this.opts.couchHost
    }:${this.opts.couchPort}/_node/${
      node
    }/_config/admins/${this.opts.adminUsername}`;

    mainStory.info('configure', 'PUT ' + url);

    const res: any = await fetch(url, {
        method: 'PUT',
        body: `"${this.opts.adminPassword}"`
      }).then((res) => res.json());

    mainStory.info('configure', 'CouchDB responded with', {attach: res});
  }
  getNode (): Promise {
github guigrpa / mady / src / server / db.js View on Github external
function initStats() {
  calcStats();
  mainStory.info('db', 'Initial stats', { attach: _stats });
}
github guigrpa / mady / src / server / db.js View on Github external
function initKeys() {
  _keyPath = path.join(_localeDir, 'keys.json');
  try {
    fs.statSync(_keyPath);
  } catch (err) {
    saveKeys();
  } finally {
    mainStory.info('db', `Reading file ${chalk.cyan.bold(_keyPath)}...`);
    readKeys();
  }
}
github compactd / compactd / server / src / features / scanner / Scanner.ts View on Github external
async getPatch () {
    const serialized = await this.getSerializedEntries(config.get('dataDirectory'));
    mainStory.info('scanner', `Already scanned ${serialized.length} items...`);
    const staled = FSTree.fromEntries(serialized || []);
    const current = FSTree.fromEntries(this.entries || []);

    return staled.calculatePatch(current);
  }
github guigrpa / oao / src / clean.js View on Github external
new Promise((resolve, reject) => {
          const { pkgPath } = allSpecs[pkgName];
          const nodeModulesPath = path.join(pkgPath, 'node_modules');
          mainStory.info(`Removing ${chalk.cyan.bold(nodeModulesPath)}...`);
          rimraf(nodeModulesPath, err => {
            if (err) {
              reject(err);
              return;
            }
            resolve();
          });
        })
    )

storyboard

End-to-end, hierarchical, real-time, colorful logs and stories

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis