1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Vite/React/TypeScriptのプロジェクトを立ち上げるだけ

Posted at
1 / 11

概要

題名の通り


略手順

  1. initする
  2. プロジェクト名を指定(今回はvite-test)
  3. reactを選択する
  4. react-tsを選択する
  5. 指定されたコマンドを打つ
  6. 指定されたlocalhostにアクセスする

手順

1

$ npm init vite

2

$ npm init vite
? Project name: vite-test

3

✔ Project name: … vite-test
? Select a framework: › - Use arrow-keys. Return to submit.
    vanilla
    vue
❯   react
    preact
    lit
    svelte


4

? Select a variant: › - Use arrow-keys. Return to submit.
    react
❯   react-ts

5-1 : 出力されるコマンド

Scaffolding project in /Users/pauli-agile/Documents/Practice/vite-test...

Done. Now run:

  cd vite-test
  npm install
  npm run dev


5-2 : 出力されたコマンドを打つ

$ cd vite-test
$ npm install

added 88 packages, and audited 89 packages in 12s

8 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

$ npm run dev

> ownd_mirror@0.0.0 dev
> vite

Pre-bundling dependencies:
  react
  react-dom
  react/jsx-dev-runtime
(this will be run only when your dependencies or config have changed)

  vite v2.8.4 dev server running at:

  > Local: http://localhost:3000/
  > Network: use `--host` to expose

  ready in 389ms.

6
スクリーンショット 2022-02-23 16.44.30.png


終わり

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?