Skip to main content

Workspace configuration of Primno

The workspace configuration is stored in the primno.json file. It contains the following properties:

PropertyDescriptionDefault value
nameName of the project.Name of the folder that contains the project.
versionVersion of the project.1.0.0
sourceRootPath of the source code.src
distDirPath of the output files.dist
buildBuild configuration-
deployDeploy configuration-
serveServe configuration-

Build

This configuration is used by the mn build and mn watch commands to build the project.

The build configuration contains the following properties:

PropertyDescription
moduleNameTemplateFormat of prefix of an external function. Used when registering an event.

Module name template

The module name template is a string that will be used to generate the name of the prefix of an external function (called by Power Apps). It can contain the following placeholders:

PlaceholderDescription
{{projectName}}Name of the project.

The default module name template is mn_{{projectName}}.

Deploy

This configuration is used by the mn deploy command to deploy the project to Power Apps.

The deploy configuration contains the following properties:

PropertyDescription
environmentEnvironment name to deploy to. Must be defined in the primno.env.json file.
solutionUniqueNameUnique name of the solution to deploy to.
webResourceNameTemplateTemplate of the name of the web resource of the entry point.

Web resource name template

The web resource name template is a string that will be used to generate the name of the web resource. It can contain the following placeholders:

PlaceholderDescription
{{editorName}}Editor prefix (without the _).
{{projectName}}Name of the project.

The default web resource name template is {{editorName}}_/js/{{projectName}}.js.

Serve

This configuration is used by the mn start command to start the local web server.

The serve configuration contains the following properties:

PropertyDescriptionDefault value
portPort of the web server.12357
httpsSet to true to use HTTPS.true
certificateCertificate configuration-

Certificate

The certificate configuration is used to configure the HTTPS certificate of the web server.

The certificate configuration contains the following properties:

PropertyDescriptionDefault value
pfxOptional path of the PFX file.undefined
pfyPasswordOptional password of the PFX file.undefined
selfSignedSet to true to generate a self-signed certificate. It is the recommended way.true