Giter Club home page Giter Club logo

Comments (4)

onsummer avatar onsummer commented on May 4, 2024

就是 vue-cli 的 vite 版本,我按这样的顺序创建了一个项目:

C@C   base  ~\..\workshop  npm init vue@next
npx: installed 1 in 4.352s
√ Project name: ... vprj
√ Add TypeScript? ... No / Yes -- 选了 Yes
√ Add JSX Support? ... No / Yes -- 选了 No
√ Add Vue Router for Single Page Application development? ... No / Yes -- 选了 Yes
√ Add Vuex for state management? ... No / Yes -- 选了 Yes
√ Add Cypress for testing? ... No / Yes -- 选了 No

Scaffolding project in C:\Users\C\Desktop\workshop\vprj...

Done. Now run:

  cd vprj
  npm install
  npm run dev

其 package.json 是这样的:

{
  "name": "vue-project",
  "version": "0.0.0",
  "scripts": {
    "dev": "vite",
    "build": "vue-tsc --noEmit && vite build",
    "preserve": "vite build",
    "serve": "vite preview --port 5050",
    "typecheck": "vue-tsc --noEmit"
  },
  "dependencies": {
    "vue": "^3.2.14",
    "vue-router": "^4.0.11",
    "vuex": "^4.0.2"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^1.9.3",
    "typescript": "~4.3.5",
    "vite": "^2.6.3",
    "vue-tsc": "^0.3.0"
  }
}

image

from create-vue.

zouhangwithsweet avatar zouhangwithsweet commented on May 4, 2024

To start a new Vue3 project, it is recommended to use create-vue.

from create-vue.

fireairforce avatar fireairforce commented on May 4, 2024

Got it,thanks

from create-vue.

kongmoumou avatar kongmoumou commented on May 4, 2024

will it replace vue-cli in the future?

from create-vue.

Related Issues (20)

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.