Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Errors generated when running Hexo API commands under Gulp #4192
Please check followings before submitting a new issue.
I've written a Gulp file to automate the cleaning and regeneration of Hexo content in my blog - it is reproduced below:
This should run the same as running
If I run the gulp file as-is, I see these errors appear - I'm not sure if this is because I'm running under Gulp - anyone any advice?
I also see a deprecation notice appearing - this seems to be coming from the
How to reproduce?
Environment & Settings
Node.js & npm version
Hexo and Plugin version(
FYI - I've managed to get something working with Grunt; if anyone wants the code, here it is:
It uses the grunt-shell command to run each command; so far, initial indications are that it is recreating the database / public files fine, and restarts the server with no issue. I've included the -no-optional tag as I use Windows, but that may not be needed for Mac or Linux users.
It would be nice to know if Gulp can do something similar - have you had any success in investigating what's going on with my original code and why it's failing?