A range of fixes for Lua 5.2 support lua5.2 tip

squish: Fix generation of custom shebang lua5.2

Makefile: remove -q by default for easier debugging of build issues lua5.2

uglify: Fix 'mode' parameter to io.open (5.2 is more strict) lua5.2

squish: Optionally add in a 5.2-compatible module() function (5.2's own compat function is broken) lua5.2

minify: Preserve _ENV, as it's lexically significant in 5.2+ lua5.2

minify: Return _M from modules that weren't lua5.2

uglify: Ensure prettified code inherits the current environment, instead of the default global environment default

squish.lua: Add --list-missing-files option

squish.lua: Exit if any modules don't have a path

squish.lua: Remove accidentally-committed debugging

squish.lua: Add --list-files option, which lists out all files required by the squishy file (with the passed command-line options)

squish.lua: Move opening of output file until after resolving modules

Remove shebangs from modules, if any (thanks Markus Stenberg)

Remove uses of getfenv to work around Lua/LuaJIT inconsistency, and as a step towards 5.2 compatibility (thanks mva, Zash)

make_squishy: Match require calls at the start of a line (thanks R D)

Change to behaviour of --debug/-g - at the (temporary) loss of squishing modules -g will now give real tracebacks again with original filenames

squish.lua: AutoFetch file paths can now begin with / or . too

squish.lua: Support for AutoFetch to use file:// URLs

squish.lua: Initialise LuaRocks if available

README: Add 'Building and installing' section

gzip/deflatelua.lua: Move licence to the top and add myself for modifications

COPYRIGHT: Update for 2010

Add CHANGES file

squish.gzip.lua: Escape \026 in gzipped output to prevent Windows from interpreting it as EOF (thanks to Vadim Peretokin for his persistence!)

squish.gzip.lua: Write code without shebang to temporary file to avoid compressing the shebang and passing it to loadstring

squish.gzip.lua: Open output file in binary mode

squish.uglify.lua: Open output file in binary mode

squish.lua: Only prepend project base path for relative paths specified in the squishy file

make_squishy: Improve 'Couldn't resolve' message

make_squishy: Fix traceback when file doesn't contain any path component

make_squishy: Fix traceback on modules that couldn't be found on the filesystem (thanks Valerio)

squish: Handle nil errors when can't pack a module

gzip: Enably uglify for gzip decompression code (reduces gzip fixed overhead by 1K)

gzip: Some changes to make embedding decompression code compatible with uglify

README: Update for new --uglify-level=full

uglify: Fix logic that determines whether we can uglify a file

uglify: Support for uglifying identifiers and string literals too (--uglify-level=full)

README: Add gzip

Update Makefile and squishy to build in gzip

gzip: Add support for gzipping output files, based on a very hacked compress.deflatelua by David Manura

squish: Insert a space before ending our wrapper function, in case the module doesn't end with whitespace already

compile: Update copy of minichunkspy.lua (new release)

uglify: Preserve the uglified module's return value(s)

Don't let squishy file override the user's specified output file, if one

squish.lua: Small fix to comment

Fixes for handling binary resources

Obey --no-recursion option

make_squishy: Disable resolution of binary modules for now

make_squishy: Add help text

Add squish.debug to .hgignore

Add local/ to .hgignore

Add .hgignore to .hgignore

-g == --debug

compile: Use minichunkspy for stripping debug info

Add to README about make_squishy

make_squishy: Automatically scan sources looking for modules and generate a squishy file

Add virtual IO section to the README

Rename --enable-virtual-io to --virtual-io

Update README to reflect --debug change

Rename --enable-debug option to --debug

Support for resolving the paths of modules when they are not explicitly specified

Only add a module to the list once, no matter how many times it is added in the squishy file

uglify: Restore filename on chunk when loading

Update README for debug extension

Add new debug extension

Fix .hgignore

Warn when output file not writeable

Rewrite '-' to '_' in Option command

minify: Add debug level, add warnings when specified level not valid, don't override options with defaults

Map print() to print_verbose()

Allow user or squishy file to specify custom shebang

minify: Break into minify_file and minify_string to allow easier re-use

compile: Compile the correct data (fixes a traceback if there is a shebang in the input)

Complain if output file not specified, or if squish would generate an empty file

Make Message and Error commands obey user's verbosity options

Support for Message and Error in squishy files to show messages to the user, and Exit to halt squishing

Add support for virtual IO in dofile and loadfile

Fix to work with modules which call module(...)

Add io.lines support for the virtual io

Add virtual io support for accessing resources

Add .hgignore

Add README and COPYRIGHT files

Add --use-http option, and default to off

Restrict access to opts table from squishy files now that we have GetOption

Update squishy file to use GetOption

Add GetOption function for squishy files

Add very basic Makefile

Support for adding 'resources'

Some logging level changes

compile: Compile output files to Lua bytecode

uglify: New specialised Lua 'compression' filter

minify: Don't minify if --no-minify option set

minify: Update error output to use print_err, and os.exit(1)

Add 'OK' after minification

squish.lua: Use --enable-debug flag to decide whether to enable debug options

squishy: Add some comments

Add squishy file to squish squish :)

Add minify plugin

squish, because libraries don't have to be tricky to package!

(0) tip

mercurial