squishy

Sat, 25 Jul 2009 18:46:47 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 25 Jul 2009 18:46:47 +0100
changeset 9
875ff34ab96c
parent 8
f62f83d9dc43
child 14
ea4d95329ceb
permissions
-rw-r--r--

compile: Compile output files to Lua bytecode

2
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
1
3
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
2 -- Set this option, same as if user specified
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
3 -- '--executable' on the command-line. Can be
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
4 -- disabled by user with '--no-executable'
2
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
5 Option "executable"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
6
3
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
7 -- Output filename
2
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
8 Output "squish"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
9
3
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
10 -- This is normal/main script
2
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
11 Main "squish.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
12
3
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
13 -- Add minify extension if asked to
2
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
14 if opts.with_minify then
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
15 Module "optlex" "minify/optlex.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
16 Module "optparser" "minify/optparser.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
17 Module "llex" "minify/llex.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
18 Module "lparser" "minify/lparser.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
19
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
20 Main "minify/squish.minify.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
21 end
8
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
22
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
23 -- Compress Lua scripts (an excellent hack :) )
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
24 if opts.with_uglify then
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
25 Module "llex" "uglify/llex.lua"
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
26
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
27 Main "uglify/squish.uglify.lua"
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
28 end
9
875ff34ab96c compile: Compile output files to Lua bytecode
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
29
875ff34ab96c compile: Compile output files to Lua bytecode
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
30 -- Compile output files to Lua bytecode
875ff34ab96c compile: Compile output files to Lua bytecode
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
31 if opts.with_compile then
875ff34ab96c compile: Compile output files to Lua bytecode
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
32 Main "compile/squish.compile.lua"
875ff34ab96c compile: Compile output files to Lua bytecode
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
33 end

mercurial