Upgrade to Pro — share decks privately, control downloads, hide ads and more …

f4samurai社内ゲームライブラリのパッケージ管理手法

まつの
September 22, 2021

 f4samurai社内ゲームライブラリのパッケージ管理手法

2021/9/22 Gotanda.unityのLTで登壇したときの資料です。

イベントアーカイブ:
https://www.youtube.com/watch?v=cDUoBuTJeF8

Gotanda.unity
https://meetup.unity3d.jp/jp/communities/5

まつの

September 22, 2021
Tweet

Other Decks in Programming

Transcript

  1. 使い方 • 依存先はpackage.jsonのgitDependenciesに書き込む (一次依存先のみ記述すればOK) { "name": “jp.co.f4samurai.game-engine.scene-management", "displayName": “f4samurai GameEngine

    SceneManagement", "description": "シーンを遷移・管理する機能を提供します。", "version": "1.1.0", "unity": "2019.4", "repository": { "type": "git", "url": "[email protected]:f4samurai/native-game-engine.git" }, "author": { "name": "f4samurai" }, "dependencies": {}, "gitDependencies": { “jp.co.f4samurai.game-engine.service": "[email protected]:f4samurai/native-game-engine.git?#packages/game-engine/service/v2.0.0" } }
  2. 社内での使い方 (パッケージ使用者) • [プロジェクト]/Packages 以下の2ファイルに自動で追記される • package-lock.json • package-lock.git.json “jp.co.f4samurai.game-engine.web":

    { "version": "file:[email protected]", "depth": 0, "source": "embedded", "dependencies": {} }, { "name": “jp.co.f4samurai.game-engine.web", "hash": "a228e7cb409604ed4e5c1f2ca70e8cd0ed5800af", "url": "[email protected]:f4samurai/native-game-engine.git?#packages/game-engine/web/v0.1.0" },