{"id":14156293,"url":"https://github.com/digitickets/less-compiler","last_synced_at":"2026-01-26T06:09:25.746Z","repository":{"id":74299425,"uuid":"533415224","full_name":"digitickets/less-compiler","owner":"digitickets","description":"A single file zero dependency executable to run the Node lessc compiler.","archived":false,"fork":false,"pushed_at":"2022-09-07T13:45:31.000Z","size":58,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-27T19:32:50.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitickets.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-09-06T16:42:00.000Z","updated_at":"2024-01-22T07:49:56.000Z","dependencies_parsed_at":"2024-01-29T06:14:03.059Z","dependency_job_id":null,"html_url":"https://github.com/digitickets/less-compiler","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitickets%2Fless-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitickets%2Fless-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitickets%2Fless-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitickets%2Fless-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitickets","download_url":"https://codeload.github.com/digitickets/less-compiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":215735862,"owners_count":15923388,"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","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-17T08:05:21.463Z","updated_at":"2026-01-26T06:09:25.713Z","avatar_url":"https://github.com/digitickets.png","language":"Shell","readme":"The Node [lessc](https://www.npmjs.com/package/less) compiler packaged into a single file executable. It uses [pkg](https://www.npmjs.com/package/pkg) to produce a single executable file.\n\n## Why?\n\nThere's no need to have Node installed on the system to run this. The single `lessc` file contains Node 14 within, so you can just run it.\n\n## Building\n\nInstall dependencies:\n\n    npm ci\n\nPackage into an executable:\n\n    npm run build\n\nThis will produce `bin/lessc`\n\nTest it:\n\n    # Check the version\n    $ ./bin/lessc --version\n    lessc 3.9.0 (Less Compiler) [JavaScript]\n\n    # Test that it works\n    $ ./bin/lessc tests/files/a.less\n    p {\n      color: white;\n    }\n    body {\n      background: red;\n    }\n\n    # Really test that it works without having Node installed\n    $ docker run -it -v ${PWD}:/root/less-compiler ubuntu:22.04\n    root@c30648fcd7f4:/# which node\n    root@c30648fcd7f4:/# which nodejs\n    root@c30648fcd7f4:/# which npm\n    root@c30648fcd7f4:/# node\n    bash: node: command not found\n    root@c30648fcd7f4:/# /root/less-compiler/bin/lessc /root/less-compiler/tests/files/a.less\n    p {\n      color: white;\n    }\n    body {\n      background: red;\n    }\n\n## Use it\n\nTake the produced file `bin/lessc` and use that wherever you need to run it.\n\n## Releasing A New Version\n\n- Modify the version of `less` desired either by editing `package.json` then running `npm install`, or by running `npm update less`  \n- Create a personal access token on GitHub that has the \"repo\" permission from here: https://github.com/settings/tokens\n- Add that token to your `~/.bash_profile`:\n```\nexport GITHUB_TOKEN=\"gh_yourtokenehere\"\n```\n- Run the command:\n```\nnpm run release\n```\nThis will create a new tag and release on GitHub with the version of `lessc` created.\n","funding_links":[],"categories":["others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitickets%2Fless-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitickets%2Fless-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitickets%2Fless-compiler/lists"}