Skip to content

Allows you to script the packaging of your client project before the packaging of the server.

License

Notifications You must be signed in to change notification settings

max-peroch/sbt-package-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt-package-client

Allows you to script the packaging of your client project before the packaging of the server.

To use this plugin use the addSbtPlugin command within your project's plugins.sbt (or as a global setting) i.e.:

addSbtPlugin("org.max-peroch" % "sbt-package-client" % "0.0.1")

And add :

resolvers += Resolver.bintrayIvyRepo("max-peroch","sbt-plugins")

By default, the plugin assume your client directory location in baseDirectory.value / "client", but you can override it with clientDirectory, ex.:

clientDirectory := baseDirectory.value / "myReactApp"

Then your script can goes like :

buildCommands := Seq("npm install", "npm build")

Not related to the plugin, but in case the output of your packaged client is not in the public directory you can add its location like this :

unmanagedResourceDirectories in Assets += baseDirectory.value / "client" / "dist"

About

Allows you to script the packaging of your client project before the packaging of the server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages