豚吐露@wiki

CLI

最終更新:

Bot(ページ名リンク)

- view
管理者のみ編集可

VueCLI


versions

VueCLI → create-vueらしい。
いつからか知らんが、VueCLIはメンテナンスモードとなってるらしい。

create-vue
$ npm init vue@latest
Need to install the following packages:
  create-vue@3.3.4
Ok to proceed? (y)

Vue.js - The Progressive JavaScript Framework

? Project name: … hello_vue_world
? Add TypeScript? … No / Yes
? Add JSX Support? … No / Yes
? Add Vue Router for Single Page [[Application]] development? … No / Yes
? Add Pinia for state management? … No / Yes
? Add Vitest for Unit Testing? … No / Yes
? Add Cypress for End-to-End testing? … No / Yes
? Add ESLint for code quality? … No / Yes
? Add Prettier for code formatting? … No / Yes

Scaffolding project in /home/s1n/wk/tmp/hello_vue_world...

Done. Now run:

  cd hello_vue_world
  npm install
  npm run lint
  npm run dev

npm notice
npm notice New patch version of npm available! 8.19.1 -> 8.19.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.19.2
npm notice Run npm install -g npm@8.19.2 to update!
npm notice

vue create
vue create hello_vue
Vue CLI v5.0.8
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, TS, PWA, Router, Vuex, CSS Pre-processors, Linter, Unit, E2E
? Choose a version of Vue.js that you want to start the project with 3.x
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? Yes
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a [[CSS]] pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Sass/SCSS (with dart-sass)
? Pick a linter / formatter config: Basic
? Pick additional lint features: Lint on save
? Pick a unit testing solution: Jest
? Pick an E2E testing solution: Cypress
? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files
? Save this as a preset for future projects? Yes
? Save preset as: hello_vue

?  Preset hello_vue saved in /home/s1n/.vuerc





更新日: 2022年10月12日 (水) 11時11分48秒

名前:
コメント:

すべてのコメントを見る
記事メニュー
ウィキ募集バナー