Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ pnpm build

出力先: `dist/aeft/MyFirstScript/MyFirstScript.jsx`

複数スクリプトの単発ビルドは、既定で最大4件まで並列に実行されます。並列度を指定する
場合は `pnpm build --concurrency=2` のように指定してください。`--concurrency=1` では
スクリプト単位の依存範囲を保ったまま逐次実行できます。監視ビルド `pnpm watch` はこの
最適化の対象外です。

### 4. Adobe アプリで実行

- After Effects: `File > Scripts > Run Script File...` からビルド済み `.jsx` を選択します
Expand Down
12 changes: 12 additions & 0 deletions docs/project-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,18 @@ pnpm add-app -- --app=idsn
| `pnpm clean` | ビルドハッシュをクリーンアップ |
| `pnpm test` | ビルド差分判定の回帰テスト |

`pnpm build`、`pnpm build --all`、`pnpm build --app=<appId>`、アプリ別のビルド別名は、
対象スクリプトごとにTypeScriptの依存範囲を限定し、上限付きで並列実行します。既定の
並列度は `min(4, os.availableParallelism(), 対象件数)` です。利用できない実行環境では
`os.cpus().length` を使います。

並列度は `--concurrency=<正整数>` で上書きできます。`--concurrency=1` は並列実行だけを
無効にし、スクリプト単位のTypeScript範囲限定は維持します。0、負数、小数、数値以外、
値なしはエラーとして終了します。

`pnpm watch` は今回の単発ビルド最適化の対象外です。従来どおりRollupの監視処理を使い、
`--concurrency` の指定は監視ビルドには適用されません。

## 差分ビルドの判定

`pnpm build` は、各スクリプトの `index.ts` から相対 `import` / `export ... from`
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
},
"packageManager": "pnpm@11.17.0",
"scripts": {
"build": "rollup -c",
"build:aeft": "rollup -c --app=aeft",
"build:ilst": "rollup -c --app=ilst",
"build:phxs": "rollup -c --app=phxs",
"build": "node ./scripts/build.mjs",
"build:aeft": "node ./scripts/build.mjs --app=aeft",
"build:ilst": "node ./scripts/build.mjs --app=ilst",
"build:phxs": "node ./scripts/build.mjs --app=phxs",
"clean": "node ./scripts/cleanBuildHashes.mjs",
"test": "node --test",
"watch": "rollup -c -w",
Expand All @@ -34,6 +34,7 @@
"@babel/core": "^7.29.7",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-class-properties": "^7.29.7",
"@babel/plugin-transform-classes": "^7.29.7",
"@babel/plugin-transform-member-expression-literals": "^7.29.7",
"@babel/plugin-transform-property-literals": "^7.29.7",
"@babel/plugin-transform-property-mutators": "^7.29.7",
Expand Down
51 changes: 11 additions & 40 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading