Giter VIP home page Giter VIP logo

Comments (10)

lmarkus avatar lmarkus commented on July 27, 2024

Grunt uses minimatch.

minimatch says no to backslashes:
https://github.com/isaacs/minimatch/blob/master/minimatch.js#L147

  if (platform === "win32") {
    pattern = pattern.split("\\").join("/")
  }

from makara.

alexsantos avatar alexsantos commented on July 27, 2024

I've been doing some tests on windows and found this:

The findCommonRoot function in fileutil is getting a list of files with the separator '/' but uses the separator from path.sep, which is '' on Windows. If you hardcode it to '/' it works well.

from makara.

alexsantos avatar alexsantos commented on July 27, 2024

I've been looking at this issue and have been able to compile the index.dust and the layouts/master.dust templates but not the errors/*.dust templates.
Grunt uses always a slash as a dir separator has @lmarkus noted above, even on Windows but the path module uses the separator from the OS and when on Windows, it automatically changes the slash to backslashes, which causes a big mess.
What I've done was look for the places where it is changing to backslashes and turn into slash and only use backslashes when there is some file read.

from makara.

alexsantos avatar alexsantos commented on July 27, 2024

@lmarkus I can now compile on Windows all dust templates and generate the .js files. The problem is that I still have the 500 error when running node on production mode...

from makara.

lmarkus avatar lmarkus commented on July 27, 2024

Can you point me to the repo where you've been doing the work?

from makara.

alexsantos avatar alexsantos commented on July 27, 2024

I've been doing this locally on my pc but I've forked makara just now so I
can show you what I've been doing. Just a minute :-)

2014-01-27 Lenny Markus [email protected]

Can you point me to the repo where you've been doing the work?


Reply to this email directly or view it on GitHubhttps://github.com//issues/22#issuecomment-33433277
.

from makara.

alexsantos avatar alexsantos commented on July 27, 2024

https://github.com/AlexSantos/makara/blob/fix-windows-build/tasks/dustjs-i18n.js

2014-01-27 Alexandre Santos [email protected]

I've been doing this locally on my pc but I've forked makara just now so I
can show you what I've been doing. Just a minute :-)

2014-01-27 Lenny Markus [email protected]

Can you point me to the repo where you've been doing the work?


Reply to this email directly or view it on GitHubhttps://github.com//issues/22#issuecomment-33433277
.

from makara.

alexsantos avatar alexsantos commented on July 27, 2024

@lmarkus , I hope it helped to solve the problem.

from makara.

lmarkus avatar lmarkus commented on July 27, 2024

Fixed via d77202e

from makara.

lmarkus avatar lmarkus commented on July 27, 2024

@alexsantos Part of the solution 😄

from makara.

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.