简体   繁体   English

如何使用默认SBT布局生成播放应用程序

[英]How generate play application with default SBT layout

How to create new play application template with default sbt layout? 如何使用默认sbt布局创建新的Play应用程序模板?

I can set disablePlugins(PlayLayoutPlugin) in build.sbt on exiting app, but I want generate template from scratch 我可以在退出应用时在build.sbt设置disablePlugins(PlayLayoutPlugin) ,但是我想从头开始生成模板

I finally created a Giter8 template specifically for this. 我终于为此专门创建了一个Giter8模板。

You can do: 你可以做:

sbt new muya/play-sbt-scala-seed.g8

https://github.com/muya/play-sbt-scala-seed.g8 https://github.com/muya/play-sbt-scala-seed.g8

Assuming that you are using Activator , you can use the play-sbt-layout-seed template to create an application using the default SBT layout . 假设您使用的是Activator ,则可以使用play-sbt-layout-seed模板使用默认的SBT布局创建应用程序。 In order to do that, just run the following command: 为此,只需运行以下命令:

activator new your-project-name play-sbt-layout-seed

u need to download play zip package as set path in environment variables and from command prompt execute play new YourApplication 您需要下载play zip软件包作为环境变量中的设置路径,然后从命令提示符处执行play new YourApplication

https://www.playframework.com/documentation/2.0/NewApplication https://www.playframework.com/documentation/2.0/NewApplication

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM