vue/add-spa
Source
Usage
bash
npm exec saf-workflow kickoff vue/add-spa <productName> <subdomainName>To run this workflow automatically, tell the agent to:
- Navigate to the target package
- Run this command
- Follow the instructions until done
Checklist
When run, the workflow will:
- Copy template files and rename placeholders.
- Upsert AdminApp.vue from template
- Upsert i18n.ts from template
- Upsert main.ts from template
- Upsert package.json from template
- Upsert router.ts from template
- Upsert strings.ts from template
- Upsert test-app.ts from template
- Upsert tsconfig.json from template
- Upsert vitest.config.ts from template
- Upsert HomePage.loader.ts from template
- Upsert HomePage.strings.ts from template
- Upsert HomePage.test.ts from template
- Upsert HomePage.vue from template
- Upsert HomePageAsync.vue from template
- Upsert index.ts from template
- Upsert package.json from template
- Upsert package.json from template
- Upsert .gitignore from template
- Upsert Dockerfile from template
- Upsert Dockerfile.template from template
- Upsert env.schema.combined.json from template
- Upsert html-header-plugin.ts from template
- Upsert index.html from template
- Upsert overrides.scss from template
- Upsert package.json from template
- Upsert tsconfig.app.json from template
- Upsert tsconfig.json from template
- Upsert tsconfig.node.json from template
- Upsert vite.config.ts from template
- Upsert index.html from template
- Upsert main.ts from template
- Upsert favicon.png from template
- Upsert privacy.md from template
- Upsert terms.md from template
- Upsert exports.test.ts from template
- Upsert i18n.ts from template
- Upsert index.ts from template
- Upsert package.json from template
- Upsert playwright.config.ts from template
- Upsert strings.ts from template
- Upsert tsconfig.json from template
- Upsert vitest.config.ts from template
- Upsert vuetify-config.ts from template
- Upsert index.ts from template
- Upsert events.ts from template
- Upsert index.ts from template
- Upsert posthog.ts from template
- Upsert sentry.ts from template
- Upsert index.ts from template
- Upsert index.ts from template
- Upsert index.ts from template
- Upsert ProductNameLayout.strings.ts from template
- Upsert ProductNameLayout.vue from template
- Change working directory to clients/product-name/product-name-admin-spa
- Run
npm install - Change working directory to clients/product-name/product-name-clients
- Run
npm install @saflib/product-name-admin-spa
Help Docs
bash
Usage: npm exec saf-workflow kickoff vue/add-spa <productName> <subdomainName>
Create a new SAF-powered frontend SPA using Vue, Vue-Router, and Tanstack Query
Arguments:
productName Name of the new or existing product (e.g. 'product-name')
Example: "product-name"
subdomainNameName of the new subdomain (e.g. 'admin')
Example: "admin"