GithubHelp home page GithubHelp logo

Comments (8)

softprops avatar softprops commented on July 18, 2024

Thanks I'll look into it. It may have to do with proper key scoping and relative paths that result from configuration

from less-sbt.

softprops avatar softprops commented on July 18, 2024

Can you actually post your build definition in a gist? I can't seem to reproduce this behavior with less-sbt out of the box.

> compile
[info] Updating {file:/Users/dougtangren/Desktop/tests/lesstest/}default-095ade...
[info] Done updating.
[info] Compiling 1 Scala source to /Users/dougtangren/Desktop/tests/lesstest/target/scala-2.9.1/classes...
[success] Total time: 2 s, completed Nov 9, 2011 11:33:35 PM
> compile
[success] Total time: 0 s, completed Nov 9, 2011 11:33:43 PM
> less
[info] Compiling 2 less files to /Users/dougtangren/Desktop/tests/lesstest/target/scala-2.9.1/resource_managed/main/css
[success] Total time: 1 s, completed Nov 9, 2011 11:33:47 PM
> less
[info] No less files to compile
[success] Total time: 0 s, completed Nov 9, 2011 11:33:51 PM

The difference is logging is apparent though. I should bump down the logging when there are no changes to compile so you don't see this sbt's default logging level, info

from less-sbt.

dimensia avatar dimensia commented on July 18, 2024

project/plugins.sbt:

libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-web-plugin" % (v+"-0.2.8"))

resolvers += "less is" at "http://repo.lessis.me"

addSbtPlugin("me.lessis" % "less-sbt" % "0.1.2")

project/Project.scala:

object Foo extends Build {
  import less.Plugin.LessKeys

  val commonLibs = Seq( ... dependencies ... )

  val commonSettings = Defaults.defaultSettings ++ Seq(
    organization         := "foo",
    version              := "1.0",
    scalaVersion         := "2.9.1",
    resolvers            += "foo" at "private-nexus-url",
    libraryDependencies ++= commonLibs,
    classList
  ) ++
    less.Plugin.lessSettings ++
    Seq( (resourceManaged in (Compile, LessKeys.less) ) <<= ( sourceDirectory in Compile )( _ / "webapp" / "css" ) )// ++

  val webSettings = commonSettings ++
    Seq( libraryDependencies ++= webLibs ) ++
    com.github.siasia.WebPlugin.webSettings

  lazy val root = Project(
    id       = "root",
    base     = file( "." ),
    settings = commonSettings
  ) aggregate( a, b )

  lazy val common = Project(
    id       = "common",
    base     = file( "common" ),
    settings = commonSettings
  )

  lazy val a = Project(
    id       = "a",
    base     = file( "a" ),
    settings = webSettings
  ) dependsOn( common )

  lazy val b = Project(
    id       = "b",
    base     = file( "b" ),
    settings = commonSettings
  ) dependsOn( common )
}

Also, coffeescripted-sbt behaves the same way for me.

thank you

from less-sbt.

softprops avatar softprops commented on July 18, 2024

Thanks. This will help. I started tinkering around with some things last night. This will help. I was planning on doing a rel for sbt 0.11.1 support anyway. This stuff will probably get rolled into that .

from less-sbt.

softprops avatar softprops commented on July 18, 2024

I think this should be fixed after 4a27cc2. I made a new scripted test for it under https://github.com/softprops/less-sbt/blob/master/src/sbt-test/less-sbt/compile-triggers-less/test. Can you do me a favor and publish-local the project and test the 0.1.3-SNAPSHOT to see if the fix works for your custom build. Once I get confirmation I'll do a 0.1.3 release.

from less-sbt.

dimensia avatar dimensia commented on July 18, 2024

Very nice. Both Issue #4 and Issue #5 work fine for me now in 0.1.3-SNAPSHOT. Thank you.

from less-sbt.

softprops avatar softprops commented on July 18, 2024

Ok cool. Gimme a bit to tidy up and Ill publish tonight

from less-sbt.

softprops avatar softprops commented on July 18, 2024

published http://implicit.ly/less-sbt-013

addSbtPlugin("me.lessis" % "less-sbt" % "0.1.3")

from less-sbt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.