File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ lib/handlebars/compiler/parser.js
6
6
node_modules
7
7
* .sublime-project
8
8
* .sublime-workspace
9
+ npm-debug.log
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ require "rubygems"
2
2
require "bundler/setup"
3
3
4
4
def compile_parser
5
- system "jison src/handlebars.yy src/handlebars.l"
5
+ system "./node_modules/ jison/lib/jison/cli-wrapper.js src/handlebars.yy src/handlebars.l"
6
6
if $?. success?
7
7
File . open ( "lib/handlebars/compiler/parser.js" , "w" ) do |file |
8
8
file . puts File . read ( "handlebars.js" ) + ";"
@@ -15,11 +15,11 @@ def compile_parser
15
15
end
16
16
17
17
file "lib/handlebars/compiler/parser.js" => [ "src/handlebars.yy" , "src/handlebars.l" ] do
18
- if ENV [ 'PATH' ] . split ( ':' ) . any? { | folder | File . exists? ( folder + '/ jison' ) }
18
+ if File . exists? ( './node_modules/ jison/lib/jison/cli-wrapper.js' )
19
19
compile_parser
20
20
else
21
21
puts "Jison is not installed. Trying `npm install jison`."
22
- sh "npm install jison -g "
22
+ sh "npm install jison"
23
23
compile_parser
24
24
end
25
25
end
You can’t perform that action at this time.
0 commit comments