Nuxt2-ts-storybook : template 1
Starter projects with different dependencies and setups, ready to use
- Nuxt 2 (Created with
yarn create nuxt-app
)- Npm option: Javascript (Typescript is added manually)
- Nuxt-edge (migration)
Command: yarn add --dev @nuxt/bridge@npm:@nuxt/bridge-edge
"scripts": { "dev": "nuxi dev", "build": "nuxi build", "start": "nuxi preview" },
- package.json - updated "scripts"
- nuxt config: use
"defineNuxtConfig"
- tsconfig: "extends": "./.nuxt/tsconfig.json",
Command: npx nuxi prepare (generate .nuxt/tsconfig.json )
Add package std-env (fix std-env error)
To use with class based components
Sass
To enable use of sass variables etc in vue components