4.0.1 • Published 3 years ago
gulp-yarn v4.0.1
SUPPORT
| node-version | gulp-yarn |
|---|---|
| >= v14 | v4 |
| >= v10 | v3 |
| Older | v1 |
Install
# npm
$ npm install gulp-yarn --save-dev
# yarn
$ yarn add gulp-yarn -DUsage
BASIC: Better performance when in same directory.
const { src } = require('gulp');
var yarn = require('gulp-yarn');
const yarnTask = function () {
return src(['./package.json'])
.pipe(yarn());
};PRO: Remember to include yarn.lock file.
const { src, dest } = require('gulp');
var yarn = require('gulp-yarn');
const yarnTask = function () {
return src(['./package.json'])
.pipe(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 testContribute
Contributions are always welcome, no matter how large or small.
4.0.1
3 years ago
4.0.0
3 years ago
3.0.0
5 years ago
2.0.0
8 years ago
2.0.0-beta.3
8 years ago
2.0.0-beta.2
8 years ago
1.0.1
8 years ago
1.0.0
9 years ago
1.0.0-alpha.2
9 years ago
1.0.0-alpha.1
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago
0.0.5
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago