Skip to content

Commit fcfdef3

Browse files
committed
Code formatting 💅
1 parent 001d153 commit fcfdef3

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

lib/index.js

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,33 @@ function GitRevisionPlugin (options) {
1212
}
1313

1414
GitRevisionPlugin.prototype.apply = function (compiler) {
15-
buildFile(compiler, this.gitWorkTree, this.commithashCommand, /\[git-revision-hash\]/gi, 'COMMITHASH')
16-
buildFile(compiler, this.gitWorkTree, this.versionCommand + (this.lightweightTags ? ' --tags' : ''), /\[git-revision-version\]/gi, 'VERSION')
15+
buildFile(compiler,
16+
this.gitWorkTree,
17+
this.commithashCommand,
18+
/\[git-revision-hash\]/gi,
19+
'COMMITHASH'
20+
)
21+
22+
buildFile(compiler,
23+
this.gitWorkTree,
24+
this.versionCommand + (this.lightweightTags ? ' --tags' : ''),
25+
/\[git-revision-version\]/gi,
26+
'VERSION'
27+
)
1728
}
1829

1930
GitRevisionPlugin.prototype.commithash = function (callback) {
20-
return runGitCommand(this.gitWorkTree, this.commithashCommand)
31+
return runGitCommand(
32+
this.gitWorkTree,
33+
this.commithashCommand
34+
)
2135
}
2236

2337
GitRevisionPlugin.prototype.version = function (callback) {
24-
return runGitCommand(this.gitWorkTree, this.versionCommand + (this.lightweightTags ? ' --tags' : ''))
38+
return runGitCommand(
39+
this.gitWorkTree,
40+
this.versionCommand + (this.lightweightTags ? ' --tags' : '')
41+
)
2542
}
2643

2744
module.exports = GitRevisionPlugin

0 commit comments

Comments
 (0)