9 |
9 |
10 -- This is normal/main script |
10 -- This is normal/main script |
11 Main "squish.lua" |
11 Main "squish.lua" |
12 |
12 |
13 -- Add minify extension if asked to |
13 -- Add minify extension if asked to |
14 if opts.with_minify then |
14 if GetOption "with-minify" then |
15 Module "optlex" "minify/optlex.lua" |
15 Module "optlex" "minify/optlex.lua" |
16 Module "optparser" "minify/optparser.lua" |
16 Module "optparser" "minify/optparser.lua" |
17 Module "llex" "minify/llex.lua" |
17 Module "llex" "minify/llex.lua" |
18 Module "lparser" "minify/lparser.lua" |
18 Module "lparser" "minify/lparser.lua" |
19 |
19 |
20 Main "minify/squish.minify.lua" |
20 Main "minify/squish.minify.lua" |
21 end |
21 end |
22 |
22 |
23 -- Compress Lua scripts (an excellent hack :) ) |
23 -- Compress Lua scripts (an excellent hack :) ) |
24 if opts.with_uglify then |
24 if GetOption "with-uglify" then |
25 Module "llex" "uglify/llex.lua" |
25 Module "llex" "uglify/llex.lua" |
26 |
26 |
27 Main "uglify/squish.uglify.lua" |
27 Main "uglify/squish.uglify.lua" |
28 end |
28 end |
29 |
29 |
30 -- Compile output files to Lua bytecode |
30 -- Compile output files to Lua bytecode |
31 if opts.with_compile then |
31 if GetOption "with-compile" then |
32 Main "compile/squish.compile.lua" |
32 Main "compile/squish.compile.lua" |
33 end |
33 end |