Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webcaetano/gulp-texturepacker
Gulp plugin for TexturePacker
https://github.com/webcaetano/gulp-texturepacker
gulp-plugins sheet texturepacker
Last synced: 2 months ago
JSON representation
Gulp plugin for TexturePacker
- Host: GitHub
- URL: https://github.com/webcaetano/gulp-texturepacker
- Owner: webcaetano
- License: mit
- Created: 2016-07-19T03:29:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T15:18:27.000Z (over 7 years ago)
- Last Synced: 2024-09-29T07:01:35.189Z (3 months ago)
- Topics: gulp-plugins, sheet, texturepacker
- Language: PLSQL
- Size: 102 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gulp-texturepacker
[![npm][npm-img]][npm-url]
Gulp plugin for TexturePacker
## Installation
```
npm install gulp-texturepacker
```## Examples
```javascript
var tps = require('gulp-texturepacker');gulp.src('test/atlas.tps')
.pipe(tps()); // output .tps with his setup
```With options
```javascript
gulp.src(['test/*.tps'])
.pipe(tps({
sheet:'./test/dist/main.png',
data:'./test/dist/data.json'
}));
```## Options
#### sheet
Destination of spritesheet image (png, jpg, etc)
#### data
Destination of data file (json, plist, etc)
#### textureFormat
Sets the format for the textures.
The format type is automatically derived from the sheet#### format
TexturePacker format e.g. cocos2d, phaser-json-array
Full list at TexturePacker --help#### backgroundColor
background color format `FFFFFF`.
#### log
Type `Boolean` Default `false`
Display logs---------------------------------
The MIT [License](https://raw.githubusercontent.com/webcaetano/gulp-texturepacker/master/LICENSE.md)
[npm-img]: https://img.shields.io/npm/v/gulp-texturepacker.svg?style=flat-square
[npm-url]: https://npmjs.org/package/gulp-texturepacker