{"id":13665273,"url":"https://github.com/softprops/less-sbt","last_synced_at":"2025-09-03T18:46:11.218Z","repository":{"id":66115654,"uuid":"2473203","full_name":"softprops/less-sbt","owner":"softprops","description":"type less css in your sbt projects","archived":false,"fork":false,"pushed_at":"2013-10-24T20:02:26.000Z","size":562,"stargazers_count":46,"open_issues_count":5,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-02T00:35:25.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softprops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-09-28T06:31:08.000Z","updated_at":"2025-04-03T16:06:12.000Z","dependencies_parsed_at":"2023-02-19T22:45:25.859Z","dependency_job_id":null,"html_url":"https://github.com/softprops/less-sbt","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/softprops/less-sbt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fless-sbt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fless-sbt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fless-sbt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fless-sbt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softprops","download_url":"https://codeload.github.com/softprops/less-sbt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fless-sbt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273492596,"owners_count":25115598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T06:00:31.501Z","updated_at":"2025-09-03T18:46:11.127Z","avatar_url":"https://github.com/softprops.png","language":"CSS","funding_links":[],"categories":["WEB"],"sub_categories":[],"readme":"# less sbt\n\ntype [less](http://lesscss.org/) css in your sbt projects\n\n![LESS](http://lesscss.org/images/logo.png) ![Scala](https://github.com/downloads/softprops/coffeescripted-sbt/scala_logo.png)\n\na friendly css companion for [coffeescripted-sbt][coffeescript] using the less 1.4.2 embedded compiler via [lesst](https://github.com/softprops/lesst#readme).\n\n## settings\n\nFor sbt 0.12 users\n\n    all(for less) # compiles all less source files regardless of freshness\n    less # compiles less source files\n    charset(for less) # character encoding used in file IO (defaults to utf-8)\n    mini(for less) # setting for compiled minification (false by default)\n    colors(for less) # setting for color error output (true by default)\n    lessCompiler(for less) # task for resolving the less compiler to compile .less sources\n    filter(for less) # filter for files included by the plugin\n    exclude-filter(for less) # filter for files ignored by the plugin\n    unmanaged-sources(for less) # lists resolved less sources\n    clean(for less) # deletes compiled css\n    config:source-directory(for less) # where less files will be resolved from\n    config:resource-managed(for less) # where compiled css will be copied to\n    \nFor sbt 0.13 users, the syntax for accessing settings keys in the REPL slightly changed. setting keys are now camel cased from the REPL and less-scoped keys can be accessed when prefiexed with `less::`.\n\n## install it\n\nIn your plugin definition, add\n\n```scala\nresolvers += Resolver.url(\n  \"bintray-sbt-plugin-releases\",\n    url(\"http://dl.bintray.com/content/sbt/sbt-plugin-releases\"))(\n      Resolver.ivyStylePatterns)\n      \nresolvers += \"softprops-maven\" at \"http://dl.bintray.com/content/softprops/maven\"\n\naddSbtPlugin(\"me.lessis\" % \"less-sbt\" % \"0.2.2\")\n```\n    \nThen in your build definition, add\n\n```scala\nseq(lessSettings:_*)\n```\n    \nThis will append `less-sbt`'s settings for the `Compile` and `Test` configurations.\n\nTo add them to other configurations, use the provided `lessSettingsIn(config)` method.\n\n```scala\nseq(lessSettingsIn(SomeOtherConfig):_*)\n```\n\n## use it\n\nAuthor your `.less` files under your project's `src/main/less` directory. After compiling less sources, you can find the compiled css under `path/to/resource_managed/main/css`\n\n## customize it\n\n### using less's built-in css minification\n\nLess css, itself, provides a built-in minifier which you can to to shink your compiled css. To override the default `mini` setting, add following to your build definition after including the less settings.\n\n```scala\n(LessKeys.mini in (Compile, LessKeys.less)) := true\n```\n\n### changing target css destination\n\nTo change the default location of compiled css files, add the following to your build definition\n\n```scala\n(resourceManaged in (Compile, LessKeys.less)) \u003c\u003c= (crossTarget in Compile)(_ / \"your_preference\" / \"css\")\n```\n\n### working with [@import][importing]s\n\nSome lesscss projects, like [Twitter's Bootstrap][bootstrap] project contain one main `.less` file which imports multiple `.less` files using the [@import][importing] feature of lesscss. To achieve the same style of compilation with less-sbt, set the `filter` defined by less-sbt to the target of compilation.\n\n```scala\n(LessKeys.filter in (Compile, LessKeys.less)) := \"your_main.less\"\n```\n\nThis will build a single `your_main.css` file which includes all of the @imported style definitions.\n\nTo see an example of compiling [Bootstrap][bootstrap] itself, check out the [scripted bootstrap test](https://github.com/softprops/less-sbt/tree/master/src/sbt-test/less-sbt/bootstrap).\n   \nYou will find all custom `less-sbt` keys within the `LessKeys` module.\n\n## issues \n\nHave an issue? [Tell me about it][issues]\n\n## contributions\n\nI'll take them where they make sense. Please use a feature branch in your fork, i.e. git checkout -b my-cool-feature, and if possible, write a [scripted test](http://eed3si9n.com/testing-sbt-plugins) for it.\n\nDoug Tangren (softprops) 2011-2013\n\n[issues]: https://github.com/softprops/less-sbt/issues\n[importing]: http://lesscss.org/#-importing\n[bootstrap]: http://twitter.github.com/bootstrap/\n[coffeescript]: https://github.com/softprops/coffeescripted-sbt#readme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fless-sbt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftprops%2Fless-sbt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fless-sbt/lists"}