Sitelet https://github.com/jsulpis/nuxt3-template/tree/main/scripts
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Scripts

generateMocks.ts

Fetch the data from the API served on localhost:3000 and store the response in files that are then used in dev:mock.

Usage:

  • Start a server:
pnpm dev
  • Run the script in another terminal:
pnpm ts-node scripts/generateMocks.ts