GithubHelp home page GithubHelp logo

hugo-cli integration about hugulp HOT 5 CLOSED

jbrodriguez avatar jbrodriguez commented on July 24, 2024
hugo-cli integration

from hugulp.

Comments (5)

jbrodriguez avatar jbrodriguez commented on July 24, 2024

Thanks for the comments @levidrain.

It's not easy to integrate because they're built on different platforms (go vs node).

Having said that, I'm always looking to replace gulp (a most importantly the plugins) with a go-based tool.

That would make it trivial to integrate.

But I haven't found go libraries/packages comparable (and up-to-date) to gulp-sass, gulp-rev, etc.

It can definitely be done in go, but there's no such ecosystem currently available (that I know of at least).

from hugulp.

levidrain avatar levidrain commented on July 24, 2024

My background isn't in node or even go for that matter. But I guess I was thinking it would be trivial. There's an Npm wrapper around hugo already. If it were listed as a dependency, then it would be available on the command line and your current setup would just work the way it does now.

from hugulp.

jbrodriguez avatar jbrodriguez commented on July 24, 2024

Ok, to get a better idea, how do you picture the integration ?
Or what are you proposing ?
Just trying to figure out what you're thinking :)

from hugulp.

levidrain avatar levidrain commented on July 24, 2024

To use hugulp now (at least on windows) you have to separately download hugo.exe and make sure it's in your path. This means picking the right execute for your system, renaming it to hugo.exe and adding the folder it's in to the path.
But hugulp already uses Npm to get install. If the hugo-cli package were listed in the packages js file, it would be pulled down when hugulp is installed, right. Which (I think) mean hugulp would just work with the need for the cumbersome steps listed above.

from hugulp.

jbrodriguez avatar jbrodriguez commented on July 24, 2024

Ok, now I see where you're coming from 👍

I'd probably not default to make hugulp install hugo, as it's likely that it was already installed.

I'll give it some thought and come back with a proposal.

from hugulp.

Related Issues (20)

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.