Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4a6c00f

Browse files
committed
windows fix 1
1 parent432dc28 commit4a6c00f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to[Semantic Versioning](http://semver.org/).
44

5+
##[0.5.5] - in progress
6+
- fixes for Windows
7+
58
##[0.5.4] - 2016-03-09
69
- fix bug that prevented scroll in Atom 1.6+
710
-`< >` button to open console

‎src/services/setGlobals.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export function setGlobals(config: PackageJson) {
88
testRunner:config.config.testRunner,
99
testRunnerOptions:config.config.testRunnerOptions||{}
1010
});
11+
// issues, bugs
1112
loadRepo(config);
1213
// set PackageDeps
1314
loadRunnerDep(config);
@@ -32,15 +33,19 @@ function loadRunnerDep(config: PackageJson) {
3233
throwmessage;
3334
}
3435

36+
// fix main path for Windows
37+
letslash=navigator.appVersion.indexOf('Win')!==-1 ?'\\' :'/';
38+
runnerMain=path.join.apply(null,runnerMain.split(slash));
39+
// trim root path to folder
3540
runnerRoot=runnerRoot.substring(0,runnerRoot.lastIndexOf('/'));
41+
3642
letpathToMain=path.join(runnerRoot,runnerMain);
3743

3844
if(!!require(pathToMain).default){
3945
window.coderoad.runner=require(pathToMain).default;
4046
}else{
4147
window.coderoad.runner=require(pathToMain);
4248
}
43-
4449
}
4550

4651
functionloadRepo(config){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp