{"id":15011524,"url":"https://github.com/jimmysawczuk/less-tree","last_synced_at":"2026-02-02T22:15:32.632Z","repository":{"id":7693400,"uuid":"9057451","full_name":"jimmysawczuk/less-tree","owner":"jimmysawczuk","description":"A batch LESS compiler in Go","archived":true,"fork":false,"pushed_at":"2022-03-29T14:21:15.000Z","size":139,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-31T01:25:11.225Z","etag":null,"topics":["go","lesscss"],"latest_commit_sha":null,"homepage":"","language":"Less","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimmysawczuk.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":"2013-03-27T15:45:50.000Z","updated_at":"2025-08-29T18:27:42.000Z","dependencies_parsed_at":"2022-07-09T19:31:30.792Z","dependency_job_id":null,"html_url":"https://github.com/jimmysawczuk/less-tree","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/jimmysawczuk/less-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimmysawczuk%2Fless-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimmysawczuk%2Fless-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimmysawczuk%2Fless-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimmysawczuk%2Fless-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimmysawczuk","download_url":"https://codeload.github.com/jimmysawczuk/less-tree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimmysawczuk%2Fless-tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29021059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T18:51:31.335Z","status":"ssl_error","status_checked_at":"2026-02-02T18:49:20.777Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","lesscss"],"created_at":"2024-09-24T19:41:12.293Z","updated_at":"2026-02-02T22:15:32.619Z","avatar_url":"https://github.com/jimmysawczuk.png","language":"Less","funding_links":[],"categories":[],"sub_categories":[],"readme":"# less-tree\n\n[![GoDoc](https://godoc.org/github.com/jimmysawczuk/less-tree?status.svg)][godoc-link] [![go report card](https://goreportcard.com/badge/jimmysawczuk/less-tree)][goreportcard-link]\n\nA tool to batch your server-side [LESS][lesscss] compilations.\n\n**less-tree** runs `lessc` on many LESS files at once, increasing the throughput and decreasing the amount of time it takes to do a full compile of all your LESS files.\n\nless-tree assumes your public folder looks like this:\n\n```text\npublic/\n|-- css/\n|-- less/\n   |-- sub-dir/\n      |-- style-sub.less\n   |-- _include.less\n   |-- style-1.less\n   |-- style-2.less\n```\n\nAnd all you have to do is run:\n\n```bash\nless-tree public\n```\n\nThis will compile every *.less file in the the `less` subdirectory of `public`, and put the resulting stylesheets in the `css` subdirectory, keeping the directory structures intact. Your `public` directory will now look like this:\n\n```text\npublic/\n|-- css/\n   |-- sub-dir/\n      |-- style-sub.css\n   |-- style-1.css\n   |-- style-2.css\n|-- less/\n   |-- sub-dir/\n      |-- style-sub.less\n   |-- _include.less\n   |-- style-1.less\n   |-- style-2.less\n```\n\n## Other features:\n\n* **Includes:** less-tree treats any file or directory prefixed with a `_` as a non-output LESS file, meaning it assumes it's only used as an include and won't run `lessc` on those files independently.\n* **Minification:** less-tree can optionally minify your CSS as well, using `cssmin`. The minified versions will be stored parallel to the non-minified versions. Simply pass `-min -cssmin-path=\"/path/to/cssmin\"`.\n* **Intelligent caching:** by default, less-tree will only compile LESS files with changes or LESS files with imports that have changed (you can force a recompile of everything using `-f`). less-tree keeps track of what's changed in a JSON file in `\u003cpublic_dir\u003e/css/.less-tree-cache`. There is probably not much inherently risky in keeping it accessible, but if you want to block access to it, an `.htaccess` in `\u003cpublic_dir\u003e/css` with the following should do the trick:\n\n```plain\n\u003cFiles \".less-tree-cache\"\u003e\n  Order Allow,Deny\n  Deny from all\n\u003c/Files\u003e\n```\n\n## Requirements\n\nless-tree doesn't compile anything on its own (yet), so you'll need to be able to install a couple of [npm nodules][npm]\n\n* `lessc` installed as a command-line program via npm. You can get more details [here][lesscss], or you can just run `npm install -g less`.\n* `cssmin` (optional) is required if you want to minify your outputted CSS, you can install it via `npm install -g cssmin`.\n\n## Help\n\nType `less-tree -help` to see a full command reference.\n\n## License\n\nless-tree is released under [the MIT license][license].\n\n  [godoc-link]: https://godoc.org/github.com/jimmysawczuk/less-tree\n  [goreportcard-link]: https://goreportcard.com/report/github.com/jimmysawczuk/less-tree\n  [lesscss]: http://www.lesscss.org\n  [npm]: http://www.npmjs.com\n  [license]: https://github.com/jimmysawczuk/less-tree/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimmysawczuk%2Fless-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimmysawczuk%2Fless-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimmysawczuk%2Fless-tree/lists"}