Skip to content

Fix build in windows - WIP#1244

Merged
kpdecker merged 1 commit intohandlebars-lang:masterfrom
blikblum:fix-build-windows
Aug 23, 2016
Merged

Fix build in windows - WIP#1244
kpdecker merged 1 commit intohandlebars-lang:masterfrom
blikblum:fix-build-windows

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