Skip to content

vtex-apps/admin-pages

Repository files navigation

VTEX Pages Admin (vtex.admin-pages)

The Pages Admin is the VTEX Admin app that lets store administrators visually edit a VTEX Store: selecting editable components, changing their configurations, and adding or removing content in a straightforward way. It is a VTEX IO app composed of the admin, messages, react, and docs builders.

Prerequisites

  • Node.js 18+ (matching the VTEX IO React builder runtime)
  • Yarn (used by both the repo root and react/)
  • VTEX Toolbelt — log in with vtex login <account>
  • Access to a VTEX account where you can link this app

How to run

This is a VTEX IO app — there is no local server. Development happens against a live VTEX workspace via the Toolbelt.

make dev   # install root deps, react/ deps, run `vtex setup`
make link  # vtex link in the active account/workspace (requires confirmation)

Manual equivalent:

yarn install --frozen-lockfile
yarn --cwd react install --frozen-lockfile
vtex setup
vtex use <dev-workspace>
vtex link

⚠️ vtex link, vtex publish, and vtex deploy change the active account/workspace. Never run them in automation without explicit confirmation.

How to test

make test       # vtex-test-tools test (Jest under the hood)
make coverage   # same, with LCOV coverage report for SonarQube
make check      # lint + test — the pre-PR gate
make lint       # ESLint on react/, --max-warnings=0

Locale equality (translation drift) is also enforced:

yarn --cwd react lint:locales

How to publish

The app is published from master after a Conventional-Commits-style CHANGELOG.md entry is added. Publishing flows through the VTEX IO registry:

# from a clean master, after CHANGELOG bump
vtex publish

Manifest scripts wire postreleasy to vtex publish -r vtex --verbose.

CI runs on DK CI through .vtex/deployment.yaml:

  • vtexio/build — builder-hub validates the IO build, lint, and typecheck
  • node-ci-v2 — tests + SonarQube reporting for executable react/ code
  • techdocs-v1 — publishes the docs under docs/ to TechDocs

Documentation

About

The VTEX Pages CMS Admin

Topics

Resources

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors