mint-lang / mint

:leaves: A refreshing programming language for the front-end web.
https://mint-lang.com
BSD 3-Clause "New" or "Revised" License
4.06k stars 141 forks source link

Store 'mint-packages' in one global directory #78

Open s0kil opened 6 years ago

s0kil commented 6 years ago

Mint downloads mint-packages per project folder. It should store in a global directory such as:

$HOME/.mint/0.2.1/package/mint-lang/mint-core/0.2.0

s0kil commented 4 years ago

We could pursue a path similar to https://pnpm.js.org and create a symbolic link from global/package/name to project/package/name.

gdotdesign commented 4 years ago

Since we are using Git repositories as packages and don't know if it makes sense to store versions of them separately, I need to think about how and if this can be implemented.

s0kil commented 4 years ago

We could also read from ENV variable MINT_PACKAGES_PATH, and tools such as asdf could create separate package's directory for every Mint version.

Example: Mint 0.10.0