Git Product home page Git Product logo

Comments (6)

tkellen avatar tkellen commented on May 27, 2024

ping @cowboy

from grunt-cli.

cowboy avatar cowboy commented on May 27, 2024

Now that we're using require to determine where the Grunt lib has been installed, you unfortunately can't run the grunt command from a directory that isn't a subdirectory of where Grunt has been installed. If that makes any sense.

One way we could work around this is to make grunt-cli aware of the --gruntfile flag, but that will complicate the cli tool.

from grunt-cli.

tkellen avatar tkellen commented on May 27, 2024

https://github.com/substack/node-resolve supports using a basedir.

from grunt-cli.

cowboy avatar cowboy commented on May 27, 2024

Right. So the solution is to check and see if --gruntfile is specified, and if so, extract the path part and resolve from there. Can you see a more elegant way?

from grunt-cli.

tkellen avatar tkellen commented on May 27, 2024

Nope, you're totally on point. We should probably spend some time figuring out what the best separation of concerns is for the cli/grunt split, though.

from grunt-cli.

tkellen avatar tkellen commented on May 27, 2024

Merged and published as 0.1.9, thanks!

from grunt-cli.

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.