# Source and build information

Nex Directory ships its plugin-owned PHP, JavaScript, and CSS source in the release package.

## Frontend JavaScript

`assets/js/nexdirectory-frontend.js` and `assets/js/nexdirectory-experience.js` are the readable source files. The plugin enqueues the matching `.min.js` runtime files when they are present.

To regenerate the minified runtime files from the plugin root:

```sh
npx --yes terser@5.31.6 ./assets/js/nexdirectory-frontend.js -c passes=2 -m --comments false -o ./assets/js/nexdirectory-frontend.min.js
npx --yes terser@5.31.6 ./assets/js/nexdirectory-experience.js -c passes=2 -m --comments false -o ./assets/js/nexdirectory-experience.min.js
```

## Tailwind utility CSS

`assets/css/nexdirectory-tailwind-compiled.css` is generated from the utility classes used in the plugin's PHP templates, PHP renderers, and JavaScript. The maintained CSS entry point is included in `docs/source/tailwind-entry.css`.

To regenerate it from the plugin root without any bundled dependency files:

```sh
npx --yes tailwindcss@3.4.10 -i ./docs/source/tailwind-entry.css -o ./assets/css/nexdirectory-tailwind-compiled.css --content "./**/*.php" "./assets/js/**/*.js" "./assets/css/**/*.css"
npx --yes postcss-cli@11.0.0 ./assets/css/nexdirectory-tailwind-compiled.css --use cssnano@5.1.15 -o ./assets/css/nexdirectory-tailwind-compiled.css
```

The exact build dependencies used for this release are:

- Tailwind CSS 3.4.10
- PostCSS 8.4.41
- cssnano 5.1.15
- Terser 5.31.6

Generated release archives exclude local build tooling and package-manager lock files that WordPress.org does not require in the submitted plugin package.

## Third-party browser libraries

The files in `assets/vendor/` are versioned upstream release assets. Their exact versions, licenses, and public source locations are recorded in `docs/THIRD_PARTY_LICENSES.md`.
