Giter VIP home page Giter VIP logo

hugo-bin's Introduction

hugo-bin Build Status

Binary wrapper for Hugo

Install

npm install --save-dev hugo-bin

Usage

API

const execFile = require('child_process').execFile;
const hugo = require('hugo-bin');

execFile(hugo, ['version'], (err, stdout) => {
  console.log(stdout);
});

CLI

$(npm bin)/hugo --help
npm run create -- 'post/my-new-post' # see below 'npm-run-script'

npm-run-script

{
  "scripts": {
    "build": "hugo",
    "create": "hugo new",
    "serve": "hugo server -ws"
  }
}

See the Hugo Documentation for more information.

Supported versions

hugo-bin version Hugo version
^0.21.0 v0.34
^0.20.0 v0.33
^0.19.0 v0.32.4
^0.18.0 v0.31.1
^0.17.0 v0.30.2
^0.16.0 v0.29
^0.15.0 v0.28
^0.14.0 v0.27.1
^0.13.0 v0.26
^0.12.0 v0.25.1
^0.11.0 v0.24.1
^0.10.0 v0.23
^0.9.0 v0.22.1
^0.8.0 v0.21
^0.7.0 v0.20.7
^0.6.0 v0.19
^0.5.0 v0.18.1
^0.4.0 v0.17
^0.3.0 v0.16

Full example

Super Inspired By

License

MIT © Shun Sato

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.