Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: change method of installing extensions #4315

Merged
merged 22 commits into from
Oct 2, 2020

Conversation

a-b-r-o-w-n
Copy link
Contributor

Description

Directly download and unpack extensions using the npm registry api. This enables a unified approach to loading built-in vs remote extensions and results in more transparent installation output.

Task Item

#minor

@coveralls
Copy link

coveralls commented Oct 2, 2020

Coverage Status

Coverage remained the same at 55.589% when pulling 4ad104a on abrown/extensions/npm-pack into 2011ccd on main.

tonyanziano
tonyanziano previously approved these changes Oct 2, 2020
Copy link
Contributor

@tonyanziano tonyanziano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

tonyanziano
tonyanziano previously approved these changes Oct 2, 2020
@a-b-r-o-w-n a-b-r-o-w-n merged commit 00ba03a into main Oct 2, 2020
@a-b-r-o-w-n a-b-r-o-w-n deleted the abrown/extensions/npm-pack branch October 2, 2020 22:39
@cwhitten cwhitten mentioned this pull request Nov 13, 2020
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* update default extensions directory

* load builtin and remote extensions the same way

* refactor installing remote extensions

* update default extension manifest location

* refactor removing an extension

* add tests for npm

* add search method to npm module

* improve error logging

* add tests for downloading extension

* refactor manager tests

* deprecate extendsComposer

* add test for loadFromDir

* add more manager tests

* use npm registry api to search

* omit installed extensions from search

* add getBundle test

* remove rimraf, use remove from fs-extra

* make remvoing builtin a no-op

* add rimraf back to dev deps

* fix security warning by resolving to terser-webpack-plugin version

* ensure extensions cannot be installed outside remoteDir

* supress lgtm error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants