Open idleberg opened 2 years ago
Hi @idleberg . Thanks for the feature request. We are already working on a new extension manager based on NPM. Ie, ability to publish and load extensions directly from npm.
But to gain more clarity, can you describe the workflow or provide more details of the feature you have in mind.
Well, I see two ways to handle this:
npm install --omit=dev
to satisfy dependencies (this is how Atom does it)Either way, as a consequence an extension script could import modules as you would do in a standard NodeJS script. IIRC, Bracket exposes require
that has no awareness of node_modules
.
Among programming languages, JavaScript has the biggest eco-system in the world. Hence, Brackets would benefit from this if extensions could load packages from npm. Right now, developers need to build obscure build-pipelines or make use of workarounds to load "external" code.