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

Replace global-npm.install with npminstall #148

Merged
merged 2 commits into from
Nov 8, 2019
Merged

Replace global-npm.install with npminstall #148

merged 2 commits into from
Nov 8, 2019

Conversation

xuchaoying
Copy link
Member

@xuchaoying xuchaoying commented Nov 7, 2019

to prevent other plugin auto deletion when install a new one

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

bug fix

  • What is the related issue? (Use #issue_id to relate an open issue)

#142

  • Does this PR introduce a breaking change?

no

  • Other information:
  • Prevent the other plugins auto deletion when install a new one
  • Speed up the installation

to prevent other plugin auto deletion when install a new one
@xuchaoying xuchaoying added the PR: bug fix :bug: Bug Fix label Nov 7, 2019
@codecov
Copy link

codecov bot commented Nov 7, 2019

Codecov Report

Merging #148 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #148      +/-   ##
==========================================
+ Coverage   92.34%   92.37%   +0.03%     
==========================================
  Files          44       45       +1     
  Lines        1607     1614       +7     
==========================================
+ Hits         1484     1491       +7     
  Misses        123      123
Impacted Files Coverage Δ
packages/svrx-util/lib/npm/index.js 96.55% <100%> (-0.33%) ⬇️
packages/svrx-util/lib/readJSON.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5d6676...07a0fef. Read the comment docs.

@zwmmm
Copy link

zwmmm commented Nov 7, 2019

Please merge quickly.

@xuchaoying xuchaoying marked this pull request as ready for review November 7, 2019 13:10
@xuchaoying xuchaoying merged commit cb1f791 into master Nov 8, 2019
@xuchaoying xuchaoying deleted the cy-142 branch November 8, 2019 02:01
xuchaoying added a commit that referenced this pull request Nov 14, 2019
xuchaoying added a commit that referenced this pull request Nov 18, 2019
* Revert "fix: replace global-npm.install with npminstall (#148)"

This reverts commit cb1f791

* build: add package-manager test for plugins

* build: add other package-manager test for plugins

* feat(util): add package-manager for plugins

* refactor: move name formatter to util package

* refactor(util): remove package-manager localinstall

* refactor(util): change return value.name to pluginName

instead of packageName

* refactor(plugin): replace plugin load with package-manager

* fix(package-manager): fix dependencies install

* test(package-manager): fix getRemoteBestfit

* refactor: remove package installation in core

* refactor(package-manager): add view task

* feat(package-manager): add auto download latest packages before load

* test: add timeout

* build(deps): update deps

* refactor: simplify packName definition

* refactor: remove core package manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bug fix :bug: Bug Fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants