-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Yuan
authored and
David Yuan
committed
Nov 12, 2013
0 parents
commit f804864
Showing
16 changed files
with
814 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
## generic files to ignore | ||
*~ | ||
*.lock | ||
*.DS_Store | ||
*.swp | ||
*.out | ||
|
||
# rails specific | ||
*.sqlite3 | ||
config/database.yml | ||
log/* | ||
tmp/* | ||
|
||
# java specific | ||
*.class | ||
|
||
# python specific | ||
*.pyc | ||
|
||
# xcode/iphone specific | ||
build/* | ||
*.pbxuser | ||
*.mode2v3 | ||
*.mode1v3 | ||
*.perspective | ||
*.perspectivev3 | ||
*~.nib | ||
|
||
# akka specific | ||
logs/* | ||
|
||
# sbt specific | ||
target/ | ||
project/boot | ||
lib_managed/* | ||
project/build/target | ||
project/build/lib_managed | ||
project/build/src_managed | ||
project/plugins/lib_managed | ||
project/plugins/target | ||
project/plugins/src_managed | ||
project/plugins/project | ||
|
||
core/lib_managed | ||
core/target | ||
pubsub/lib_managed | ||
pubsub/target | ||
|
||
# eclipse specific | ||
.metadata | ||
jrebel.lic | ||
.settings | ||
.classpath | ||
.project | ||
|
||
.ensime* | ||
*.sublime-* | ||
.cache | ||
|
||
# intellij | ||
*.eml | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.*.sw? | ||
.idea | ||
|
||
# paulp script | ||
/.lib/ | ||
/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
1. curl https://raw.github.com/n8han/conscript/master/setup.sh | sh | ||
|
||
2. PATH=$PATH:~/bin | ||
export PATH | ||
source ~/.bash_profile | ||
3. cs n8han/giter8 | ||
|
||
4. port install sbt | ||
|
||
5. ./sbt | ||
|
||
6. container:start |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sbt.version=0.13.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import sbt._ | ||
import Keys._ | ||
import org.scalatra.sbt._ | ||
import org.scalatra.sbt.PluginKeys._ | ||
import com.mojolly.scalate.ScalatePlugin._ | ||
import ScalateKeys._ | ||
|
||
object ApiBuild extends Build { | ||
val Organization = "com.ruch" | ||
val Name = "API" | ||
val Version = "0.1.0" | ||
val ScalaVersion = "2.10.2" | ||
val ScalatraVersion = "2.2.1" | ||
|
||
lazy val project = Project ( | ||
"api", | ||
file("."), | ||
settings = Defaults.defaultSettings ++ ScalatraPlugin.scalatraWithJRebel ++ scalateSettings ++ Seq( | ||
organization := Organization, | ||
name := Name, | ||
version := Version, | ||
scalaVersion := ScalaVersion, | ||
resolvers += Classpaths.typesafeReleases, | ||
libraryDependencies ++= Seq( | ||
"org.scalatra" %% "scalatra" % ScalatraVersion, | ||
"org.scalatra" %% "scalatra-scalate" % ScalatraVersion, | ||
"org.scalatra" %% "scalatra-specs2" % ScalatraVersion % "test", | ||
"ch.qos.logback" % "logback-classic" % "1.0.6" % "runtime", | ||
"org.eclipse.jetty" % "jetty-webapp" % "8.1.8.v20121106" % "container", | ||
"org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016" % "container;provided;test" artifacts (Artifact("javax.servlet", "jar", "jar")) | ||
), | ||
scalateTemplateConfig in Compile <<= (sourceDirectory in Compile){ base => | ||
Seq( | ||
TemplateConfig( | ||
base / "webapp" / "WEB-INF" / "templates", | ||
Seq.empty, /* default imports should be added here */ | ||
Seq( | ||
Binding("context", "_root_.org.scalatra.scalate.ScalatraRenderContext", importMembers = true, isImplicit = true) | ||
), /* add extra bindings here */ | ||
Some("templates") | ||
) | ||
) | ||
} | ||
) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
addSbtPlugin("com.mojolly.scalate" % "xsbt-scalate-generator" % "0.4.2") | ||
|
||
addSbtPlugin("org.scalatra.sbt" % "scalatra-sbt" % "0.3.2") | ||
|
||
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0") |
Oops, something went wrong.