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:

Documentation
Kernel

Access the location of the new paclet:

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

A directory called Source will be made instead of Kernel:

Documentation
Source

Create a paclet based on a PacletObject specification:

Because we omitted the "Documentation" extension from our PacletObject, no Documentation directory is made in the created paclet:

Kernel
Wolfram Research (2020), CreatePaclet, Wolfram Language function, https://reference.wolfram.com/language/PacletTools/ref/CreatePaclet.html.

Text

Wolfram Research (2020), CreatePaclet, Wolfram Language function, https://reference.wolfram.com/language/PacletTools/ref/CreatePaclet.html.

BibTeX

@misc{reference.wolfram_2021_createpaclet, author="Wolfram Research", title="{CreatePaclet}", year="2020", howpublished="\url{https://reference.wolfram.com/language/PacletTools/ref/CreatePaclet.html}", note=[Accessed: 04-August-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_createpaclet, organization={Wolfram Research}, title={CreatePaclet}, year={2020}, url={https://reference.wolfram.com/language/PacletTools/ref/CreatePaclet.html}, note=[Accessed: 04-August-2021 ]}

CMS

Wolfram Language. 2020. "CreatePaclet." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/PacletTools/ref/CreatePaclet.html.

APA

Wolfram Language. (2020). CreatePaclet. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/PacletTools/ref/CreatePaclet.html