{"id":17237782,"url":"https://github.com/tarao/gulp-less-dependents","last_synced_at":"2025-06-17T03:05:50.246Z","repository":{"id":23317126,"uuid":"26676997","full_name":"tarao/gulp-less-dependents","owner":"tarao","description":null,"archived":false,"fork":false,"pushed_at":"2015-02-18T12:30:44.000Z","size":162,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T02:26:34.482Z","etag":null,"topics":["gulp","javascript","less"],"latest_commit_sha":null,"homepage":null,"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/tarao.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}},"created_at":"2014-11-15T10:50:00.000Z","updated_at":"2016-01-06T04:39:44.000Z","dependencies_parsed_at":"2022-07-08T20:47:13.318Z","dependency_job_id":null,"html_url":"https://github.com/tarao/gulp-less-dependents","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tarao/gulp-less-dependents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fgulp-less-dependents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fgulp-less-dependents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fgulp-less-dependents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fgulp-less-dependents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarao","download_url":"https://codeload.github.com/tarao/gulp-less-dependents/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fgulp-less-dependents/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260281565,"owners_count":22985627,"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":["gulp","javascript","less"],"created_at":"2024-10-15T05:43:44.595Z","updated_at":"2025-06-17T03:05:50.216Z","avatar_url":"https://github.com/tarao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[gulp][]-less-dependents [![Build Status][travis-img]][travis]\n====================\n\u003e Collect dependents of less files\n\nGives you a chance to recompile less files on modification of a file\nwhich those files are depending on.\n\n## Install\n\n```\nnpm install gulp-less-dependents\n```\n\n## Usage\n\n```javascript\nvar gulp = require('gulp');\nvar watch = require('gulp-watch');\nvar lessDependents = require('gulp-less-dependents');\nvar less = require('gulp-less');\n\ngulp.task('less', function() {\n    gulp.src('./less/**/*.less')\n        .pipe(watch('./less/**/*.less'))\n        .pipe(lessDependents())\n        .pipe(less())\n        .pipe(gulp.dest('./public/css'));\n});\n```\n\n`lessDependents()` analyzes dependencies of files passed from the\nupstream, and passes files that are (1) passed from the upstream, or\n(2) depending on files from the upstream.  For the files of (2), they\nmust be once a target of analysis earlier; it means that files of (2)\nare included in those of (1) for the first time.  In the example above\nshows that `src()` gives files of (1), and files of (2) are triggered\nby [`watch()`][gulp-watch] after the first run.\n\nIf you wish to exclude the depended files from compilation but want to\nwatch them for recompilation of the dependents, use\n[`gulp-filter`](https://github.com/sindresorhus/gulp-filter) for the\nexclusion.  For example, if you have depended files in\n`./less/includes`, the task may look like the following.\n\n```javascript\nvar gulp = require('gulp');\nvar watch = require('gulp-watch');\nvar gulpFilter = require('gulp-filter');\nvar lessDependents = require('gulp-less-dependents');\nvar less = require('gulp-less');\n\ngulp.task('less', function() {\n    gulp.src('./less/**/*.less')\n        .pipe(watch('./less/**/*.less'))\n        .pipe(lessDependents())\n        .pipe(gulpFilter([ '*', '!less/includes/*.less' ]))\n        .pipe(less())\n        .pipe(gulp.dest('./public/css'));\n});\n```\n\n## API\n\n### lessDependents([options])\n\n#### options\n\nThis object is passed to\n[`less.Parser`][lessjs] internally used for\ndependency analysis.\n\n## License\n\nMIT (c) INA Lintaro (tarao.gnn@gmail.com)\n\n[gulp]: http://gulpjs.com\n[gulp-watch]: https://github.com/floatdrop/gulp-watch\n[gulp-filter]: https://github.com/sindresorhus/gulp-filter\n[lessjs]: https://github.com/less/less.js/\n\n[travis]: https://travis-ci.org/tarao/gulp-less-dependents\n[travis-img]: https://img.shields.io/travis/tarao/gulp-less-dependents.svg?branch=master\u0026style=flat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarao%2Fgulp-less-dependents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarao%2Fgulp-less-dependents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarao%2Fgulp-less-dependents/lists"}