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

Democratized Unity Package Manager

Democratized Unity Package Manager

2019/07/20 (Sat) に開催された「Unity++ 〜ショートセッション勉強会 presented by Unity部〜」の登壇資料です。
https://meetup.unity3d.jp/jp/events/1112

Tetsuya Mori

July 20, 2019
Tweet

More Decks by Tetsuya Mori

Other Decks in Programming

Transcript

  1.   4DPQFE3FHJTUSZ 6OJUZ1BDLBHF.BOBHFSͷ֓ཁ packages.unity.com Timeline Project A Addressable uGUI

    my-packages.com UniRx Zenject SugoiUtil upm.kidsstar.co.jp Shaders Fonts OreOre UniRx Project B
  2.   ॳظઃఆ 1BDLBHFΛ࢖͏ { "scopedRegistries": [ { "name": "Unofficial

    Unity Package Manager Registry", "url": "https://upm-packages.dev", "scopes": [ "dev.monry.upm", "jp.cysharp" ] }, { "name": "KidsStar Unity Package Manager Registry", "url": "https://upm.kidsstar.co.jp", "scopes": [ "jp.co.kidsstar.upm" ] } ], "dependencies": { "com.unity.ads": "2.0.8", // (snip) "com.unity.modules.xr": "1.0.0" } }
  3. { "scopedRegistries": [ { "name": "Unofficial Unity Package Manager Registry",

    "url": "https://upm-packages.dev", "scopes": [ "dev.monry.upm", "jp.co.kidsstar.upm", "jp.cysharp" ] }, { "name": "KidsStar Unity Package Manager Registry", "url": "https://upm.kidsstar.co.jp", "scopes": [ "jp.co.kidsstar.upm.private", "jp.co.kidsstar.project" ] } ], "dependencies": { "com.unity.ads": "2.0.8", // (snip) "com.unity.modules.xr": "1.0.0" } }   4DPQFͷߟ͑ํ 1BDLBHFΛ࢖͏ jp.cysharp.unirx jp.cysharp.unitask jp.co.kidsstar.upm.hoge jp.co.kidsstar.upm.fuga jp.co.kidsstar.upm.private.piyo jp.co.kidsstar.project.ponyo dev.monry.upm.foo " # " " " " " # dev.monry.upm.bar " #
  4.   package.json഑ஔ 1BDLBHFΛ࡞Δ { "name": "dev.monry.upm.eventconnector", "displayName": "Event Connector",

    "version": "0.0.1-preview.2", "unity": "2019.1", "description": "Connect presentation events", "author": { "name": "Tetsuya Mori", "url": "https://me.monry.dev/", "email": "[email protected]" }, "license": "MIT", "keywords": [], "category": "", "dependencies": { "com.stevevermeulen.extenject": "9.0.0", "jp.cysharp.unirx": "7.0.0", "jp.cysharp.unitask": "1.0.0" }, "repository": { "type": "git", "url": "https://github.com/monry/EventConnector" } }
  5. w7FSEBDDJPͷ৔߹ϔομʹදࣔ w  w7FSEBDDJPଆͷઃఆʹΑͬͯมΘΔ w$ npm adduser --registry [RegistryURL] w$

    npm login --registry [RegistryURL]   4DPQFE3FHJTUSZ΁ͷೝূ 1BDLBHFΛެ։͢Δ
  6.   ੍ݶ ·ͱΊ w4DFOFΛ4DFOFJO#VJMEʹೖΕΒΕͳ͍ w"TTFU#VOEMFԽ͠·͠ΐ͏ w 7FSTJPOͷ4FN7FS3BOHFه๏ෆՄ w ^1.0.0Έ͍ͨͳͷ͕/(

    w 5FTU"TTFNCMJFTෆՄʢόάΒ͍͠ͷͰ͍ͣΕ௚Δ͔΋ʣ w ೝূඞਢͳ3FHJTUSZ΁ͷΞΫηεෆՄʢ޻෉࣍ୈͰ͍͚Δʣ w 6OJUZYͰରԠ͞ΕΔͱ͔ͳΜͱ͔
  7.   "QQFOEJY w,JET4UBS5FDI/PUF w https://kidsstar-tbf.booth.pm/ wOQNQBDLBHFKTPO w https://docs.npmjs.com/files/package.json wQBDLBHFKTPOͷಠ֦ࣗு

    w https://docs.unity3d.com/Packages/com.unity.package-manager- [email protected]/manual/index.html#package-manifests w 7FSEBDDJP • https://verdaccio.org • https://github.com/verdaccio/verdaccio
  8.   "QQFOEJY w6OPGpDJBM6OJUZ1BDLBHF.BOBHFS3FHJTUSZ whttps://upm-packages.dev/ ϨδετϦ  whttps://docs.upm-packages.dev/ %PDVNFOUT 

    • https://github.com/monry/verdaccio-upm/
 4DPQFE3FHJTUSZ༻LTςϯϓϨ • https://github.com/monry/upm-proxy/
 1SJWBUF3FHJTUSZ༻OHJOYϓϩΩγ  • https://monry.hatenablog.com/entry/2019/06/11/161455
 1SJWBUF3FHJTUSZͷݐͯํ wdͰऴΘΔσΟϨΫτϦʹ͍ͭͯ w https://docs.unity3d.com/Manual/SpecialFolders.html