Skip to content

Commit

Permalink
docs: Update ufo-architecture.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton authored Oct 30, 2022
2 parents 344a1a3 + 7c67315 commit 55d505d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions packages/cli/docs/ufo-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Write lighthouse user flows with UFO's 🛸

When writing tests for multiple interactions or pages, or even for different platforms you are forced to organize your code propperly.
Otherwise, the amount of low-level code get's a night mare to maintain...
Otherwise, the amount of low-level code becomes a night mare to maintain...


**This is the reason we introduced UFO's!**
Expand Down Expand Up @@ -38,7 +38,7 @@ Let's first think about the folder structure and how we organize the different p
┣ ┣ 📜sidebar.ufo.ts
┣ ┣ 📜list.ufo.ts
┣ ┗ 📜list-page.ufo.ts
┗ 📂user-flow
┗ 📂user-flows
┗ 📜my-user-flow.uf.ts
```

Expand All @@ -48,9 +48,14 @@ Move `.user-flowrc.json` into `my-app-user-flows` and change the configuration t
**./my-app-user-flows/.user-flowrc.json**
```json
{
"ufPath": "./my-app-user-flows/user-flow",
"outPath": "./dist/my-app-user-flows",
"targetUrl": "https://localhost"
"collect": {
"url": "http:localhost:4200/",
"ufPath": "./my-app-user-flows/user-flows"
},
"persist": {
"outPath": "./dist/my-app-user-flows",
"format": ["html"]
}
}
```

Expand Down Expand Up @@ -129,7 +134,7 @@ export class ListPage extends Ufo {

### User Flows

**./user-flow/my-user-flow.uf.ts**
**./user-flows/my-user-flow.uf.ts**
```typescript
import {
UserFlowOptions,
Expand Down

0 comments on commit 55d505d

Please sign in to comment.