Tabnine Logo For Javascript
tag
Code IndexAdd Tabnine to your IDE (free)

How to use
tag
function
in
git-rev

Best JavaScript code snippets using git-rev.tag(Showing top 2 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();
});
git-rev(npm)tag

Most used git-rev functions

  • branch
  • long
  • short

Popular in JavaScript

  • webpack
    Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
  • lodash
    Lodash modular utilities.
  • debug
    small debugging utility
  • mkdirp
    Recursively mkdir, like `mkdir -p`
  • async
    Higher-order functions and common patterns for asynchronous code
  • winston
    A logger for just about everything.
  • q
    A library for promises (CommonJS/Promises/A,B,D)
  • chalk
    Terminal string styling done right
  • semver
    The semantic version parser used by npm.
  • From CI to AI: The AI layer in your organization
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