gulp-luapack

1.0.0 • Public • Published

gulp-luapack

A gulp plugin to build with luapack

Usage

const gulp = require('gulp')
const luapack = require('gulp-luapack')
const rename = require('gulp-rename')
 
gulp.task('pack', function() { // create a new gulp task
  return gulp.src('./file.lua') // load main file
        .pipe(luapack()) // pipe into luapack
        .pipe(rename('file.packed.lua')) // rename file
        .pipe(gulp.dest('./')); // output file
});

Small thing to keep a note of is that gulp-luapack does not take care of minifying code. There is gulp-luamin for that.

/gulp-luapack/

    Package Sidebar

    Install

    npm i gulp-luapack

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.36 kB

    Total Files

    3

    Last publish

    Collaborators

    • luxizzle