godot-package-manager / cli Goto Github PK
View Code? Open in Web Editor NEWGodot package manager rust client
License: Apache License 2.0
Godot package manager rust client
License: Apache License 2.0
npm
can install packages directly from git
(see https://linux.how2shout.com/how-to-install-a-npm-package-directly-from-github/).
For example we can install the private repo I modified for this test with:
npm install [email protected]:razcore-rad/godot-colorpicker-presets.git[#branch/tag/commit]
And the public repo with:
https://github.com/razcore-rad/godot-colorpicker-presets.git[#branch/tag/commit]
Where the #branch
, #tag
, #commit
specification is optional.
For example:
code/razcore-rad/godot-4-dbg via ๐ v3.11.2 (default)
โฏ npm i git@github.com:razcore-rad/godot-colorpicker-presets.git#npm-test
added 1 package in 4s
code/razcore-rad/godot-4-dbg via ๎ v20.1.0 via ๐ v3.11.2 (default)
โฏ ls node_modules/@razcore-rad/colorpicker_presets/
โญโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโโโโโโโฎ
โ # โ name โ type โ size โ modified โ
โโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโผโโโโโโโโโผโโโโโโโโโโโโโโโโค
โ 0 โ node_modules/@razcore-rad/colorpicker_presets/LICENSE โ file โ 1.1 KB โ 5 minutes ago โ
โ 1 โ node_modules/@razcore-rad/colorpicker_presets/README.md โ file โ 1.4 KB โ 5 minutes ago โ
โ 2 โ node_modules/@razcore-rad/colorpicker_presets/addons โ dir โ 4.1 KB โ 5 minutes ago โ
โ 3 โ node_modules/@razcore-rad/colorpicker_presets/colorpicker_presets.gd โ file โ 722 B โ 5 minutes ago โ
โ 4 โ node_modules/@razcore-rad/colorpicker_presets/package.json โ file โ 669 B โ 5 minutes ago โ
โ 5 โ node_modules/@razcore-rad/colorpicker_presets/plugin.cfg โ file โ 238 B โ 5 minutes ago โ
โ 6 โ node_modules/@razcore-rad/colorpicker_presets/presets.hex โ file โ 288 B โ 5 minutes ago โ
โ 7 โ node_modules/@razcore-rad/colorpicker_presets/project.godot โ file โ 408 B โ 5 minutes ago โ
โ 8 โ node_modules/@razcore-rad/colorpicker_presets/readme โ dir โ 4.1 KB โ 5 minutes ago โ
โฐโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโดโโโโโโโโโดโโโโโโโโโโโโโโโโฏ
code/razcore-rad/godot-4-dbg via ๎ v20.1.0 via ๐ v3.11.2 (default)
โฏ bat package.json
File: package.json
1 {
2 "dependencies": {
3 "@razcore-rad/colorpicker_presets": "github:razcore-rad/godot-colorpicker-presets#npm-test"
4 }
5 }
This is a feature request for gpm
so we can use:
code/razcore-rad/godot-4-dbg via ๎ v20.1.0 via ๐ v3.11.2 (default) took 2s
โฏ bat godot.package
File: godot.package
1 packages: {
2 @bendn/remap: 5.1.0,
3 [email protected]:razcore-rad/godot-colorpicker-presets.git: npm-test
4 }
Right now I'm getting this error if I run gpm update
with the above godot.package
file:
code/razcore-rad/godot-4-dbg via ๎ v20.1.0 via ๐ v3.11.2 (default) took 20s
โฏ gpm update
Error called `Result::unwrap()` on an `Err` value: missing field `dist` at line 1 column 21 (@src/config_file.rs:63)
I also tried:
code/razcore-rad/godot-4-dbg via ๎ v20.1.0 via ๐ v3.11.2 (default)
โฏ bat godot.package
File: godot.package
1 packages: {
2 @bendn/remap: 5.1.0,
3 @razcore-rad/colorpicker_presets: github:razcore-rad/godot-colorpicker-presets#npm-test
4 }
code/razcore-rad/godot-4-dbg via ๎ v20.1.0 via ๐ v3.11.2 (default) took 27s
โฏ gpm update
Error called `Result::unwrap()` on an `Err` value: missing field `dist` at line 1 column 3656 (@src/config_file.rs:63)
A bit of background: at GDQuest we're trying to find a solution for dependencies since we have a lot of assets shared between projects, including custom global classes etc.
I think we're kind of stretching the possibilities of the Godot addon-system here, but today I experimented with a few plugins and scoped NPM packages:
They are installed under the @razcore-rad
folder in this case and although Godot detects the plugins, I don't think the system was meant to work this way:
โฏ tree -L 2 addons/
addons/
โโโ @razcore-rad
โโโ colorpicker_presets
โโโ kenny_prototype_material
They seem to work fine if there are no global classes (class_name
) definitions, but in this case kenny_prototype_material
should register a resource material. This works if I move the folder one level above:
โฏ tree -L 2 addons/
addons/
โโโ kenny_prototype_material
โย ย โโโ ...
โโโ @razcore-rad
โโโ colorpicker_presets
But not if it's nested under @razcore-rad
.
It would be nice to install the project at @razcore-rad.addon_name
instead and this should solve the scoped packages problem. What do you think of this case?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.