gulp-yarn
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.0 • Public • Published

    Gulp-Yarn

    Automatically install node modules using Yarn.

    Because we emoji=heart Yarn!

    Travis Status Coverage Status npm version npm downloads eslint


    Installation

    SUPPORT: v3 only support Nodejs >= v10.

    # 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 jest test
    yarn test

    Contribute

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

    Install

    npm i gulp-yarn

    DownloadsWeekly Downloads

    2,736

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    277 kB

    Total Files

    9

    Last publish

    Collaborators

    • warapitiya