PacletTools`
PacletTools`

CreatePaclet

CreatePaclet["name"]

Create a paclet directory called name in the current directory.

CreatePaclet[object]

Create a paclet directory structure corresponding to the specified PacletObject expression in the current directory.

CreatePaclet["name", dir]

Create a paclet directory called name in the directory dir.

CreatePaclet[object, dir]

Create a paclet directory structure corresponding to the specified PacletObject expression in the directory dir.

Details

  • CreatePaclet creates a directory and generates an appropriate PacletInfo.wl for it.
  • CreatePaclet will create subdirectories corresponding to the specified paclet extensions, if appropriate.
  • CreatePaclet creates a directory containing a basic PacletInfo.wl file, which can be extended using the following options:
  • "Extensions"{"Kernel", "Documentation"}the set of paclet extensions provided by the new paclet
  • Paclets created by CreatePaclet are in a format incompatible with versions of the Wolfram Language prior to 12.1.
  • CreatePaclet[PacletObject[<| .. |>], ..] will return an error if any options are specified. This is to prevent ambiguity with keys within the association.

Examples

Basic Examples  (1)

Create a paclet with the default Kernel and Documentation extensions:

This creates a paclet directory with the following files:

Create a paclet with a custom Kernel extension "Root" location:

Create a paclet with based on a PacletObject specification:

StyleBox[TemplateBox[{86, 22}, Spacer2]]
StyleBox[TemplateBox[{86, 22}, Spacer2]]