liftweb-uirouter

angularjs ui-router module for scala liftweb framework

git clone https://9o.is/git/liftweb-uirouter.git

commit 44950a785f137bec161c3129c9fd93b8fddb7ad5
Author: Jul <jul@9o.is>
Date:   Fri,  6 Jun 2014 00:12:56 -0400

init

Diffstat:
A.gitignore | 66++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aproject/.s3credentials | 2++
Aproject/Build.scala | 17+++++++++++++++++
Aproject/BuildSettings.scala | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aproject/plugins.sbt | 14++++++++++++++
Aproject/sbt-launch.jar | 0
Asbt.sh | 2++
7 files changed, 159 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,66 @@ +# use glob syntax. +syntax: glob +*.swp +*.ser +*.class +*~ +*.bak +*.off +*.old +.DS_Store +.cache + +# logs +derby.log + +# eclipse conf file +.settings +.classpath +.project +.manager +.externalToolBuilders + +# ensime/emacs conf files +.ensime +.scala_dependencies + +# building +target +null +tmp* +dist +test-output + +# sbt +target +lib_managed +src_managed +project/boot +project/plugins/project + +# other scm +.svn +.CVS +.hg* + +# switch to regexp syntax. +# syntax: regexp +# ^\.pc/ + +# IntelliJ +*.eml +*.iml +*.ipr +*.iws +.idea + +# Pax Runner (for easy OSGi launching) +runner + +#grunt/requirejs stuff +node_modules/ +bower_components/ +.grunt/ +_SpecRunner.html + +sbt-linuxlab.sh diff --git a/project/.s3credentials b/project/.s3credentials @@ -0,0 +1,2 @@ +accessKey = +secretKey = diff --git a/project/Build.scala b/project/Build.scala @@ -0,0 +1,17 @@ +import sbt._ +import sbt.Keys._ + +object LiftProjectBuild extends Build { + + import BuildSettings._ + + lazy val root = Project("s3", file(".")) + .settings(appSettings: _*) + .settings(libraryDependencies ++= + Seq( + "net.databinder.dispatch" %% "dispatch-core" % "0.10.0", + "ch.qos.logback" % "logback-classic" % "1.0.13" % "compile", + "org.scalatest" %% "scalatest" % "1.9.2" % "test" + ) + ) +} diff --git a/project/BuildSettings.scala b/project/BuildSettings.scala @@ -0,0 +1,58 @@ +import sbt._ +import sbt.Keys._ + +import sbtbuildinfo.Plugin._ +import com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys +import ohnosequences.sbt.SbtS3Resolver._ + +object BuildSettings { + val buildTime = SettingKey[String]("build-time") + + val basicSettings = Defaults.defaultSettings ++ Seq( + name := "s3", + version := "0.1", + organization := "PYC", + scalaVersion := "2.10.3", + scalacOptions <<= scalaVersion map { sv: String => + if (sv.startsWith("2.10.")) + Seq("-deprecation", "-unchecked", "-feature", "-language:postfixOps", "-language:implicitConversions") + else + Seq("-deprecation", "-unchecked") + }, + resolvers += "Sonatype Releases" at "http://oss.sonatype.org/content/repositories/releases" + ) + + val appSettings = + basicSettings ++ + S3Resolver.defaults ++ + buildInfoSettings ++ + seq( + buildTime := System.currentTimeMillis.toString, + + // build-info + buildInfoKeys ++= Seq[BuildInfoKey](buildTime), + buildInfoPackage := "inc.pyc", + sourceGenerators in Compile <+= buildInfo, + + // eclipse + EclipseKeys.withSource := true, + + publishMavenStyle := false, + + publishTo := Some(s3resolver.value( + "My "+{if (isSnapshot.value) "snapshots-pyc-inc" else "releases-pyc-inc"}+" S3 bucket", + s3(if (isSnapshot.value) "snapshots-pyc-inc" else "releasespyc-inc"+".pyc.inc")) withIvyPatterns), + + s3credentials := { + file(".") / "project" / ".s3credentials" + }, + + s3region := com.amazonaws.services.s3.model.Region.US_Standard + ) + + lazy val noPublishing = seq( + publish := (), + publishLocal := () + ) +} + diff --git a/project/plugins.sbt b/project/plugins.sbt @@ -0,0 +1,14 @@ +resolvers += Resolver.url( + "bintray-sbt-plugin-releases", + url("http://dl.bintray.com/content/sbt/sbt-plugin-releases"))( + Resolver.ivyStylePatterns) + +resolvers += "softprops-maven" at "http://dl.bintray.com/content/softprops/maven" + +resolvers += "Era7 maven releases" at "http://releases.era7.com.s3.amazonaws.com" + +addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.2.5") + +addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0") + +addSbtPlugin("ohnosequences" % "sbt-s3-resolver" % "0.10.1") diff --git a/project/sbt-launch.jar b/project/sbt-launch.jar Binary files differ. diff --git a/sbt.sh b/sbt.sh @@ -0,0 +1,2 @@ +#!/bin/bash +java -Dfile.encoding=UTF8 -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M -jar `dirname $0`/project/sbt-launch.jar "$@"