Skip to content

shadowboxdev/gulp-pkg-json-cleanse

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published