Code Monkey home page Code Monkey logo

Comments (5)

greypants avatar greypants commented on July 19, 2024

Good to know. I don't have a Windows setup to test this on. Can you console.log __dirname for me and let me know what it returns?

from blendid.

greypants avatar greypants commented on July 19, 2024

Oh, looks like Windows uses backslashes instead of frontslashes. http://nodejs.org/api/path.html

I'll add a comment in the gulpfile. Changing /gulp/tasks to \gulp\tasks should work for you.

from blendid.

greypants avatar greypants commented on July 19, 2024

I might also be able to use the path module to handle both cases better. http://nodejs.org/api/path.html#path_path_resolve_from_to

from blendid.

etido avatar etido commented on July 19, 2024

thanks, this works for now:
var buildPath = __dirname.split('\gulp\tasks')[0];
Good Job!

from blendid.

greypants avatar greypants commented on July 19, 2024

@etido Just pushed an update. Paths should resolve correctly on Windows now (let me know if that's not the case, and I'll re-open the issue). Thanks again for documenting this.

from blendid.

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.