gulp-pkg-json-cleanse

1.0.7 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-pkg-json-cleanse

Weekly Downloads

0

Version

1.0.7

License

MIT

Unpacked Size

4.29 kB

Total Files

5

Last publish

Collaborators

  • shadowbox
  • sdwbox