# Base Vue App

Base Vue App is a template application that demonstrates how to build a Vue UI Bundle on the Salesforce platform with Vite, TypeScript, Tailwind, shadcn-vue, and the Salesforce UI Bundle SDK. It provides a minimal shell (home, 404), routing, and GraphQL codegen support so feature apps can extend it via the patches pipeline.

This UI Bundle lives inside an SFDX project. The project root is the directory that contains `force-app/` and `sfdx-project.json`. Run the commands in the sections below from the paths indicated.

## Table of contents

- [Run (development)](#run-development)
- [Build](#build)
- [Test](#test)

## Run (development)

From the UI Bundle directory (`force-app/main/default/uiBundles/base-vue-app`):

```bash
npm install
npm run dev
```

This starts the Vite dev server (e.g. http://localhost:5173). Use `npm run dev:design` to run in design mode.

## Build

From the UI Bundle directory:

```bash
npm install
npm run build
```

The production build is written to `dist/` inside the UI Bundle folder.

## Test

From the UI Bundle directory:

```bash
npm run test        # unit tests (Vitest)
npm run build:e2e   # build for end-to-end
npx playwright test # end-to-end tests (Playwright)
```
