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

Theme apply process optimization #5467

Open
2 tasks done
github3C opened this issue Apr 17, 2024 · 1 comment
Open
2 tasks done

Theme apply process optimization #5467

github3C opened this issue Apr 17, 2024 · 1 comment

Comments

@github3C
Copy link

Check List

  • I have already read Docs page.
  • I have already searched existing issues.

Feature Request

Recently, I tried installing several themes and encountered an issue when applying a theme:
many themes insist on removing certain plugins and using others as replacements.

I noticed that the package.json file essentially lists all modules required by Hexo plus those needed for the theme.
Is it possible to include related package dependencies directly within the theme file, along with the packages that need to be confirmed for removal?
Ultimately, could we use a Hexo command to handle all these dependencies with one click?

Others

No response

@uiolee
Copy link
Member

uiolee commented Apr 18, 2024

Personally, this is definitely not a good idea. Node's package manager is already complex and powerful enough. If hexo encapsulates it again, it will only make things more complicated. If there's a problem with a dependency, it's harder to troubleshoot.



Now Hexo provides a way to install themes via npm. If themes' developers wish, they can publish npm packages and include the dependencies they need. However, some conflicting plugins still need to be uninstalled manually.

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

No branches or pull requests

2 participants