Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taggon/gulp-plist
gulp plugin modifies Mac OS Plist files
https://github.com/taggon/gulp-plist
Last synced: 23 days ago
JSON representation
gulp plugin modifies Mac OS Plist files
- Host: GitHub
- URL: https://github.com/taggon/gulp-plist
- Owner: taggon
- License: mit
- Created: 2015-11-12T17:52:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T07:43:45.000Z (about 2 years ago)
- Last Synced: 2024-04-14T22:19:08.846Z (9 months ago)
- Language: TypeScript
- Size: 1.54 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-plist [![Build Status](https://travis-ci.org/taggon/gulp-plist.svg?branch=master)](https://travis-ci.org/taggon/gulp-plist)
gulp-plist is a [gulp](https://github.com/gulpjs/gulp) plugin modifies Mac OS Plist (property list) files which are often used in OS X and iOS applications.
It can read/write both binary and plain xml plist format.## Install
```
$ npm install --save-dev gulp-plist
```## Usage
```js
const gulp = require('gulp');
const plist = require('gulp-plist');gulp.task('default', () => {
return gulp.src('src/Info.plist')
.pipe(plist({
CFBundleDisplayName: 'My App'
})
.pipe(gulp.dest('dist'));
});
```Or, you can pass a modifier function to the plugin:
```js
const gulp = require('gulp');
const plist = require('gulp-plist');gulp.task('default', () => {
return gulp.src('src/Info.plist')
.pipe(plist(json => {
json.CFBundleDisplayName = 'My App';
return json;
})
.pipe(gulp.dest('dist'));
});
```The plugin takes an optional second argument that represents settings.
Currently only `writeBinary` option is supported. If you want to write binary plist files, set the option to `true`. The default value is `false`.```js
const gulp = require('gulp');
const plist = require('gulp-plist');gulp.task('default', () => {
return gulp.src('src/Info.plist')
.pipe(plist({
CFBundleDisplayName: 'My App'
}, {
writeBinary: true
})
.pipe(gulp.dest('dist'));
});
```## License
MIT © [Taegon Kim](http://taegon.kim)