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

Added root option #4

Merged
merged 1 commit into from
Jul 6, 2015
Merged

Added root option #4

merged 1 commit into from
Jul 6, 2015

Conversation

blond
Copy link
Member

@blond blond commented Jul 2, 2015

Resolved #3

@blond
Copy link
Member Author

blond commented Jul 2, 2015

/сс @scf2k @arikon review please

return this.__base();
}

var content = fs.readFileSync(this.processPath(this.path), 'utf8'),
instrumented = instrumenter.instrumentSync(content, path.relative(cwd, this.path));
root = this.tech._root,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Кажется, переменная root не нужна

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ок, исправлю.

@blond
Copy link
Member Author

blond commented Jul 3, 2015

Исправил замечания.

@arikon
Copy link
Contributor

arikon commented Jul 4, 2015

@blond Давай разберёмся, что такое options.instrumentPaths, потому что я уже не уверен, что надо резолвить от root, а не от cwd.

Это пути к директориям, который нужно инструментить? Если так, то логично будет их резолвить от root, потому что при использовании borschik через api cwd может быть вообще левый и не подконтрольный.

@blond
Copy link
Member Author

blond commented Jul 4, 2015

Это пути к директориям, который нужно инструментить?

К файлам, которые нужно инструментить.

Если так, то логично будет их резолвить от root, потому что при использовании borschik через api cwd может быть вообще левый и не подконтрольный.

Да, согласен. Сразу так не сделал, потому что в моём случае туда сразу приходили абсолютные пути.

@arikon
Copy link
Contributor

arikon commented Jul 4, 2015

🆗

@blond
Copy link
Member Author

blond commented Jul 6, 2015

@arikon, @scf2k Когда сможете принять PR и выпустить версию?

@arikon
Copy link
Contributor

arikon commented Jul 6, 2015

@blond У тебя ж есть права на merge. Можем и на публикацию дать.

arikon added a commit that referenced this pull request Jul 6, 2015
@arikon arikon merged commit 8ba62fa into master Jul 6, 2015
@arikon arikon deleted the issue-3 branch July 6, 2015 17:49
@arikon
Copy link
Contributor

arikon commented Jul 6, 2015

@blond borschik-tech-istanbul@0.3.0

@blond
Copy link
Member Author

blond commented Jul 6, 2015

@arikon, спасибо! :)

@arikon
Copy link
Contributor

arikon commented Jul 6, 2015

@blond Права на публикацию выдал

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