Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/shadowboxdev/gulp-pkg-json-cleanse
- Owner: shadowboxdev
- License: mit
- Created: 2018-12-11T18:38:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-11T21:37:18.000Z (about 6 years ago)
- Last Synced: 2024-12-17T02:25:07.964Z (about 2 months ago)
- Topics: gulp, gulp-plugin, gulp4, gulpjs, gulpplugin, javascript, package-json
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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