1.1.0 • Published 5 years ago
wrenpack v1.1.0
Wrenpack
Package multiple Wren files into one, in JavaScript.
Installation
npm i -g wrenpack
Usage
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.wren
to importclass Unicorn { construct new() { System.print("Greetings.") } run() { System.print("Running!") } }
Create your main
index.wren
fileimport "Unicorn" var unicorn = Unicorn.new() unicorn.run()
Run the build command
wrenpack build index.wren --output=packed.wren
See 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()