How to use the minimist.version function in minimist

To help you get started, we’ve selected a few minimist 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 angular / material / gulp / config.js View on Github external
const argsVersion = require('minimist')(process.argv.slice(2)).version;
const currentVersion = require('../package.json').version;
const VERSION = argsVersion || currentVersion;

module.exports = {
  banner:
  '/*!\n' +
  ' * AngularJS Material Design\n' +
  ' * https://github.com/angular/material\n' +
  ' * @license MIT\n' +
  ' * v' + VERSION + '\n' +
  ' */\n',
  jsCoreFiles: [
    'src/core/*.js',
    'src/core/util/autofocus.js',
    'src/core/util/color.js',
    'src/core/util/constant.js',