Skip to content

Commit 5c53b54

Browse files
committed
Some filthy hax going on here, nothing to see
1 parent b0e0c72 commit 5c53b54

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

app/models/helix_pi_repo.rb

+10-1
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,21 @@ def setup
77
Dir.chdir 'helix-pi' do
88
`git checkout master`
99
`git fetch`
10+
`npm install`
1011
end
1112
end
1213

1314
def checkout(hash)
1415
Dir.chdir 'helix-pi' do
15-
`git checkout #{hash}`
16+
`git checkout #{hash} -- .`
17+
18+
19+
helix_pi_lines = File.readlines('helix.js')
20+
21+
if helix_pi_lines.first.include? 'babel'
22+
helix_pi_lines.shift
23+
File.write('helix.js', helix_pi_lines.join("\n"))
24+
end
1625
end
1726
end
1827

benchmark.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var helixPi = require('./helix-pi');
1+
var helixPi = require('./helix-pi/helix');
22

33
var fitnessScenarios = {
44
participants: ['swordsunit', 'ball'],

0 commit comments

Comments
 (0)