swint-builder-png
v1.0.12
Published
PNG sprite builder for Swint
Downloads
123
Readme
swint-builder-png
Warning: This is not the final draft yet, so do not use this until its official version is launched
Dependency
ImageMagicK should be installed and able to execute $ convert
and $ montage
on the command line
Installation
$ npm install --save swint-builder-png
Options
name
:String
, default:Project
inDir
:String
, default:path.dirname(require.main.filename)
outDir
:String
, default:path.join(path.dirname(require.main.filename), '../out')
imgMetaDir
:String
, default:path.join(path.dirname(require.main.filename), '../imgMeta')
walkOption
:Object
, default:{ ext: '*' }
Usage
buildPNG({
name: 'Test',
inDir: path.join(__dirname, 'png'),
outDir: path.join(__dirname, 'out'),
imgMetaDir: path.join(__dirname, 'imgMeta')
}, function() {
// Build complete
});