type

PodRewrite

src class PodRewrite : Task

PodRewrite is used to update the contents of one or more pod files. It can be used to strip javascript, source code, and docs. However it cannot strip test code - that requires a recompile from source with the stripTest flag.

constructors

make

Construct uninitialized task

fields

outDir

Required output directory to place rewritten pods

pods

List of pod files or pod names to rewrite

stripDocs

Remove pod's documentation: pod.fandoc and all api docs

stripJs

Remove pod's JavaScript files: "pod.js" and "pod.js.map"

stripSrc

Remove pod's source code if bundled into the pod zip

methods

rewrite

Rewrite the given pod file with the configured options

run

Run the task

Slot Details

make

src new make(BuildScript script)

Construct uninitialized task

outDir

src File? outDir

Required output directory to place rewritten pods

pods

src Obj[] pods := Obj[,]

List of pod files or pod names to rewrite

rewrite

src Void rewrite(File podFile, OutStream out)

Rewrite the given pod file with the configured options

run

src virtual override Void run()

Run the task

stripDocs

src Bool stripDocs

Remove pod's documentation: pod.fandoc and all api docs

stripJs

src Bool stripJs

Remove pod's JavaScript files: "pod.js" and "pod.js.map"

stripSrc

src Bool stripSrc

Remove pod's source code if bundled into the pod zip