提交 e9865165 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #28979 from y-yagi/build_package_json_in_create_root_files

Move `package.json` creation to `create_root_files`
......@@ -67,6 +67,10 @@ def version_control
end
end
def package_json
template "package.json"
end
def app
directory "app"
......@@ -198,10 +202,6 @@ def tmp
def vendor
empty_directory_with_keep_file "vendor"
unless options[:skip_yarn]
template "package.json"
end
end
end
......@@ -248,6 +248,7 @@ def create_root_files
build(:gitignore) unless options[:skip_git]
build(:gemfile) unless options[:skip_gemfile]
build(:version_control)
build(:package_json) unless options[:skip_yarn]
end
def create_app_files
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册