-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ede3bf
commit cc674db
Showing
11 changed files
with
166 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
docs/content/ja/guide/index.md → docs/content/ja/introduction.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# プロジェクトのセットアップ | ||
|
||
## モノレポの構築 | ||
|
||
::: details モノレポである理由 | ||
[Viteのレポジトリ](https://github.com/vitejs/vite)は、関連する複数のパッケージを一元管理するために[モノレポ](https://monorepo.tools/)を採用しています。本書ではchibiviteパッケージのみを開発するため、モノレポを採用する必要はありません。しかし、可能な限りViteのコードベースと同じ構成を採用することで、Viteのコードベースに慣れることができるでしょう。 | ||
::: | ||
|
||
1. 開発エディタで、chibiviteを開発するディレクトリを開きます。 | ||
2. `package.json`を作成し、以下の内容をコピーしてください。 | ||
|
||
```json | ||
{ | ||
"name": "chibivite-monorepo", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"sideEffects": false, | ||
"engines": { | ||
"node": ">=20.12.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"scripts": {}, | ||
"devDependencies": {} | ||
} | ||
``` | ||
|
||
3. ターミナルで以下のコマンドを実行して、Corepackとpnpmを有効化します。`package.json`に記載されているpnpmのバージョンが表示されれば成功です。 | ||
|
||
```bash | ||
corepack enable && pnpm --version | ||
``` | ||
|
||
4. ターミナルで以下のコマンドを実行して、`packages/chibivite`ディレクトリを作成します。 | ||
|
||
```bash | ||
mkdir -p packages/chibivite | ||
``` | ||
|
||
5. `packages/chibivite`ディレクトリに`package.json`を作成し、以下の内容をコピーしてください。 | ||
|
||
```json | ||
{ | ||
"name": "chibivite", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"sideEffects": false, | ||
"engines": { | ||
"node": ">=20.12.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"devDependencies": {} | ||
} | ||
``` | ||
|
||
6. プロジェクトルートに`pnpm-workspace.yaml`を作成し、以下の内容をコピーしてください。 | ||
|
||
```yaml | ||
packages: | ||
- packages/* | ||
``` | ||
7. ターミナルでプロジェクトルートに移動し以下のコマンドを実行して、`pnpm-lock.yaml`を作成します。 | ||
|
||
```bash | ||
cd /path/to/project/root | ||
``` | ||
|
||
```bash | ||
pnpm install | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 必要なツールのインストール | ||
|
||
chibiviteを開発するために必要なツールをインストールしましょう! | ||
|
||
もし以下のツールのインストールが済んでいる場合は、次に進んで大丈夫です。 | ||
|
||
- VSCode | ||
- Node.js v20.12.0 またはそれ以上のバージョン | ||
- プロジェクトディレクトリの作成 | ||
- [Corepack](https://github.com/nodejs/corepack) | ||
- [pnpm](https://pnpm.io/) | ||
|
||
## VSCodeのインストール | ||
|
||
1. [VSCode公式サイト](https://code.visualstudio.com/)にアクセスします。 | ||
2. VSCodeをダウンロードし、インストールします。 | ||
|
||
## Node.jsのインストール | ||
|
||
1. [Node.js公式サイト](https://nodejs.org/en)にアクセスします。 | ||
2. Node.js v20.12.0 またはそれ以上のバージョンをダウンロードし、インストールします。 | ||
|
||
::: tip Node.jsのバージョン管理 | ||
すでにv20.12.0 未満のNode.jsがインストールされている場合、以下の選択肢があります。 | ||
|
||
- 既存のNode.jsをアンインストールして、新しいバージョンをインストールする | ||
- (推奨)Node.jsバージョンマネージャー(例:[nvm](https://github.com/nvm-sh/nvm))を使って複数のバージョンのNode.jsをインストールする | ||
::: | ||
|
||
3. ターミナルで以下のコマンドを実行し、インストールしたNode.jsのバージョンと、同封されているnpmのバージョンが表示されれば成功です。 | ||
|
||
```bash | ||
node --version | ||
``` | ||
|
||
```bash | ||
npm --version | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script setup> | ||
import AuthorProfile from '../.vitepress/components/AuthorProfile.vue' | ||
</script> | ||
|
||
# Project Setup | ||
|
||
::: warning 🚧 English version is stil under development | ||
Please check [Japanese version](/ja/) at the moment. | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script setup> | ||
import AuthorProfile from '../.vitepress/components/AuthorProfile.vue' | ||
</script> | ||
|
||
# Project Setup | ||
|
||
::: warning 🚧 English version is stil under development | ||
Please check [Japanese version](/ja/) at the moment. | ||
::: |