gulp-rb-validate-package

Gulp plugin to check package.json according to web frontend guidelines

Usage no npm install needed!

<script type="module">
  import gulpRbValidatePackage from 'https://cdn.skypack.dev/gulp-rb-validate-package';
</script>

README

Installation

Install package with NPM and add it to your development dependencies:

npm install gulp-rb-validate-package --save-dev

Usage

Basic

var rbpackage = require('gulp-rb-validate-package');

gulp.task('rb-validate', function () {

    gulp.src('./package.json')
        .pipe(rbpackage());
        
    });

With Parameter

var rbpackage  = require('gulp-rb-validate-package');

gulp.task('rb-validate', function () {

    gulp.src('./package.json')
        .pipe(rbpackage({
            exitOnError: true
        });
        
    });

Parameters

exitOnError: Boolean (Default: false)

Exit with code 1 if an error with obligation level red is found.