Comments (4)
就是 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"
}
}
from create-vue.
To start a new Vue3 project, it is recommended to use create-vue.
from create-vue.
Got it,thanks
from create-vue.
will it replace vue-cli in the future?
from create-vue.
Related Issues (20)
- Module generates eslint config with the old commonJS syntax HOT 8
- Remove “Vue.vscode-typescript-vue-plugin” HOT 1
- Vite Plugin I Vue DevTools HOT 4
- How to set up TS configuration to use ES2021 features ? HOT 4
- regression: flags are not interpreted correctly in v3.10 when creating project HOT 2
- cannot find module using @ absolute path syntax Visual Studio Code HOT 5
- Add ESLint run-on-save VSCode settings HOT 3
- create vue project error . TypeError: (0 , import_node_util.parseArgs) is not a function HOT 5
- vue template script buggy HOT 2
- TS2307: Cannot find module '@/components/echarts' or its corresponding type declarations. HOT 8
- Add Issue templates HOT 1
- Add PR template HOT 1
- Cannot find base config file "@vue/tsconfig/tsconfig.dom.json" [tsconfig.json] HOT 14
- The e2e tests in the subfolders under e2e/ are being executed by vitest
- ESLint v9 support HOT 1
- Windows 10 bun type error HOT 1
- typescript .vue file include @types/node when include some package HOT 2
- 升级vue3小版本后 切换路由页面空白,控制台报错! HOT 2
- yarn create vue@latest report an error HOT 2
- Update README screenshot HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-vue.