Skip to content

Instantly share code, notes, and snippets.

import sbt.Keys._
import sbt.Project.projectToRef
// a special crossProject for configuring a JS/JVM/shared structure
lazy val shared = (crossProject.crossType(CrossType.Pure) in file("shared"))
.settings(
scalaVersion := Settings.versions.scala,
libraryDependencies ++= Settings.sharedDependencies.value
)
// set up settings specific to the JS project
import sbt._
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
/**
* Application settings. Configure the build for your application here.
* You normally don't have to touch the actual build definition after this.
*/
object Settings {
/** The name of your application */
val name = "Sicap"
import sbt.Keys._
import sbt.Project.projectToRef
// a special crossProject for configuring a JS/JVM/shared structure
lazy val shared = (crossProject.crossType(CrossType.Pure) in file("shared"))
.settings(
scalaVersion := Settings.versions.scala,
libraryDependencies ++= Settings.sharedDependencies.value
)
// set up settings specific to the JS project
import sbt._
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
/**
* Application settings. Configure the build for your application here.
* You normally don't have to touch the actual build definition after this.
*/
object Settings {
addCompilerPlugin("org.scalamacros" %% "paradise" % "2.1.1" cross CrossVersion.patch)
// repository for Typesafe plugins
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/"
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.22") // "0.6.22" "0.6.18" "1.0.0-M3"
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.1.2") //"1.0.6"
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.3") //"1.0.0"
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.13") //"2.6.11" //addSbtPlugin("com.typesafe.play" % "play" % "2.5.18") //2.5.15
import sbt._
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
/**
* Application settings. Configure the build for your application here.
* You normally don't have to touch the actual build definition after this.
*/
object Settings {
/** The name of your application */
val name = "Sicap"
import sbt.Keys._
import sbt.Project.projectToRef
// a special crossProject for configuring a JS/JVM/shared structure
lazy val shared = (crossProject.crossType(CrossType.Pure) in file("shared"))
.settings(
scalaVersion := Settings.versions.scala,
libraryDependencies ++= Settings.sharedDependencies.value
)
// set up settings specific to the JS project
// repository for Typesafe plugins
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/"
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.22") // "0.6.22" "0.6.18" "1.0.0-M3"
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.1.2") //"1.0.6"
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.5") //"1.0.0" "1.3.3"
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.13") //"2.6.11" //addSbtPlugin("com.typesafe.play" % "play" % "2.5.18") //2.5.15
[info] LESS compiling on 1 source(s)
[error] /home/elyphas/Projs/requisicion/server/src/main/assets/stylesheets/main.less:1:1: 'lib/bootstrap/less/bootstrap.less' wasn't found. Tried - /home/elyphas/Projs/requisicion/server/src/main/assets/stylesheets/lib/bootstrap/less/bootstrap.less,/home/elyphas/Projs/requisicion/server/src/main/assets/lib/bootstrap/less/bootstrap.less,/home/elyphas/Projs/requisicion/client/src/main/scala-2.12/lib/bootstrap/less/bootstrap.less,/home/elyphas/Projs/requisicion/client/src/main/scala/lib/bootstrap/less/bootstrap.less,/home/elyphas/Projs/requisicion/client/src/main/java/lib/bootstrap/less/bootstrap.less,/home/elyphas/Projs/requisicion/shared/.js/src/main/scala-2.12/lib/bootstrap/less/bootstrap.less,/home/elyphas/Projs/requisicion/shared/.js/src/main/scala/lib/bootstrap/less/bootstrap.less,/home/elyphas/Projs/requisicion/shared/.js/src/main/java/lib/bootstrap/less/bootstrap.less,/home/elyphas/Projs/requisicion/shared/src/main/scala-2.12/lib/bootstrap/less/bootstrap.less,/home/el
@elyphas
elyphas / FSM
Created November 26, 2018 16:10
class FSMBackend() extends BaseListFSM[FSMStateBase, ReactState] {
def msgSelectItem(reactS: ReactState): StateFunction = {
case Event(MsgSelectItem(id, txt), s) => {
val activReng = ViewRenglonRequisicion(
cve_oficina = reactS.idRequisicion.cve_oficina,
folio = reactS.idRequisicion.folio,
ejercicio = reactS.idRequisicion.ejercicio,
renglon = reactS.activeRenglon.renglon, //reactS.requisicion.items.size + 1,
clave = id,