{"id":25686899,"url":"https://github.com/jw-12138/lessby","last_synced_at":"2025-07-28T09:36:38.856Z","repository":{"id":57290006,"uuid":"353604800","full_name":"jw-12138/lessby","owner":"jw-12138","description":"just another less compiler","archived":false,"fork":false,"pushed_at":"2022-10-21T03:54:32.000Z","size":660,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-16T09:59:10.574Z","etag":null,"topics":["compiler","css","less","watcher"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/lessby","language":"JavaScript","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/jw-12138.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":"2021-04-01T06:55:52.000Z","updated_at":"2023-03-24T05:40:19.000Z","dependencies_parsed_at":"2022-08-25T07:34:11.503Z","dependency_job_id":null,"html_url":"https://github.com/jw-12138/lessby","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/jw-12138%2Flessby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw-12138%2Flessby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw-12138%2Flessby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw-12138%2Flessby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jw-12138","download_url":"https://codeload.github.com/jw-12138/lessby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240549418,"owners_count":19819137,"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":["compiler","css","less","watcher"],"created_at":"2025-02-24T20:07:41.461Z","updated_at":"2025-02-24T20:07:42.062Z","avatar_url":"https://github.com/jw-12138.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![lessby](https://github.com/jw-12138/lessby/actions/workflows/node.js.yml/badge.svg)](https://github.com/jw-12138/lessby/actions/workflows/node.js.yml)\n\n[lessby](https://github.com/jw-12138/lessby/) is a simple CLI tool for compiling `.less` file.\n\n![Example](vid/example.jpg)\n\n## Installation\n\n```\nnpm i lessby -D\n```\n\n## Usage\n\n```text\nUsage: lessby [options]\n\nOptions:\n  -i, --input \u003cfolder\u003e   input less folder\n  -o, --output \u003cfolder\u003e  output less folder\n  -e, --extension \u003cext\u003e  output file extension, eg. ' -e wxss '\n  -b, --initial-build    compile less files before watch\n  -r, --recursive        compile less files recursively\n  -m, --minify           minify output file\n  -s, --source-map       generate source map files\n  --source-map-inline    generate inline source map files\n  --one-time             compile less files ony once\n  --mid-name \u003cstr\u003e       specify output file middle name, eg. ' --mid-name min '\n  --less-options \u003cstr\u003e   specify original less-cli options, eg. ' --less-options \"-l --no-color\" '\n  -h, --help             display help for command\n```\n\n### -i, --input \u003cfolder\u003e\n\n`required`\n\nNormally, lessby will watch all the `.less` files inside the input folder, this action is **non-recursive**.\n\n```bash\nlessby -i \u003cfolder_name\u003e\n```\n\n### -o, --output \u003cfolder\u003e\n\nlessby will output the `.css` files into the folder that you specified.\n\n```bash\nlessby -i \u003cfolder_name\u003e -o \u003coutput_foler_name\u003e\n```\n\n### -e, --extension \u003cext\u003e\n\nSeriously, it's not just CSS out there.\n\nThis will compile all the less files into CSS files with `.wxss` extension. You can use whatever extension you want.\n\n```bash\nlessby -i \u003cfolder_name\u003e -e wxss\n```\n\n### -b, --initial-build\n\ncompile all the `.less` files once before watch\n\n```bash\nlessby -i \u003cfolder_name\u003e -b\n```\n\n### -r, --recursive\n\nFINALLY!!!\n\nA less compiler with recursive option!\n\n```bash\nlessby -i src -r\n```\n\nIf `src/` has a sub-folder, and it contains `.less` files, lessby will find it, and compile it.\n\n### -m, --minify\n\nAs mentioned above, this parameter minifies output files.\n\n```bash\nlessby -i src -r -m\n```\n\n### -s, --source-map\n\nlessby will generate source map files, those little things are helpful when in development.\n\n```bash\nlessby -i src -s\n```\n\n### --source-map-inline\n\nlessby will generate inline source map, this will **overwrite** the `-s` option\n\n```bash\nlessby -i src -s\n```\n\n### --one-time\n\nlessby will compile all the `.less` files only once, could be used in building stage.\n\n```bash\nlessby -i src --one-time\n```\n\n### --mid-name\n\nScript below will compile all the `.less` files from `xxx.less` to `xxx.min.css`.\n\n```bash\nlessby -i \u003cfolder_name\u003e -m --mid-name min\n```\n\nSince file extension names are customizable, I think I'll make the middle name part customizable too, you can compile\nnon-minified files with the name `min` in the middle, even if it is not recommended, but hey! Here we are!\n\n### --less-options\n\nAnd finally, the original `lessc` options.\n\nSince this is a npm pack based on `lessc`, So I think it'll be good in case you need something I didn't cover.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjw-12138%2Flessby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjw-12138%2Flessby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjw-12138%2Flessby/lists"}