Nuxt-bridge-ts-template1
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)
Commands:
yarn add nuxt-edge
yarn add --dev @nuxt/bridge@npm:@nuxt/bridge-edge
Current nuxt-bridge version: 3.0.0-27711990.d463650
Nuxt: v3.0.0-rc.8
"scripts": { "dev": "nuxi dev", "build": "nuxi build", "start": "nuxi preview" },
- package.json - updated "scripts"
- nuxt config: use
"defineNuxtConfig"
- tsconfig: add:
"extends": "./.nuxt/tsconfig.json"
components: [
'path: "~/components",'
Removed @nuxt/typescript-build
: and remove from from buildModules (config)
Added .output
to the .gitignore file.
Add to nuxt config: "extends": "./.nuxt/tsconfig.json",
npx nuxi prepare (generate .nuxt/tsconfig.json )
std-env (fix std-env error)
yarn add nuxt-property-decorator
Add to nuxt config:
build: {
transpile: ["nuxt-property-decorator", "vue-class-component"]
}
Enabled in nuxt.config
Upgrade postcss-preset-env to v7 due to warning from Vite.
This in turn requires upgrade to postcss v8.
Sass
To enable use of sass variables etc in vue components. NOTE: not working with vite.