binodnepali/nuxt-with-typescript-example-template
Nuxt3 with typescript example template.
Nuxt With Typescript Example Template
An example template scaffolded using nuxt with typescript and sass to start a new project.
Why this template
This template includes pre-installed plugins suchas prettier, eslint, stylelint, lint-staged, commitlint and standard version which helps to maintain project code quality.
Before getting started
Make sure you have installed Node.js 18 or higher on your machine. You can use nvm to manage multiple node version on your machine.
Getting started
You can setup this project using npm or yarn or pnpm package managers.
Clone repo
# https
git clone https://github.com/binodnepali/nuxt-with-typescript-example-template.git
# or
# ssh
git clone git@github.com:binodnepali/nuxt-with-typescript-example-template.gitNavigate to cloned repo
cd nuxt-with-typescript-example-templateSetup
Make sure to install the dependencies:
# pnpm
pnpm i
# or
# yarn
yarn i
# or
# npm
npm installDevelopment Server
Start the development server on http://localhost:3000
# pnpm
pnpm dev
# or
# yarn
yarn dev
# or
# npm
npm run devBuild
Build the application for production
# pnpm
pnpm build
# or
# yarn
yarn build
# or
# npm
npm run buildPreview
Locally preview production build
# pnpm
pnpm i
# or
# yarn
yarn preview
# or
# npm
npm run previewLint
# pnpm
pnpm lint
# or
# yarn
yarn lint
# or
# npm
npm run lintLint fix
# pnpm
pnpm lint:fix
# or
# yarn
yarn lint:fix
# or
# npm
npm run lint:fixLint style
# pnpm
pnpm lint:style
# or
# yarn
yarn lint:style
# or
# npm
npm run lint:styleLint style fix
# pnpm
pnpm lint:style:fix
# or
# yarn
yarn lint:style:fix
# or
# npm
npm run lint:style:fixCommit
Open interactive terminal to write conventional commit message
# pnpm
pnpm commit
# or
# yarn
yarn commit
# or
# npm
npm run commitRelease
Create a release tag and generates change log based on commit history
# pnpm
pnpm release
# or
# yarn
yarn release
# or
# npm
npm run releaseReferences
- Checkout the deployment documentation for more information.