Comments (8)
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.
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.
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.
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.
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.
Very nice. Both Issue #4 and Issue #5 work fine for me now in 0.1.3-SNAPSHOT. Thank you.
from less-sbt.
Ok cool. Gimme a bit to tidy up and Ill publish tonight
from less-sbt.
published http://implicit.ly/less-sbt-013
addSbtPlugin("me.lessis" % "less-sbt" % "0.1.3")
from less-sbt.
Related Issues (20)
- Compiled JS artifacts not available anymore in 0.1.6 HOT 4
- Make clear what repository holds the artifact HOT 12
- Error messages are less than ideal HOT 4
- Version number of less in less-sbt less than official less version HOT 7
- Can't force less recompilation HOT 7
- try/catch is a poor design idiom. prefer either HOT 1
- factor out compiler wrapper HOT 1
- Compile Error: Method "doctest" not found in "org.mozilla.javascript.tools.shell.Global" HOT 9
- Problems using with xsbt-web-plugin…
- Unicode symbols HOT 7
- lesscss 1.3.3 support HOT 2
- Compile error when updating to Bootstrap 2.3.2 HOT 11
- Multiple root sources HOT 2
- Not working for Bootstrap 3.0 ? HOT 9
- lesst dependency not available HOT 2
- CSS output file contains just 'null' HOT 11
- Minifier doesn't work HOT 2
- Version in instruction on landing page is not deployed? HOT 2
- Regular and minified output HOT 1
- Multiple css files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from less-sbt.