Giter Site home page Giter Site logo

gulp-yarn's Introduction

Gulp-Yarn

Automatically install node modules using Yarn.

Because we emoji=heart Yarn!

Travis Status Coverage Status npm version npm downloads xo Greenkeeper badge


Installation

# npm
$ npm install gulp-yarn --save-dev

# yarn
$ yarn add gulp-yarn -D

Quick Start

BASIC: Better performance when in same directory.

var gulp = require('gulp');
var yarn = require('gulp-yarn');

gulp.task('yarn', function() {
    return gulp.src(['./package.json'])
        .pipe(yarn());
});

PRO: Remember to include yarn.lock file.

var gulp = require('gulp');
var yarn = require('gulp-yarn');

gulp.task('yarn', function() {
    return gulp.src(['./package.json', './yarn.lock'])
        .pipe(gulp.dest('./dist'))
        .pipe(yarn({
            production: true
        }));
});

Options

Option Description Type
production Using the --production flag, or when the NODE_ENV environment variable is set to production, Yarn will not install any package listed in devDependencies. Boolean
dev Yarn will only install listed devDependencies. Boolean
flat Only allow one version of a package. On the first run this will prompt you to choose a single version for each package that is depended on at multiple version ranges. Boolean
force This refetches all packages, even ones that were previously installed. Boolean
ignoreEngines Ignore all the required engines force by some packages. Boolean
noBinLinks None of node_module bin links getting created. Boolean
noProgress Disable progress bar Boolean
noLockfile Don't read or generate a lockfile Boolean
ignoreScripts Don't run npm scripts during installation Boolean
nonInteractive Using the '--non-interactive' flag of yarn to avoid that during the resolution (yarn install) a user input is needed. 2770 Boolean
args Pass any argument with -- to execute with yarn String/Array

Test

#run mocha test with istanbul
yarn test

Contribute

Contributions are always welcome, no matter how large or small.

gulp-yarn's People

Contributors

billyblaze avatar bys92 avatar dudeofawesome avatar glebec avatar greenkeeper[bot] avatar madleech avatar warapitiya 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.