{"id":16383868,"url":"https://github.com/jakesidsmith/watch-less-do-more","last_synced_at":"2025-04-06T19:18:58.725Z","repository":{"id":18601022,"uuid":"83055777","full_name":"JakeSidSmith/watch-less-do-more","owner":"JakeSidSmith","description":"Watch less files and their dependency tree for changes \u0026 automatically recompile","archived":false,"fork":false,"pushed_at":"2023-07-12T10:41:46.000Z","size":431,"stargazers_count":1,"open_issues_count":18,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T22:12:34.809Z","etag":null,"topics":["css","dependency-tree","less","postcss","postcss-modules","recompile","watch","watcher"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/watch-less-do-more","language":"JavaScript","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/JakeSidSmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-24T15:34:46.000Z","updated_at":"2020-08-03T13:36:58.000Z","dependencies_parsed_at":"2024-09-07T09:57:39.741Z","dependency_job_id":null,"html_url":"https://github.com/JakeSidSmith/watch-less-do-more","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/JakeSidSmith%2Fwatch-less-do-more","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeSidSmith%2Fwatch-less-do-more/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeSidSmith%2Fwatch-less-do-more/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeSidSmith%2Fwatch-less-do-more/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JakeSidSmith","download_url":"https://codeload.github.com/JakeSidSmith/watch-less-do-more/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247535513,"owners_count":20954576,"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":["css","dependency-tree","less","postcss","postcss-modules","recompile","watch","watcher"],"created_at":"2024-10-11T04:09:52.444Z","updated_at":"2025-04-06T19:18:58.706Z","avatar_url":"https://github.com/JakeSidSmith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# watch-less-do-more [![CircleCI](https://circleci.com/gh/JakeSidSmith/watch-less-do-more.svg?style=svg)](https://circleci.com/gh/JakeSidSmith/watch-less-do-more)\n\nWatch less files and their dependency tree for changes \u0026 automatically recompile\n\n## About\n\nRather than watching a directory for changes in any files, like other watchers, watch-less-do-more watches your main less file and automatically watches only its dependencies. If the main file, or any of it's dependencies change, the main file is compiled. This also allows you to watch multiple main files in a directory, and only compile the ones that have either changed themselves, or have had their dependencies changed. Additionally, this means that updating your node_modules (if any are dependencies of your less) will cause your less to recompile.\n\n## Example\n\nIf we have the following files\n\n```\nmain-a.less\nmain-b.less\ndependency-of-a.less\ndependency-of-b.less\ndependency-of-a-and-b.less\nnot-related-to-other-files.less\n```\n\nAnd we run the command\n\n```shell\nwatch-less-do-more -i main-a.less -o main-a.css -i main-b.less -o main-b.css\n```\n\n* Changes to `not-related-to-other-files.less` will not cause any less to compile.\n\n* Changes to `dependency-of-a-and-b.less` will cause both `main-a.less` and `main-b.less` to recompile.\n\n* Changes to `dependency-of-a.less` will cause only `main-a.less` to recompile.\n\n* Changes to `dependency-of-b.less` will cause only `main-b.less` to recompile.\n\n## Install\n\nInstall watch-less-do-more. You'll also need to install less.\nCurrently supports less `2.x.x`.\n\n```shell\nnpm install watch-less-do-more less --save\n```\n\nOptionally install postcss if you want to use postcss modules.\nCurrently supports postcss `5.x.x`.\n\n```shell\nnpm install postcss --save\n```\n\n## Usage\n\nIn these examples we're adding a script to our package.json\n\n### Single main file\n\n```json\n{\n  \"watch-less\": \"watch-less-do-more -i source.less -o output.css\"\n}\n```\n\n### Multiple main files\n\nYou can define as many files as you like, as long as there is an output argument for every input file\n\n```json\n{\n  \"watch-less\": \"watch-less-do-more -i source-a.less -o output-a.css -i source-b.less -o output-b.css\"\n}\n```\n\n### PostCSS\n\nYou can use PostCSS modules with watch-less-do-more incredibly easily.\nJust install the modules you want, and tell watch-less-do-more to use them in the same way you would with PostCSS.\n\n```json\n{\n  \"watch-less\": \"watch-less-do-more -u autoprefixer -i source.less -o output.css\"\n}\n```\n\n### Options\n\n```shell\n--input, -i   Path to input LESS file                      [string] [required]\n--output, -o  Path to output CSS file                      [string] [required]\n--use, -u     PostCSS module to use                                   [string]\n--help        Show help                                              [boolean]\n--version     Show version number                                    [boolean]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakesidsmith%2Fwatch-less-do-more","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakesidsmith%2Fwatch-less-do-more","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakesidsmith%2Fwatch-less-do-more/lists"}