All Projects → warapitiya → gulp-yarn

warapitiya / gulp-yarn

Licence: MIT License
Automatically install node modules using Yarn. 😻

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gulp-yarn

js-stack-from-scratch
🌺 Russian translation of "JavaScript Stack from Scratch" from the React-Theming developers https://github.com/sm-react/react-theming
Stars: ✭ 394 (+1690.91%)
Mutual labels:  gulp, yarn
gulp-esbuild
gulp plugin for esbuild bundler
Stars: ✭ 39 (+77.27%)
Mutual labels:  gulp, gulp-plugin
gulp-merge-json
A gulp plugin to merge JSON & JSON5 files into one file
Stars: ✭ 35 (+59.09%)
Mutual labels:  gulp, gulp-plugin
gulp-sort
Sort files in stream by path or any custom sort comparator
Stars: ✭ 22 (+0%)
Mutual labels:  gulp, gulp-plugin
gulp-tinypng-compress
TinyPNG API wrapper for compressing PNG & JPG images
Stars: ✭ 49 (+122.73%)
Mutual labels:  gulp, gulp-plugin
gulp-sitemap
Generate a search engine friendly sitemap.xml using a Gulp stream
Stars: ✭ 60 (+172.73%)
Mutual labels:  gulp, gulp-plugin
anyfs
Portable file system for Node
Stars: ✭ 17 (-22.73%)
Mutual labels:  gulp, gulp-plugin
Gulp Html Replace
Replace build blocks in HTML. Like useref but done right.
Stars: ✭ 222 (+909.09%)
Mutual labels:  gulp, gulp-plugin
gulp-recess
[DEPRECATED] Lint CSS and LESS with RECESS
Stars: ✭ 42 (+90.91%)
Mutual labels:  gulp, gulp-plugin
yarn-global
A set of useful methods for @yarnpkg
Stars: ✭ 12 (-45.45%)
Mutual labels:  yarn, yarn-packages
gulp-xo
Validate files with XO
Stars: ✭ 37 (+68.18%)
Mutual labels:  gulp, gulp-plugin
gulp-iife
A Gulp plugin for wrapping JavaScript code in IIFEs.
Stars: ✭ 39 (+77.27%)
Mutual labels:  gulp, gulp-plugin
Forward-Framework
A killer WordPress theme framework built using underscores, gulp, sass, bourbon neat, bower & browsersync.
Stars: ✭ 23 (+4.55%)
Mutual labels:  gulp, yarn
gulp-es6-transpiler
[DEPRECATED] Transpile ES2015 to ES5
Stars: ✭ 47 (+113.64%)
Mutual labels:  gulp, gulp-plugin
gulp-upload-qcloud
腾讯云 cos 静态资源上传 gulp 插件
Stars: ✭ 18 (-18.18%)
Mutual labels:  gulp, gulp-plugin
gulp-ava
Run AVA tests
Stars: ✭ 56 (+154.55%)
Mutual labels:  gulp, gulp-plugin
Gulp Tap
Easily tap into a gulp pipeline without creating a plugin.
Stars: ✭ 158 (+618.18%)
Mutual labels:  gulp, gulp-plugin
Gulp Webpack Starter
Gulp Webpack Starter - fast static website builder. The starter uses gulp toolkit and webpack bundler. Download to get an awesome development experience!
Stars: ✭ 199 (+804.55%)
Mutual labels:  gulp, yarn
gulp-px2rem
This is a gulp plugin for node-px2rem.
Stars: ✭ 19 (-13.64%)
Mutual labels:  gulp, gulp-plugin
docker-npm
npm, yarn, node, npx, bower, grunt, gulp, generate-md - build and dev tools.
Stars: ✭ 53 (+140.91%)
Mutual labels:  gulp, yarn

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].