hexo-deployer-shell

A plugin to alias your own deploy command to `hexo deploy`.

Usage no npm install needed!

<script type="module">
  import hexoDeployerShell from 'https://cdn.skypack.dev/hexo-deployer-shell';
</script>

README

hexo-deployer-shell

Shell deployer plugin for Hexo.

This deployer is simple a alias to your own deploy shell scripts. You should use your own way to deploy your hexo project.

Installation

npm install hexo-deployer-shell --save

Options

You can configure this plugin in _config.yml.

deploy:
    type: shell
    command: <your deploy command>

You can specify options of command. For example:

deploy:
    type: shell
    command: <your deploy command>
    options:
        timeout: 2000

hexo-deployer-shell use child_process.exec internal, the options arguments will be pass to child_process.exec directly. See more info on Node.js official website.

That's all. Enjoy!

License

MIT