Code Monkey home page Code Monkey logo

template-vite-vue-tailwind's Introduction

TypeScript + Vite + Vue 3 + Tailwind

This template should help get you started developing with Vue 3, TailwindCSS and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Features

Recommended IDE Setup

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases, this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's Take Over mode by following these steps:

  1. Run Extensions: Show Built-in Extensions from VS Code's command palette, look for TypeScript and JavaScript Language Features, then right-click and select Disable (Workspace). By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
  2. Reload the VS Code window by running Developer: Reload Window from the command palette.

You can learn more about Take Over mode here.

Try it now!

This source code requires Node >=14.18

Clone to local

If you prefer to do it manually with the cleaner git history

git clone [email protected]:ansidev/template-vite-vue-tailwind.git my-app
cd my-app
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm

Usage

Development

Just run and visit http://localhost:5173

pnpm dev

Build

To build the App, run

pnpm build

And you will see the generated file in dist that is ready to be served.

Deploy on Netlify

Go to Netlify and select your clone, OK along the way, and your app will be live in a minute.

Deploy on Vercel

Go to Vercel and click Add new -> Project. Then, select your clone, OK along the way, and your app will be live in a minute.

Contact

Le Minh Tri @ansidev.

License

This source code is available under the MIT License.

template-vite-vue-tailwind's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

template-vite-vue-tailwind's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @nanostores/persistent ^0.10.0
  • @nanostores/vue ^0.10.0
  • @vueuse/head ^2.0.0
  • nanostores ^0.10.0
  • vue ^3.2.47
  • @tailwindcss/forms ^0.5.3
  • @tailwindcss/typography ^0.5.9
  • @types/node ^20.0.0
  • @vitejs/plugin-vue ^5.0.0
  • autoprefixer ^10.4.14
  • postcss ^8.4.21
  • tailwindcss ^3.3.1
  • typescript ^5.0.4
  • unplugin-auto-import ^0.17.0
  • unplugin-vue-components ^0.26.0
  • vite ^5.0.0
  • vue-tsc ^1.2.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.