1.1.0 • Published 6 years ago
wrenpack v1.1.0
Wrenpack
Package multiple Wren files into one, in JavaScript.
Installation
npm i -g wrenpackUsage
wrenpack build [input]
Build the given file
Positionals:
input The input file to build [default: "index.wren"]
Options:
--version Show version number [boolean]
--help Show help [boolean]
--output, -o Where to write the file [string] [default: "packed.wren"]
--minify, -m Minify the output [boolean] [default: false]Example
Create a
Unicorn.wrento importclass Unicorn { construct new() { System.print("Greetings.") } run() { System.print("Running!") } }Create your main
index.wrenfileimport "Unicorn" var unicorn = Unicorn.new() unicorn.run()Run the build command
wrenpack build index.wren --output=packed.wrenSee the resulting
packed.wren// Unicorn.wren class Unicorn { construct new() { System.print("Greetings.") } run() { System.print("Running!") } } // Game.wren // import "Unicorn" var unicorn = Unicorn.new() unicorn.run()