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.
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.
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?
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
I don't think you really can do this tbh
Ah, I'll give it a shot using cdnjs but I have no clue how it'll go