mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Run yarn install in template dir
We want to yarn install in the template dir so that templates get a yarn.lock copied over.
This commit is contained in:
parent
50a402b741
commit
844870038e
1 changed files with 1 additions and 0 deletions
|
@ -541,6 +541,7 @@ Module.new do
|
||||||
FileUtils.cp_r("#{assets_path}/config/webpack", "#{app_template_path}/config/webpack")
|
FileUtils.cp_r("#{assets_path}/config/webpack", "#{app_template_path}/config/webpack")
|
||||||
FileUtils.ln_s("#{assets_path}/node_modules", "#{app_template_path}/node_modules")
|
FileUtils.ln_s("#{assets_path}/node_modules", "#{app_template_path}/node_modules")
|
||||||
FileUtils.chdir(app_template_path) do
|
FileUtils.chdir(app_template_path) do
|
||||||
|
sh "yarn install"
|
||||||
sh "bin/rails webpacker:binstubs"
|
sh "bin/rails webpacker:binstubs"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue