GithubHelp home page GithubHelp logo

isabella232 / tag-versions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webpack-contrib/tag-versions

0.0 0.0 0.0 98 KB

A commandline wrapper around omichelsen/compare-versions to compare dist-tags

License: MIT License

JavaScript 100.00%

tag-versions's Introduction

npm node deps tests chat

tag-versions

A command line tool, installed globally on build that wrapps omichelsen/compare-versions for use in our CircleCI 2.0 build containers.

Requirements

This module requires a minimum of Node v6.9.0.

Getting Started

To begin, you'll need to install tag-versions:

$ npm i -g @webpack-contrib/tag-versions

Wraps compare-versions to perform semver comparisons on libraries dist-tags consumable from a simple bash script( see below ).

CLI

$ compver --name webpack --gte next --lt latest

  Options
    --name            The name of the pacakge to compare.
    --gte             The dist-tag used in the left side of the comparison.
    --lt              The dist-tag used in the right side of the comparison.

  Intended usage
    $ if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then echo n00p; else npm run test ; fi
  
  Examples
    $ compver --name superLib --gte '10.1.8' --lt '10.0.4' // outputs 1
    $ compver --name superLib --gte '10.0.8' --lt '10.0.8' // outputs 0
    $ compver --name superLib --gte '10.1.1' --lt '10.2.2' // outputs -1

License

MIT

tag-versions's People

Contributors

joshwiens avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.