開発アウトライン
| Label | URL | Note |
|---|---|---|
| web server | http://localhost:8080 | htdocs/ と対応するWebサーバー |
| movabletype | http://localhost:8080/mt/admin | ID / PW: colsis / usausa**** |
| mailpit | http://localhost:8025 | メール送信確認画面 |
ディレクトリ構成
Section titled “ディレクトリ構成”ディレクトリapps/ # デプロイ対象のnodejsプロジェクト
ディレクトリdocs/ # 本ドキュメント開発
- …
ディレクトリuserjs/ # MTAppjQueryプラグインのuser.js開発
- …
ディレクトリwebsite/ # CSSやJS等のWebサイト用アセット開発
- …
ディレクトリpackages/ # appsから参照される共有ライブラリ
ディレクトリtsconfig/ # 共有TypeScript設定
- …
ディレクトリui/ # 共有UIライブラリ
- …
- …
ディレクトリhtdocs/ # ローカルのプレビューサーバー
- …
ディレクトリmovabletype/ # MovableType関連ファイルを管理
- …
- 各
apps/*のbuild成果物やMTの再構築結果は、全てhtdocs/配下に出力されます。 apps/userjs/のみ、MTプラグイン拡張用途なため、movabletype/配下に出力されます。
Commands
Section titled “Commands”pnpm workspaces + Vite Plus を利用したモノレポ構成です。
- vpコマンドのについては、Vite Plusの公式リファレンスを参照して下さい。
全てのパッケージに対するコマンド
Section titled “全てのパッケージに対するコマンド”# 全てのパッケージのライブラリinstallを実行vp install
# 全てのパッケージのdevコマンドを実行vp run dev
# 全てパッケージのbuiidコマンドを実行vp run build特定のパッケージに対するコマンド
Section titled “特定のパッケージに対するコマンド”# apps/docs に対してdevコマンドを実行vp run --filter docs dev
# apps/docs に対してbuildコマンドを実行vp run --filter docs build
# apps/docs のライブラリ操作vp add --filter docs xxxxvp remove --filter docs xxxx