Comparing version
153
package.json
{ | ||
"metapak": { | ||
"data": { | ||
"files": "src/*.ts", | ||
"testFiles": "tests/*.test.ts", | ||
"bundleFiles": [ | ||
"dist", | ||
"src", | ||
"bin" | ||
], | ||
"ignore": [ | ||
"dist" | ||
] | ||
}, | ||
"configs": [ | ||
"main", | ||
"readme", | ||
"jest", | ||
"eslint", | ||
"tsesm", | ||
"codeclimate", | ||
"ghactions" | ||
] | ||
}, | ||
"name": "gulp-cond", | ||
"description": "Ternary operator for Gulp.", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/nfroidure/gulp-cond", | ||
"author": { | ||
"name": "Nicolas Froidure", | ||
"url": "http://www.insertafter.com/blog.html" | ||
"email": "nicolas.froidure@insertafter.com", | ||
"url": "https://insertafter.com/en/index.html" | ||
}, | ||
@@ -23,10 +47,23 @@ "repository": { | ||
], | ||
"main": "src/index.js", | ||
"main": "dist/index.js", | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
"node": ">=20.11.1" | ||
}, | ||
"scripts": { | ||
"test": "node_modules/.bin/mocha tests/*.mocha.js", | ||
"coveralls": "./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage", | ||
"cover": "./node_modules/istanbul/lib/cli.js cover --report html ./node_modules/mocha/bin/_mocha -- tests/*.mocha.js -R spec -t 5000" | ||
"build": "rimraf 'dist' && tsc --outDir dist", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md", | ||
"cli": "env NODE_ENV=${NODE_ENV:-cli}", | ||
"cover": "npm run jest -- --coverage", | ||
"cz": "env NODE_ENV=${NODE_ENV:-cli} git cz", | ||
"format": "npm run prettier", | ||
"jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest", | ||
"lint": "eslint src/*.ts", | ||
"metapak": "metapak", | ||
"precz": "npm run build && npm t && npm run lint && npm run metapak -- -s", | ||
"prettier": "prettier --write src/*.ts", | ||
"preversion": "npm run build && npm t && npm run lint && npm run metapak -- -s", | ||
"rebuild": "swc ./src -s -d dist -C jsc.target=es2022", | ||
"test": "npm run jest", | ||
"type-check": "tsc --pretty --noEmit", | ||
"version": "npm run changelog" | ||
}, | ||
@@ -42,12 +79,96 @@ "keywords": [ | ||
"devDependencies": { | ||
"coveralls": "^2.11.2", | ||
"istanbul": "^0.3.16", | ||
"mocha": "^2.2.5", | ||
"mocha-lcov-reporter": "0.0.2", | ||
"streamtest": "^1.2.1", | ||
"vinyl": "^0.5.0" | ||
"@eslint/js": "^9.7.0", | ||
"@swc/cli": "^0.4.0", | ||
"@swc/core": "^1.6.13", | ||
"@swc/helpers": "^0.5.12", | ||
"@swc/jest": "^0.2.36", | ||
"@types/vinyl": "^2.0.12", | ||
"commitizen": "^4.3.0", | ||
"conventional-changelog-cli": "^5.0.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^9.7.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-jest": "^28.6.0", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"jest": "^29.7.0", | ||
"metapak": "^6.0.1", | ||
"metapak-nfroidure": "18.2.0", | ||
"prettier": "^3.3.3", | ||
"rimraf": "^6.0.1", | ||
"streamtest": "^3.0.1", | ||
"typescript": "^5.5.3", | ||
"typescript-eslint": "^7.16.0", | ||
"vinyl": "^3.0.0" | ||
}, | ||
"dependencies": { | ||
"readable-stream": "^2.0.1" | ||
} | ||
"contributors": [], | ||
"license": "MIT", | ||
"files": [ | ||
"dist", | ||
"src", | ||
"bin", | ||
"LICENSE", | ||
"README.md", | ||
"CHANGELOG.md" | ||
], | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"greenkeeper": { | ||
"ignore": [ | ||
"commitizen", | ||
"cz-conventional-changelog", | ||
"conventional-changelog-cli", | ||
"jest", | ||
"@swc/jest", | ||
"eslint", | ||
"prettier", | ||
"eslint-config-prettier", | ||
"eslint-plugin-prettier", | ||
"typescript-eslint", | ||
"typescript", | ||
"rimraf", | ||
"@swc/cli", | ||
"@swc/core", | ||
"@swc/helpers" | ||
] | ||
}, | ||
"jest": { | ||
"coverageReporters": [ | ||
"lcov" | ||
], | ||
"testPathIgnorePatterns": [ | ||
"/node_modules/" | ||
], | ||
"roots": [ | ||
"<rootDir>/src" | ||
], | ||
"transform": { | ||
"^.+\\.tsx?$": [ | ||
"@swc/jest", | ||
{} | ||
] | ||
}, | ||
"testEnvironment": "node", | ||
"moduleNameMapper": { | ||
"(.+)\\.js": "$1" | ||
}, | ||
"extensionsToTreatAsEsm": [ | ||
".ts" | ||
], | ||
"prettierPath": null | ||
}, | ||
"overrides": { | ||
"eslint": "^9.7.0" | ||
}, | ||
"prettier": { | ||
"semi": true, | ||
"printWidth": 80, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"proseWrap": "always" | ||
}, | ||
"type": "module", | ||
"types": "dist/index.d.ts" | ||
} |
@@ -0,10 +1,15 @@ | ||
[//]: # ( ) | ||
[//]: # (This file is automatically generated by a `metapak`) | ||
[//]: # (module. Do not change it except between the) | ||
[//]: # (`content:start/end` flags, your changes would) | ||
[//]: # (be overridden.) | ||
[//]: # ( ) | ||
# gulp-cond | ||
> A ternary operator for [Gulp](http://gulpjs.com/). | ||
> Ternary operator for Gulp. | ||
[](https://npmjs.org/package/gulp-cond) | ||
[](https://travis-ci.org/nfroidure/gulp-cond) | ||
[](https://david-dm.org/nfroidure/gulp-cond) | ||
[](https://david-dm.org/nfroidure/gulp-cond#info=devDependencies) | ||
[](https://coveralls.io/r/nfroidure/gulp-cond?branch=master) | ||
[](https://github.com/nfroidure/gulp-cond/blob/main/LICENSE) | ||
[//]: # (::contents:start) | ||
## Usage | ||
@@ -18,6 +23,6 @@ | ||
Then, use it to conditionnaly pipe plugins in your `gulpfile.js`: | ||
Then, use it to conditionally pipe plugins in your `gulpfile.js`: | ||
```js | ||
var cond = require('gulp-cond'); | ||
import cond from 'gulp-cond'; | ||
var prod = gulp.env.prod; | ||
@@ -37,6 +42,6 @@ | ||
Alternatively, you can provide plugin functions instead of streams to | ||
instanciate streams only when needed : | ||
instantiate streams only when needed : | ||
```js | ||
var cond = require('gulp-cond'); | ||
import cond from 'gulp-cond'; | ||
var prod = gulp.env.prod; | ||
@@ -78,11 +83,15 @@ | ||
## Stats | ||
[](https://nodei.co/npm/gulp-iconfont/) | ||
[](https://nodei.co/npm/gulp-iconfont/) | ||
### Contributing / Issues | ||
You may want to contribute to this project, pull requests are welcome if you | ||
accept to publish under the MIT licence. | ||
accept to publish under the MIT license. | ||
[//]: # (::contents:end) | ||
# Authors | ||
- [Nicolas Froidure](https://insertafter.com/en/index.html) | ||
# License | ||
[MIT](https://github.com/nfroidure/gulp-cond/blob/main/LICENSE) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33848
140.81%0
-100%12
71.43%499
93.41%95
10.47%Yes
NaN22
266.67%1
Infinity%- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed