Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build in windows - WIP #1244

Merged
merged 1 commit into from
Aug 23, 2016

Conversation

blikblum
Copy link
Contributor

This PR fixes two issues building on windows.

To run the binary is necessary to use node ./bin/handlebars instead of ./bin/handlebars

The expected file is read with Windows (/r/n) line ending. Is necessary to convert to Unix line ending (/n) before compare

With this PR, build pass and tests pass but an error occurs running istanbul. Similar to gotwarlost/istanbul#500

Running "test:cov" task
D:\repositories\handlebars.js\node_modules.bin\istanbul:4
case uname in
^^^^

SyntaxError: Unexpected token case
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:134:18)
at node.js:961:3
Fatal error: 1 tests failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants