/gulp-pkg-json-cleanse

Gulp pluggin to remove properties from the package.json for production.

Primary LanguageJavaScriptMIT LicenseMIT

Build Status

gulp-pkg-json-cleanse

Remove properties from the source package.json file for production.

Installing

npm

npm i gulp-pkg-json-cleanse -d

yarn

yarn add gulp-pkg-json-cleanse --dev

Useage

options

{
	// string array of package.json
	// properties to remove
	remove: string[];
}

gulpfile

const pkgcleanse = require('gulp-pkg-json-cleanse');

gulp.task('cleanse-pkgjson', () => {
  return gulp.src('package.json')
    .pipe(pkgcleanse({
      remove: [
        'devDependencies'
      ]
    }))
    .pipe(gulp.dest('./dist'));
});

License

This project is licensed under the MIT License - see the LICENSE.md file for details