Skip to content

Commit

Permalink
Making Foundation a FoBo sub module
Browse files Browse the repository at this point in the history
  • Loading branch information
karma4u101 committed Mar 26, 2013
1 parent fca8e26 commit 9007946
Show file tree
Hide file tree
Showing 34 changed files with 2,339 additions and 65 deletions.
4 changes: 4 additions & 0 deletions Foundation/.gitignore
@@ -0,0 +1,4 @@
/.settings
/.classpath
/.project
/target
2 changes: 2 additions & 0 deletions Foundation/LICENSE.txt
@@ -0,0 +1,2 @@
ZURB's Foundation Framework (MIT Open License)
See https://github.com/drewsymo/Foundation
106 changes: 106 additions & 0 deletions Foundation/README.md
@@ -0,0 +1,106 @@
FoBo-Foundation
=================

This sub module provides ZURB/Foundation to the Fobo Module, but can also be used as-is (see below for setup information).
For more information on how to use ZURB/Foundation in the FoBo module see the [FoBo - Lift Front-End Toolkit Module](https://github.com/karma4u101/FoBo).

Contributions
------
Improvements, contributions and suggestions are welcome! Please see the [Contribution Document](https://github.com/karma4u101/FoBo/blob/master/CONTRIBUTING.md). You can also leave a issue report or drop a question/suggestion to my priv. e-mail or on [Lift's mailing list](http://groups.google.com/group/liftweb/)

best regards
Peter Petersson

Update log
----------

For update history see the [History log](https://github.com/karma4u101/FoBo/tree/master/Foundation#history-log) section

**Latest Module Version:**
- **2013-03-26** -- 0.1.0-SNAPSHOT

**Latest Update:**
- **2013-03-26** -- 0.1.0-SNAPSHOT Making ZURB/Foundation a FoBo subproject.

**Latest Stable Releases:**
- None

**Latest Snapshot Release:**
-


Integration into your project
-------------------------------

This module is used by the FoBo module to, via [FoBo](https://github.com/karma4u101/FoBo/blob/master/README.md) provide [ZURB/Foundation](http://foundation.zurb.com/).

However the FoBo-Foundation module can be used separatly the only difference from using it from within the FoBo meta module is the usage of a slightly different package object name in Lift boot.

The following describes how to set up the module in your project **as a separate module** (without using the [FoBo](https://github.com/karma4u101/FoBo/blob/master/README.md) meta module). For setup in FoBo see the FoBo documentation.

For more information on how to use Foundation see the [FoBo Demo](http://www.media4u101.se/fobo-lift-template-demo/) and [FoBo](https://github.com/karma4u101/FoBo/blob/master/README.md).


### Dependancy

For module versions >= 0.9.3 put the following in your project build.sbt files lift libraryDependencies section

"net.liftmodules" %% "moduleName_x1.y1 % "x2.y2[.z2][-SNAPSHOT/rcx/mx]"

or if you are using Maven

<dependency>
<groupId>net.liftmodules</groupId>
<artifactId>moduleName_x1.y1_a.b.c</artifactId>
<version>x2.y2[.z2][-SNAPSHOT/rcx/mx]</version>
</dependency>

Where x1.y1 is Lift major and minor version numbers and a.b.c is Scala
version number and x2.y2.[z2] is the module's major x2, minor y2 and
eventual incremental numbers z2 followed by a eventual SNAPSHOT
release candidate (rcX) or milestone (mX) version part.

For example:

"net.liftmodules" %% "fobo-foundation_2.5 % "0.1.0-SNAPSHOT"
:
<dependency>
<groupId>net.liftmodules</groupId>
<artifactId>fobo-foundation_2.5_2.9.2</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>

The example will include a module built for lift 2.5. If you are using maven observe that the artifact id also needs the Scala version.

### Lift FoBo boot hooks

import net.liftmodules.FoBoFo
:
FoBoFo.InitParam.ToolKit=FoBoKO.FoundationXYZ
FoBoFo.init()
(usage with FoBo is FoBo.InitParam.ToolKit=FoBo.FoundationXYZ)

### Lift FoBo Template hooks

<link href="/classpath/fobo/foundation.css" type="text/css" rel="stylesheet">
<link href="/classpath/fobo/orbit.css" rel="stylesheet">

<script type="text/javascript" src="/classpath/fobo/jquery.js"></script>
<script type="text/javascript" src="/classpath/fobo/orbit.js"></script>

For more information on how to use Knockout see [ZURB/Foundation](http://foundation.zurb.com/)


### History log
----------------

**Module Version history:**
-

**Updates history:**
-

**Snapshot Release history:**
-


144 changes: 144 additions & 0 deletions Foundation/build.sbt
@@ -0,0 +1,144 @@
name := "FoBo-Foundation"

organization := "net.liftmodules"

version := "0.1.0-SNAPSHOT"

name <<= (name, liftVName) { (n, v) => n + "_" + v }

crossScalaVersions := Seq("2.10.0", "2.9.2", "2.9.1-1", "2.9.1")

logLevel := Level.Info //Level.Info.Debug

scalacOptions ++= Seq("-deprecation")

EclipseKeys.withSource := true


resolvers ++= Seq(
"Scala Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
"Scala" at "https://oss.sonatype.org/content/groups/scala-tools/"
)

libraryDependencies <++= liftVersion { v =>
"net.liftweb" %% "lift-webkit" % v % "provided" ::
"net.liftweb" %% "lift-testkit" % v % "provided" ::
Nil
}

libraryDependencies <++= scalaVersion { sv =>
"ch.qos.logback" % "logback-classic" % "1.0.0" % "provided" ::
"log4j" % "log4j" % "1.2.16" % "provided" ::
(sv match {
case "2.10.0" | "2.9.2" | "2.9.1" | "2.9.1-1" => "org.specs2" %% "specs2" % "1.12.3" % "test"
case _ => "org.specs2" %% "specs2" % "1.12.3" % "test"
}) ::
(sv match {
case "2.10.0" | "2.9.2" => "org.scalacheck" %% "scalacheck" % "1.10.0" % "test"
case _ => "org.scalacheck" %% "scalacheck" % "1.10.0" % "test"
}) ::
Nil
}


//############################################################
//#### THE BUILDINFO BUILD
//## https://github.com/sbt/sbt-buildinfo
//##
//##
//#############################################################

//seq(buildInfoSettings: _*)

//sourceGenerators in Compile <+= buildInfo

//buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)

//buildInfoPackage := "net.liftmodules.FoBo.lib"


//#########################################################################
//#### THE LESS BUILD
//##
//## To simplify, the less build has been moved to the FoBo-Less project.
//## Bootstrap css files, slightly modified to work in the FoBo environment,
//## is built in the FoBo-Less project and then copied (already present) to
//## there corresponding src/resources directories.
//##
//#########################################################################

//Take a look att FoBo-Less and read the above.

//################################################################
//#### THE YUI COMPRESSION BUILD
//## The yui js compression stuff dose currently not work so
//## for now the last filter string in exludeFilter for js
//## will exclude every .js file
//################################################################
seq(yuiSettings: _*)

excludeFilter in (Compile, YuiCompressorKeys.jsResources) := "*-debug.js" | "*-min.js" | "*.js"

excludeFilter in (Compile, YuiCompressorKeys.cssResources) := "*-debug.css" | "*-min.css"

YuiCompressorKeys.minSuffix := "-min"

//################################################################
//#### Publish to Media4u101
//##
//##
//##
//################################################################
credentials += Credentials(Path.userHome / ".sbt" / "liftmodules" /".credentials" )

credentials += Credentials( file("/private/liftmodules/sonatype.credentials") )

//credentials += Credentials(Path.userHome / ".sbt" / ".credentials" )
//publishTo <<= version { v: String =>
// val nexus = "http://www.media4u101.se:8081/nexus/"
// if (v.trim.endsWith("SNAPSHOT"))
// Some("snapshots" at nexus + "content/repositories/snapshots")
// else
// Some("releases" at nexus + "content/repositories/releases")
// }

publishTo <<= version { v: String =>
val sonatype = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at sonatype + "content/repositories/snapshots")
else
Some("releases" at sonatype + "service/local/staging/deploy/maven2")
}

publishMavenStyle := true

publishArtifact in Test := false

pomIncludeRepository := { x => false }

pomExtra := (
<url>http://www.media4u101.se/fobo-lift-template-demo/</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://maven.apache.org/ref/2.1.0/maven-profile/license.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:karma4u101/FoBo.git</url>
<connection>scm:git:git@github.com:karma4u101/FoBo.git</connection>
</scm>
<developers>
<developer>
<id>karma4u101</id>
<name>Peter Petersson</name>
<url>http://www.media4u101.se</url>
</developer>
</developers>
)





@@ -0,0 +1,6 @@
/* Foundation v2.1.5 http://foundation.zurb.com */
/* This is for all IE specfific style less than IE9. We hate IE. */

div.panel { border: 1px solid #ccc; }
.lt-ie8 .nav-bar li.has-flyout a { padding-right: 20px; }
.lt-ie8 .nav-bar li.has-flyout a:after { border-top: none; }

0 comments on commit 9007946

Please sign in to comment.