AI Interfaces with Vue, Nuxt, and the AI SDK
Plans from $25/month

This lesson is for members. Join us?

Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.

Bootstrap New Node Project for TypeScript

In this lesson, setup a new Node.js project for following along with the rest of the course. Alternatively, you can skip the lesson and download the boilerplate code. Do note the tsx script that’s been added in package.json for running typescript files with a .env file loaded.

// tsconfig.json
{
  "compilerOptions": {
    "noEmit": true,
    "target": "esnext",
    "module": "nodenext",
    "rewriteRelativeImportExtensions": true,
    "erasableSyntaxOnly": true,
    "verbatimModuleSyntax": true
  },
  "include": ["**/*.ts"],
  "exclude": ["node_modules"]
}

Links