Look at the Nuxt 3 and Naive UI documentation to learn more.
- ESLint
# check .ts,.js,.vue
npm run lint:eslint
# fix
npm run fix:eslint- Prettier
# check .
npm run lint:prettier
# fix
npm run fix:prettier- Stylelint
# check .scss,.vue
npm run lint:stylelint
# fix
npm run fix:stylelint- Check All
npm run lint- Fix All
npm run fix- Commitizen. Using git-cz
npm run ct- Husky
.husky/pre-commit
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run lint:fix- Husky
.husky/pre-push
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# npm run build- Fonts vfonts npm
// assets/styles/main.scss
@forward 'vfonts/Lato.css';
@forward 'vfonts/FiraCode.css';- Icons @vicons/ionicons5 xicons
<!-- Usage -->
<script
lang="ts"
setup
>
import { CubeOutline as CubeOutlineIcon } from '@vicons/ionicons5'
import { NIcon } from 'naive-ui'
</script>
<template>
<n-icon>
<cube-outline-icon />
</n-icon>
</template>Start the development server on http://localhost:3000
yarn devBuild the application for production:
yarm buildLocally preview production build:
yarn previewCheck out the deployment documentation for more information.