提交 ca52f784 编写于 作者: Y yuuji.yaginuma

Move `package.json` creation to `create_root_files`

Since `package.json` is created in root directory, it is appropriate to
create it in `create_root_files`.
上级 97f7575f
......@@ -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.
先完成此消息的编辑!
想要评论请 注册