Skip to content

Adds --useVscode flag to override location of .vscode/settings.json #112

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cspotcode
Copy link
Contributor

Implements #109

I also had to tweak the test cases to run on Windows. Spawning tslint, for example, is a bit different on Windows since npm generates a .cmd shim for package binaries on Windows.

- use cross-spawn to invoke tslint, since it's a .cmd on Windows
- manually invoke `node` when running tsfmt since Windows doesn't natively support hashbangs
- normalize process.cwd() to unix path separators when comparing against other paths
- add .gitattributes that prevents automatic eol changes since some test
cases require CRLF, some require LF
@vvakame
Copy link
Owner

vvakame commented Oct 26, 2017

I'm partially merged this PR in 9e285b4

I will checking Fix tests to run on Windows later.
I do not want to increase dependency packages much, so I will think about it a bit later. 😉

@vvakame vvakame self-requested a review October 26, 2017 03:42
@vvakame vvakame self-assigned this Oct 26, 2017
@cspotcode
Copy link
Contributor Author

The extra dependency is only for development, not runtime, so it will not affect users. You can of course implement the necessary Windows spawning yourself, but that sounds like extra effort without any real benefit.

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