Skip to content

Commit 7750823

Browse files
committed
fix: pnpm 移行に伴い yarn を使っているドキュメントを pnpm に修正
1 parent 83e462c commit 7750823

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

docs/guides/zenn-editor/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ zenn-editor リポジトリは [lerna](https://github.com/lerna/lerna) による
88

99
それぞれのプロジェクトは `./packages` に配置されています。
1010

11-
リポジトリをクローンし、プロジェクトルートで `yarn install` を実行することで、`./packages` にある全てのプロジェクトの依存モジュールがインストールされます。
11+
リポジトリをクローンし、プロジェクトルートで `pnpm install` を実行することで、`./packages` にある全てのプロジェクトの依存モジュールがインストールされます。
1212

1313
```shell
1414
$ git clone https://github.com/zenn-dev/zenn-editor.git
15-
$ yarn install
15+
$ pnpm install
1616
```
1717

18-
同様に、テストやビルドもプロジェクトのルートで `yarn test``yarn build` を実行することで、`./packages` にある全てのプロジェクトに対して行うことができます。これは依存するモジュールに対するテストや動作確認をしたい時に便利です。
18+
同様に、テストやビルドもプロジェクトのルートで `pnpm test``pnpm build` を実行することで、`./packages` にある全てのプロジェクトに対して行うことができます。これは依存するモジュールに対するテストや動作確認をしたい時に便利です。
1919

2020
## ブランチ
2121

docs/guides/zenn-editor/zenn-cli.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,27 @@ zenn-cli は記事や本のテンプレートを作成するコマンドツー
2222

2323
## 開発環境
2424

25-
`yarn dev` を実行することでクライアントとサーバーが起動します。クライアントは [vite](https://vitejs.dev/) でホスティングされ、サーバーはExpressサーバーを [nodemon](https://nodemon.io/) で監視することで、ホットリロードを実現します。
25+
`pnpm dev` を実行することでクライアントとサーバーが起動します。クライアントは [vite](https://vitejs.dev/) でホスティングされ、サーバーはExpressサーバーを [nodemon](https://nodemon.io/) で監視することで、ホットリロードを実現します。
2626

2727
### その他のコマンドを開発環境で動かす
2828

29-
`yarn build` でビルドを実行したうえで、`yarn zenn **` コマンドを実行します。
29+
`pnpm build` でビルドを実行したうえで、`pnpm zenn **` コマンドを実行します。
3030

3131
```shell
32-
$ yarn build
33-
$ yarn zenn # = npx zenn
34-
$ yarn zenn preview # = npx zenn preview (.mdの変更に伴うホットリロードも有効になります)
35-
$ yarn zenn new:article --slug foo-bar-baz-qux # = npx zenn new:article --slug foo-bar-baz-qux
36-
$ yarn zenn new:book --slug foo-bar-baz-qux # = npx zenn new:book --slug foo-bar-baz-qux
37-
$ yarn zenn --help # = npx zenn --help
32+
$ pnpm build
33+
$ pnpm zenn # = npx zenn
34+
$ pnpm zenn preview # = npx zenn preview (.mdの変更に伴うホットリロードも有効になります)
35+
$ pnpm zenn new:article --slug foo-bar-baz-qux # = npx zenn new:article --slug foo-bar-baz-qux
36+
$ pnpm zenn new:book --slug foo-bar-baz-qux # = npx zenn new:book --slug foo-bar-baz-qux
37+
$ pnpm zenn --help # = npx zenn --help
3838
```
3939

4040
## ビルド
4141

42-
`yarn build``./dist` に生成されたファイルをnpmのリリース時に含めるようにします。( `package.json``files` に指定)
42+
`pnpm build``./dist` に生成されたファイルをnpmのリリース時に含めるようにします。( `package.json``files` に指定)
4343

4444
```shell
45-
$ yarn build
45+
$ pnpm build
4646
```
4747

4848
### webpackの使用について
@@ -57,8 +57,8 @@ zenn-cli では、依存関係(package.json の dependencies)を無くすた
5757

5858
## テスト
5959

60-
`yarn test` で実行します。
60+
`pnpm test` で実行します。
6161

6262
## lint
6363

64-
`yarn lint:fix` で実行します。
64+
`pnpm lint:fix` で実行します。

docs/guides/zenn-editor/zenn-content-css.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ zenn-content-css は、 zenn-markdown-html で markdown から変換された HT
1616

1717
## 開発環境
1818

19-
`yarn dev` を実行することで、変更を検出して自動的に `./lib/index.css` にビルドファイルが生成されます。
19+
`pnpm dev` を実行することで、変更を検出して自動的に `./lib/index.css` にビルドファイルが生成されます。
2020

2121
## ビルド
2222

23-
`yarn build` で実行します。
23+
`pnpm build` で実行します。
2424

2525
## テスト
2626

docs/guides/zenn-editor/zenn-embed-elements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ zenn-embed-elements で変換された HTML:
132132

133133
## ビルド
134134

135-
`yarn build` で実行します。
135+
`pnpm build` で実行します。
136136

137137
## テスト
138138

139139
未実装。
140140

141141
## lint
142142

143-
`yarn lint:fix` で実行します。
143+
`pnpm lint:fix` で実行します。

docs/guides/zenn-editor/zenn-markdown-html.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ zenn-markdown-html は、Zenn独自の記法を含む markdown を HTML に変
5656

5757
## ビルド
5858

59-
`yarn build` で実行します。
59+
`pnpm build` で実行します。
6060

6161
### Babelの使用について
6262

6363
zenn-markdown-html では、`PrismJS` の言語プラグインを予め全て読み込むために `babel-plugin-prismjs` を使用しているため、ソースコードのビルドには `babel` を使用し、型ファイル(*.d.ts)のビルドには `tsc` を使用してビルドしています。
6464

6565
## テスト
6666

67-
`yarn test` で実行します。
67+
`pnpm test` で実行します。
6868

6969
## lint
7070

71-
`yarn lint:fix` で実行します。
71+
`pnpm lint:fix` で実行します。
7272

7373
## 開発方針
7474

docs/guides/zenn-editor/zenn-validator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
## ビルド
1414

15-
`yarn build` で実行します。
15+
`pnpm build` で実行します。
1616

1717
## テスト
1818

19-
`yarn test` で実行します。
19+
`pnpm test` で実行します。
2020

2121
## lint
2222

23-
`yarn lint:fix` で実行します。
23+
`pnpm lint:fix` で実行します。

0 commit comments

Comments
 (0)