Home / File/ seed.ts — ui Source File

seed.ts — ui Source File

Architecture documentation for seed.ts, a typescript file in the ui codebase. 4 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  3cd18191_ec57_38de_f487_a8211244ca7a["seed.ts"]
  13d2cdc2_fcbd_c4c7_04e9_fa2d55632727["data.tsx"]
  3cd18191_ec57_38de_f487_a8211244ca7a --> 13d2cdc2_fcbd_c4c7_04e9_fa2d55632727
  eac8f98f_e40a_7fe8_f505_372c83d20c7a["fs"]
  3cd18191_ec57_38de_f487_a8211244ca7a --> eac8f98f_e40a_7fe8_f505_372c83d20c7a
  d05ec4ea_7a68_3a36_bfa4_9ba7f8409ee5["path"]
  3cd18191_ec57_38de_f487_a8211244ca7a --> d05ec4ea_7a68_3a36_bfa4_9ba7f8409ee5
  817e745e_bb93_8c88_07a4_2e2e390aab69["faker"]
  3cd18191_ec57_38de_f487_a8211244ca7a --> 817e745e_bb93_8c88_07a4_2e2e390aab69
  style 3cd18191_ec57_38de_f487_a8211244ca7a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import fs from "fs"
import path from "path"
import { faker } from "@faker-js/faker"

import { labels, priorities, statuses } from "./data"

const tasks = Array.from({ length: 100 }, () => ({
  id: `TASK-${faker.number.int({ min: 1000, max: 9999 })}`,
  title: faker.hacker.phrase().replace(/^./, (letter) => letter.toUpperCase()),
  status: faker.helpers.arrayElement(statuses).value,
  label: faker.helpers.arrayElement(labels).value,
  priority: faker.helpers.arrayElement(priorities).value,
}))

fs.writeFileSync(
  path.join(__dirname, "tasks.json"),
  JSON.stringify(tasks, null, 2)
)

console.log("✅ Tasks data generated.")

Subdomains

Functions

Dependencies

Frequently Asked Questions

What does seed.ts do?
seed.ts is a source file in the ui codebase, written in typescript. It belongs to the ApplicationExhibition domain, TaskManagement subdomain.
What functions are defined in seed.ts?
seed.ts defines 1 function(s): tasks.
What does seed.ts depend on?
seed.ts imports 4 module(s): data.tsx, faker, fs, path.
Where is seed.ts in the architecture?
seed.ts is located at apps/v4/app/(app)/examples/tasks/data/seed.ts (domain: ApplicationExhibition, subdomain: TaskManagement, directory: apps/v4/app/(app)/examples/tasks/data).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free