You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really liked the idea that hexo plugins are npm packages. But I think that we could apply same approach to hexo themes. Then themes will be easier to update, semantic versioning will be applied, and they will be excluded from version control. Also it would be easier to build themes from source - as npm packages, they will simply have all neccesary dev dependencies.
I already tried this approach on current hexo and it worked with several small hacks:
fork theme you like
add package.json to theme repo
install theme from GitHub as dependency in your blog: "theme-light": "git+https://github.com/jehy/hexo-theme-light.git"
add post install script which adds symlink to package in themes directory: "postinstall": "ln -snf ../node_modules/theme-light themes/light"
I really like how simpler everything bacame after it. Official support for this feature would be great.
Others
The text was updated successfully, but these errors were encountered:
Check List
Please check followings before submitting a new feature request.
Feature Request
I really liked the idea that hexo plugins are npm packages. But I think that we could apply same approach to hexo themes. Then themes will be easier to update, semantic versioning will be applied, and they will be excluded from version control. Also it would be easier to build themes from source - as npm packages, they will simply have all neccesary dev dependencies.
I already tried this approach on current hexo and it worked with several small hacks:
"theme-light": "git+https://github.com/jehy/hexo-theme-light.git"
themes
directory:"postinstall": "ln -snf ../node_modules/theme-light themes/light"
I really like how simpler everything bacame after it. Official support for this feature would be great.
Others
The text was updated successfully, but these errors were encountered: