Type object
File match codux.config.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/codux/latest.json
Source https://wixplosives.github.io/codux-config-schema/codux.config.schema.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

addPanel object

Add Panel config. Can contain list of libraries installed in the project which provide boards for Codux.

1 nested properties
assets string[]
svgLoader string | string | string

Configures how SVG assets load. Refer to https://help.codux.com/kb/en/article/kb17934 for more information.

Default: "asset"
boardsPath string

Default directory for new boards, relative to the project root. Refer to https://help.codux.com/kb/en/article/kb19337 for more information.

Default: "src/_codux/boards"
newBoard object

Configures default path for board template folders and files.

2 nested properties
templatesPath string

Path where project templates are stored.

templatesConfig object

Defines a configuration object for templates. This configuration allows specifying default directories for entities created using these templates. Each template can have a custom configuration.

format=json-edit-code
maxThumbnailSnapshotDelayConfig number

Maximum time (in milliseconds) to postpone capturing a thumbnail for the board. Refer to https://help.codux.com/kb/en/article/kb20920 for more information.

Default: 5000
scripts object

Configures scripts for project users to run from Codux (triggerable and on demand). Refer to https://help.codux.com/kb/en/article/kb30920 for more information.

format=json-edit-code
boardGlobalSetup null | string | GlobalPathsInterface

Path to a file that will be evaluated before each board is rendered, Useful for importing global stylesheets and initializing global variables. Can be absolute or relative to the project root (in which case it needs to start with './') Refer to https://help.codux.com/kb/en/article/kb36623 for more information.

previewConfiguration object

Specifies environment variables to use globally across the project. Refer to https://help.codux.com/kb/en/article/kb37722 for more information.

2 nested properties
environmentVariables object

variables that are being accessed from process.env

format=json-edit-code
envFile string

variables that are being accessed from process.env from an env file

staticServerRoot string

The relative path to the folder from which static files are served. Refer to https://help.codux.com/kb/en/article/kb23123 for more information.

Default: "public"
format=json-edit-code
cssCompilation object

Enables CSS modules in your project. Refer to https://help.codux.com/kb/en/article/kb25813 for more information.

2 nested properties
activateCssModules boolean required

Enables or disables the use of CSS modules.

cssModulesExt string[] required

The extension types for files to load as modules.

safeRender object

Configures maximum rendered elements. Refer to https://help.codux.com/kb/en/article/kb18414 for more information.

1 nested properties
maxInstancesPerComponent number
conditionalRenderers string[]

If the project uses , or any other component to conditionally render its children based on the URL or some other logic, this string[] should include the names of these components ("Routes") for compatibility with Codux.

defaultImportedStylesFilePath string

Configures the default file path to add new fonts to.

Default: ""
httpServerPort number

Port of HTTP server that is used to serve previews and user project itself.

Default: 0
defaultJSONSchemas IDefaultJSONSchema[]

Configuration for adding additional json schemas to your project. This can be used to centralise json schemas addition instead of using $schema and get autocompletion for json files when using Codux.

defaultImagesDir string

Configures the default directory where the Codux Media Manager stores new assets. Refer to https://help.codux.com/kb/en/article/kb96140 for more information.

Default: "./src/assets"
newComponent object

Configures default paths for new component and template files. Refer to https://help.codux.com/kb/en/article/kb16522 for more information.

3 nested properties
templatesPath string

Path where project templates are stored.

templatesConfig object

Defines a configuration object for templates. This configuration allows specifying default directories for entities created using these templates. Each template can have a custom configuration.

format=json-edit-code
componentsPath string

Path where new components and related files will save to.

ignoredSubPaths string[]

Specifies project folders to exclude from component search. Refer to https://help.codux.com/kb/en/article/kb14730 for more information.

fileNamingConvention string | string | string

Configures file-naming convention for new component creation. Refer to https://help.codux.com/kb/en/article/kb29627 for more information. Options: "pascal-case" | "camel-case" | "kebab-case"

resolve object

Includes package assets from additional sources, and creates aliases and fallbacks. Refer to https://help.codux.com/kb/en/article/kb18719 for more information.

5 nested properties
alias object

Aliases for package requests. Record key is the request to be mapped, value is the new target. Alias is attempted before original request.

format=json-edit-code
fallback object

Fallback for package requests. Record key is the request to be mapped, value is the new target. Original request is attempted before fallback.

format=json-edit-code
packageRoots string[]

Folders to use when searching for packages.

workspaceAlias object

Aliases for all package requests in a monorepo. Record key is the request to be mapped, value is the new target.

format=json-edit-code
customConditions string[]

Conditions to set in addition to the resolver-specific defaults when resolving imports.

sassCompilation object

Adds Sass support to compilations. Refer to https://help.codux.com/kb/en/article/kb19315 for more information.

3 nested properties
modules object required

Defines path and module extensions for Sass modules to include and/or ignore. Input as an array of glob patterns.

2 nested properties
include string | string[] required

Array of glob patterns to include.

ignore string | string[]

Array of glob patterns to ignore.

resolveUrls boolean required

Determines whether URLs in Sass files should resolve to absolute file paths before compiling them.

includePaths string[]

Array of paths to resolve Sass files from.

serverProxyMap object

Configures proxy servers for Codux to redirect requests to. The key is the path to proxy requests from, and the value is the url to proxy requests to. Refer to https://help.codux.com/kb/en/article/kb18137 for more information.

format=json-edit-code
disableProjectSharing boolean

Disables sharing the project in the Codux Online Playground. Refer to https://help.codux.com/kb/en/article/kb02353 for more information.

Default: false
styling object

Styling related configuration. Contains field for styling solution which determines the main styling solution in the user's project. Refer to https://help.codux.com/kb/en/article/kb31817 for more information.

1 nested properties
solution string

Default file extension to use for component style sheets in the project. Options: "css" | "sass" | "css modules" | "sass modules" | "scss" | "scss modules" | "stylable"

styleFilesConfig object

Formats code styling in the Codux code drawer. Refer to https://help.codux.com/kb/en/article/kb18018 for more information.

1 nested properties
commonStyleFilePattern string

An extended glob pattern that describes the common CSS files used in the project. The Style Panel will not suggest these files for adding new rules to an element or editing its style.

conditionalClassnamesConfig object

Options for using the classNames utility library, including path to classNames module, and target export. The default configuration is set for handling the 'classnames' library by JedWatson. Refer to https://help.codux.com/kb/en/article/kb36122 for more information.

2 nested properties
classnamesPath string required
classnamesTarget string required
schemaMemoryUsageView object

Configures the schema memory usage panel

1 nested properties
enabled boolean | boolean
tailwindcssConfig string

Lets you pass a custom tailwindcss config file path. Refer to https://help.codux.com/kb/en/article/kb18518 for more information.

componentsDiscovery object

Scopes component discovery in your project. Refer to https://help.codux.com/kb/en/article/kb37113 for more information.

2 nested properties
include string[]

Array of glob patterns to include.

exclude string[]

Array of glob patterns to exclude.

externalProviders object
1 nested properties
wix object
2 nested properties
projectId string required
metaSiteId string required

Definitions

TemplatesConfig string

Path where project templates are stored.

ScriptFrom string

Script title in the UI. Will be available to use from Codux.

ScriptFromConfig object
command string required

This is the command that the script runs when executed.

title string

Script title in the UI. Will be available to use from Codux.

description string

Script title in the UI. Will be available to use from Codux.

trigger string

Script title in the UI. Will be available to use from Codux.

preventRunningInBackground string

Script title in the UI. Will be available to use from Codux.

preventRerenderBoardsOnFinish string

Script title in the UI. Will be available to use from Codux.

BatchFromConfig object
run string[] required

The value of this parameter is an array of script objects to include in the batch.

title string

Script title in the UI. Will be available to use from Codux.

description string

Script title in the UI. Will be available to use from Codux.

trigger string

Script title in the UI. Will be available to use from Codux.

preventRunningInBackground string

Script title in the UI. Will be available to use from Codux.

preventRerenderBoardsOnFinish string

Script title in the UI. Will be available to use from Codux.

ConfiguredScript ScriptFromConfig | BatchFromConfig
GlobalPathsInterface object
before string
after string
IDefaultJSONSchema object
fileNameRegex string required
schemaPath string required
NewComponentTemplateConfigAddition string
UtilityFunctionClassNamesPluginOptions object

Options for using the classNames utility library, including path to classNames module, and target export. The default configuration is set for handling the 'classnames' library by JedWatson. Refer to https://help.codux.com/kb/en/article/kb36122 for more information.

classnamesPath string required
classnamesTarget string required