B
Blueprintβ€’2mo ago
Zeph

NPM Packages in Extensions

Is it possible to bundle or install an npm package in an extension? Wanted to try making something but it would require an npm package
9 Replies
π’±π’Ύπ“‡π“Šπ“ˆ 𝒒𝒢𝓂𝒾𝓃𝑔
Not that i know of but have you tried an install script js make sure ur not going outside pterodactyls direcotry
π’±π’Ύπ“‡π“Šπ“ˆ 𝒒𝒢𝓂𝒾𝓃𝑔
blueprint.zip
Powerful, fast and developer-friendly extension framework for Pterodactyl. Utilize extension APIs, inject HTML, modify stylesheets, package extensions and so much more.
Zeph
ZephOPβ€’2mo ago
Might do but I want to make sure it can still go on blueprint.zip/browse
π’±π’Ύπ“‡π“Šπ“ˆ 𝒒𝒢𝓂𝒾𝓃𝑔
if they do not meet all of the following requirements: Scripts should never cause conflicts with other extensions respecting these guidelines. This means extensions are not allowed to overwrite files outside of the scope of their own extensions and must use search-and-replace instead. Scripts must stay within the Pterodactyl instance and not edit anything outside of the panel's webserver folder without user consent. Extensions must undo all of their changes when removing the extension. Updating extensions utilizing scripts must not break their modifications. Scripts should use environment variables or placeholders for detecting the webserver folder. Placeholders are not available for update.sh and export.sh.
Zeph
ZephOPβ€’2mo ago
Was also considering cdnjs, but obviously then I cant use any of the react components that come with it (I also wanna try and make a more compliant Monaco editor since I love Monaco)
π’±π’Ύπ“‡π“Šπ“ˆ 𝒒𝒢𝓂𝒾𝓃𝑔
It wouldnt hurt to ask @Emma when she is awake. Nice! there is alr one what u think about adding to it?
Zeph
ZephOPβ€’2mo ago
It wouldn't be a good idea imo since it isnt on blueprint.zip/browse and editing it to make it compliant might be more work than just making a new one from scratch
Emma
Emmaβ€’2mo ago
I don't think you really can do this tbh
Zeph
ZephOPβ€’2mo ago
Ah, I'll give it a shot using cdnjs but I have no clue how it'll go

Did you find this page helpful?