hexo-cli | Command line interface for Hexo | Blog library
kandi X-RAY | hexo-cli Summary
kandi X-RAY | hexo-cli Summary
Command line interface for Hexo
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Init tool .
- Entry point of a program
- Prints all the available commands .
- Command wrapper for version
- Pretty print list .
- Prints the help text to the console .
- Check package . json
- Prints help .
- Remove git directory
- Watches the signal
hexo-cli Key Features
hexo-cli Examples and Code Snippets
Community Discussions
Trending Discussions on hexo-cli
QUESTION
I am new to nodejs and i have the following question pertaining to a blog system built in nodejs , its called hexojs , the file structure of this blogging framework in development is like the following:
As you can see the main source code is in the lib folder. For contribution purpose you have to follow the following instructions ( As can be seen HERE ) :
...ANSWER
Answered 2018-Oct-30 at 10:37Hexo is a command line utility built with node.js. It's basically a node module installed globally.
Your blog is also a node module. You can see the similarities with hexo's source code: both your blog and hexo contain package.json
and node_modules
.
However the source code for your blog is generated by hexo. This process is called scaffolding, building a basic structure for your blog that allows you to further build upon it.
This is where you make the confusion: you are mistaking your blog (generated by hexo init blog
), with a production build of hexo, which is a totally different concept. Production build in this context means a version of hexo published to npm that is ready to be used by end users in production.
The difference in folder structure can be explained by the different purposes of each module: hexo needs to perform the scaffolding, while your blog needs to display some posts. For example hexo has a test
folder, which performs unit tests on the scaffolding process, while your blog doesn't need any automated tests.
The source code of hexo can be found in the global installation folder for your npm packages: /usr/local/lib/node
or %USERPROFILE%\AppData\Roaming\npm\node_modules
depending on your platform.
QUESTION
The node version is:
...ANSWER
Answered 2018-Jan-28 at 12:03try yarn global add hexo-cli
global
is yarn's -g
of npm
QUESTION
I'm using hexo in github page. Mistakingly I deleted my local file in my local machine. I tried to make a new local file again by using git clonehttps://github.com/aaayumi/aaayumi.github.io.git
. Then I installed npm install hexo-cli -g
.
I could install all necessary files but when I typed hexo deploy
,
it shows,
ANSWER
Answered 2017-Dec-18 at 02:54The code in https://github.com/aaayumi/aaayumi.github.io is not the source code of your blog, it is just the generated content. What you need are the original markdown files that were inside your source
folder.
You will have to recreate the blog with hexo init
and rewrite your blog posts .. Sorry for that.
Of course you can look at your website directly (http://ayumi-saito.com/) and rewrite the posts, copy pasting from there which should not take that long.
Also to make sure this does not happen again, you can publish your blog source files in a different repository. So that there is always a copy somewhere.
PS: Thanks for using my theme ;)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hexo-cli
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page