npm 進行 quasar 建置
使用 npm 進行 quasar 建置。
目前使用 Node v20.17.0
1 | npm init quasar |
npx
create-quasar
? What would you like to build? › - Use arrow-keys. Return to submit.
? 您想要建造什麼? ›——使用箭頭鍵。返回提交。
❯ App with Quasar CLI, let’s go! <= 選擇這個
❯ 帶有Quasar CLI的應用程序,我們開始吧!
spa/pwa/ssr/bex/electron/capacitor/cordova
AppExtension (AE) for Quasar CLI
Quasar UI kit (Quasar UI 套件)
✔ What would you like to build? › App with Quasar CLI, let’s go!
? Project folder: › quasar-project
? Pick script type: › - Use arrow-keys. Return to submit.
Javascript
❯ Typescript <= 選擇這個
? Pick Quasar App CLI variant: › - Use arrow-keys. Return to submit.
❯ Quasar App CLI with Vite - recommended ( Quasar App CLI 與 Vite - 推薦)<= 選擇這個
Quasar App CLI with Webpack
? Project product name: (must start with letter if building mobile apps) › Quasar App
?專案產品名稱:(如果建立行動應用程序,必須以字母開頭)› Quasar App
? Project description: › A Quasar Project
? Pick a Vue component style: › - Use arrow-keys. Return to submit.
❯ Composition API with < script setup > <= 選擇這個
recommended
Composition API
Options API
? Pick your CSS preprocessor: › - Use arrow-keys. Return to submit.
❯ Sass with SCSS syntax <= 選擇這個
Sass with indented syntax
None (the others will still be available)
Instructions:
↑/↓: Highlight option
←/→/[space]: Toggle selection
a: Toggle all
enter/return: Complete answer
◉ Linting (vite-plugin-checker + ESLint + vue-tsc)
recommended
◉ State Management (Pinia)
◉ axios
◉ vue-i18n
Quasar • Generating files…
- README.md
- .editorconfig
- .gitignore
- .npmrc
- .vscode/extensions.json
- .vscode/settings.json
- package.json
- tsconfig.json
- index.html
- postcss.config.js
- public/favicon.ico
- public/icons/favicon-128x128.png
- public/icons/favicon-16x16.png
- public/icons/favicon-32x32.png
- public/icons/favicon-96x96.png
- quasar.config.ts
- src/App.vue
- src/assets/quasar-logo-vertical.svg
- src/boot/.gitkeep
- src/components/EssentialLink.vue
- src/components/ExampleComponent.vue
- src/components/models.ts
- src/env.d.ts
- src/layouts/MainLayout.vue
- src/pages/ErrorNotFound.vue
- src/pages/IndexPage.vue
- src/router/index.ts
- src/router/routes.ts
- src/css/app.scss
- src/css/quasar.variables.scss
- src/boot/axios.ts
- src/boot/i18n.ts
- src/i18n/en-US/index.ts
- src/i18n/index.ts
- eslint.config.js
- .prettierrc.json
- src/stores/example-store.ts
- src/stores/index.ts
Quasar • SUCCESS • The project has been scaffolded
? Install project dependencies? (recommended) › - Use arrow-keys. Return to submit.
❯ Yes, use npm <= 選擇
No, I will handle that myself
✔ Install project dependencies? (recommended) › Yes, use npm
quasar-project@0.0.1 postinstall
quasar prepare

App • Using quasar.config.ts in “ts” format
App • Generated tsconfig.json and types files in .quasar directory
App • The app is now prepared for linting, type-checking, IDE integration, etc.
added 547 packages, and audited 548 packages in 6m
144 packages are looking for funding
run npm fund
for details
found 0 vulnerabilities
Quasar • Initialized Git repository 🚀
Quasar • 初始化 Git 儲存庫
To get started:開始吧:
啟動
1
2cd quasar-project
npm run dev
Documentation can be found at: https://quasar.dev
文件可在以下網址找到:https://quasar.dev
Quasar is relying on donations to evolve. We’d be very grateful if you can
read our manifest on “Why donations are important”: https://quasar.dev/why-donate
Donation campaign: https://donate.quasar.dev
Any amount is very welcome.
If invoices are required, please first contact Razvan Stoenescu.
Please give us a star on Github if you appreciate our work:
https://github.com/quasarframework/quasar
Quasar 依靠捐贈來發展。如果你能
閱讀我們的「為什麼捐款很重要」宣言:https://quasar.dev/why-donate
捐款活動:https://donate.quasar.dev
無論數量多少,都非常歡迎。
如果需要發票,請先聯絡 Razvan Stoenescu。
如果您欣賞我們的工作,請在 Github 上給我們一顆星:
https://github.com/quasarframework/quasar
Enjoy! - Quasar Team
App • Using quasar.config.ts in “ts” format
» Reported at………… 2025/3/21 下午10:40:30
» App dir……………. /Users/larahuang/Desktop/作品集/天昕科技/quasar-project
» App URL……………. http://localhost:9000/
http://192.168.25.60:9000/
» Dev mode…………… spa
» Pkg quasar…………. v2.18.1
» Pkg @quasar/app-vite… v2.1.4
» Browser target……… es2022|firefox115|chrome115|safari14
App • Opening default browser at http://localhost:9000/