Tabnine Logo For Javascript
git-rev
Code IndexAdd Tabnine to your IDE (free)

How to use git-rev

Best JavaScript code snippets using git-rev(Showing top 5 results out of 315)

origin: praveenuiarchitect2/UI-Examples

gitRev.tag((tag) => {
  gitData.tag = tag;
  resolve(tag);
 });
origin: godaddy/timings

// First, add the current git release to the config
git.tag(apiVer => {
 const semver = require('semver');
 apiVer = semver.valid(apiVer);
 if (!apiVer) {
  // This is probably an NPM install - get version from package.json
  const pkg = require('./package.json');
  apiVer = semver.valid(pkg.version);
 }
 nconf.set('env:APP_VERSION', apiVer || 'unknown');
 logger.debug(`timings API - CONFIG - Following settings are in use: \n${JSON.stringify(nconf.get(), null, 2)}`);
 logger.info(`timings API - CONFIG - Using config ["${nconf.get('env:APP_CONFIG') || '{unknown}'}"]`);
 logger.info(`timings API - STATUS - Server v${nconf.get('env:APP_VERSION') || '{unknown}'} is running at ` +
  `http://${nconf.get('env:HOST')}:${nconf.get('env:HTTP_PORT')}`);

 // Check ES (if in use)
 if (nconf.get('env:ES_HOST')) {
  const runES = require('./src/run-es');
  const checkES = new runES.Elastic();
  checkES.setup();
 } else {
  logger.warn(`timings API - CONFIG - No Elasticsearch HOST in config [${nconf.get('env:APP_CONFIG')}] - data will NOT be saved!`);
 }
 startListen();
});
origin: praveenuiarchitect2/UI-Examples

gitRev.branch((branch) => {
  gitData.branch = branch;
  resolve(branch);
 });
origin: praveenuiarchitect2/UI-Examples

gitRev.long((longVersion) => {
  gitData.long = longVersion;
  resolve(longVersion);
 });
origin: praveenuiarchitect2/UI-Examples

gitRev.short((short) => {
  gitData.short = short;
  resolve(short);
 });
git-rev(npm)

Most used git-rev functions

  • tag
  • branch
  • long
  • short

Popular in JavaScript

  • axios
    Promise based HTTP client for the browser and node.js
  • http
  • yargs
    yargs the modern, pirate-themed, successor to optimist.
  • mime-types
    The ultimate javascript content-type utility.
  • winston
    A logger for just about everything.
  • colors
    get colors in your node.js console
  • qs
    A querystring parser that supports nesting and arrays, with a depth limit
  • mkdirp
    Recursively mkdir, like `mkdir -p`
  • redis
    Redis client library
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now