GithubHelp home page GithubHelp logo

serife19 / blarn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iansu/blarn

0.0 0.0 0.0 762 KB

A Yarn wrapper with extra functionality

License: MIT License

JavaScript 0.78% TypeScript 99.22%

blarn's Introduction

Blarn

A Yarn wrapper with extra functionality

Features

  • Automatically add and remove TypeScript @types packages when adding or removing packages in a TypeScript project
  • List linked and linkable packages, unlink all packages and automatically rerun Yarn after unlinking packages.

Usage

Requirements

  • You must have Yarn 1 installed and available on your path

Installation

// npm
npm install -g blarn

// yarn
yarn global add blarn

Upgrading

// npm
npm install -g blarn

// yarn
yarn global upgrade blarn --latest

Running Yarn commands

Blarn will pass all commands and arguments through to Yarn. When adding packages in a TypeScript project it will execute a second yarn add command to add any available @types packages as dev dependencies. When removing packages any corresponding @types packages will be added to the list of packages to remove.

Examples

Adding packages

blarn add yargs

If you run this command in a TypeScript project yargs will be installed as a dependency and @types/yargs will be installed as a dev dependency. If you run this command in a JavaScript project only yargs will be installed as a dependency.

Removing packages

blarn remove yargs

If you run this command in a TypeScript project and @types/yargs exists in package.json both yargs and @types/yargs will be removed. If you run this command in a JavaScript project only yargs will be removed.

Showing linked packages in a project

blarn linked

Showing all packages available to be linked

blarn linkable

Unlinking all linked packages in a project

blarn unlink-all

Contributing

Running locally

  1. Fork and clone this repo
  2. Run yarn
  3. Run yarn build or yarn watch
  4. Run yarn start or bin/blarn.js

Acknowledgements

This project was inspired by Yarn 2 and Bojack Horseman.

blarn's People

Contributors

iansu 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.