Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shadowboxdev/gulp-pkg-json-cleanse

Gulp pluggin to remove properties from the package.json for production.
https://github.com/shadowboxdev/gulp-pkg-json-cleanse

gulp gulp-plugin gulp4 gulpjs gulpplugin javascript package-json

Last synced: 25 days ago
JSON representation

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

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.com/shadowboxdev/gulp-pkg-json-cleanse.svg?branch=master)](https://travis-ci.com/shadowboxdev/gulp-pkg-json-cleanse)

# gulp-pkg-json-cleanse

Remove properties from the source __package.json__ file for production.

### Installing

npm
```bash
npm i gulp-pkg-json-cleanse -d
```

yarn

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

## Useage
options

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

gulpfile

```javascript
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](LICENSE.md) file for details