Gulp free texture packer module
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore remove files Feb 23, 2018
LICENSE.md Create LICENSE.md Dec 29, 2018
README.md Update README.md Dec 28, 2018
index.js Fix external app info Jan 2, 2019
package.json Fix external app info Jan 2, 2019

README.md

gulp-free-tex-packer

Stats
Free texture packer module for gulp
Based on https://github.com/odrick/free-tex-packer

Install

$ npm install gulp-free-tex-packer

Basic usage

let texturePacker = require('gulp-free-tex-packer');

gulp.task('pack', function() {
    return gulp.src('src/**/*.*')
        .pipe(texturePacker())
        .pipe(gulp.dest('dest/'));
});

Advanced usage

Use packer options object

let texturePacker = require('gulp-free-tex-packer');

gulp.task('pack', function() {
    return gulp.src('src/**/*.*')
        .pipe(texturePacker({
            textureName: "my-texture",
            width: 1024,
            height: 1024,
            fixedSize: false,
            padding: 2,
            allowRotation: true,
            detectIdentical: true,
            allowTrim: true,
            exporter: "Pixi",
            removeFileExtension: true,
            prependFolderName: true
        }))
	.pipe(gulp.dest('dest/'));
});

Pack options description: https://github.com/odrick/free-tex-packer-core#available-options

Custom exporters description: https://github.com/odrick/free-tex-packer-core#custom-exporter

Used libs


License: MIT