{"id":19361626,"url":"https://github.com/bluelovers/gulp-run-seq-unique","last_synced_at":"2026-05-07T03:33:58.502Z","repository":{"id":57258878,"uuid":"109057908","full_name":"bluelovers/gulp-run-seq-unique","owner":"bluelovers","description":"this hack make when we run a task like run-sequence, the dep task will not run \u003e 1 time","archived":false,"fork":false,"pushed_at":"2017-11-27T12:55:12.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T07:44:26.246Z","etag":null,"topics":["gulp","gulp-tasks","javascript","nodejs","sequence","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/bluelovers.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":"2017-10-31T22:16:35.000Z","updated_at":"2017-10-31T23:02:21.000Z","dependencies_parsed_at":"2022-08-28T21:02:04.470Z","dependency_job_id":null,"html_url":"https://github.com/bluelovers/gulp-run-seq-unique","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bluelovers/gulp-run-seq-unique","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluelovers%2Fgulp-run-seq-unique","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluelovers%2Fgulp-run-seq-unique/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluelovers%2Fgulp-run-seq-unique/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluelovers%2Fgulp-run-seq-unique/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluelovers","download_url":"https://codeload.github.com/bluelovers/gulp-run-seq-unique/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluelovers%2Fgulp-run-seq-unique/sbom","scorecard":{"id":244640,"data":{"date":"2025-08-11","repo":{"name":"github.com/bluelovers/gulp-run-seq-unique","commit":"fb9b969f0aa8d38995b5689b6e1e6cee8b958c5d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"20 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T07:20:53.565Z","repository_id":57258878,"created_at":"2025-08-17T07:20:53.565Z","updated_at":"2025-08-17T07:20:53.565Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284993969,"owners_count":27096840,"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","status":"online","status_checked_at":"2025-11-18T02:00:05.759Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["gulp","gulp-tasks","javascript","nodejs","sequence","typescript"],"created_at":"2024-11-10T07:24:18.121Z","updated_at":"2025-11-18T03:03:34.471Z","avatar_url":"https://github.com/bluelovers.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-run-seq-unique\n\n\u003e this hack make when we run a task like `run-sequence`, the dep task will not run \u003e 1 time\n\n## install\n\n`npm install gulp-run-seq-unique`\n\n## gulp.options.disableResetTask\n\nby the default this value is `true`\n\nwhen u wanna disable this hack like old `run-sequence` do, u can set value as `false`\n\n## demo\n\n### replace run-sequence\n\n```js\nimport * as gulp from 'gulp';\nimport * as runSequence from 'run-sequence';\n\ngulp.task('task-name', function ()\n{\n\treturn;\n});\n\nlet callback = function (...ret)\n{\n\tconsole.log(this, ret);\n};\n\nrunSequence.use(gulp);\nrunSequence('task-name', callback);\n```\n\nto\n\n```js\nimport * as gulp from 'gulp';\nimport runSequence from 'gulp-run-seq-unique/run-sequence';\n\ngulp.task('task-name', function ()\n{\n\treturn;\n});\n\nlet callback = function (...ret)\n{\n\tconsole.log(this, ret);\n};\n\nrunSequence.use(gulp);\nrunSequence('task-name', callback);\n```\n\n### gulpfile.ts\n\n```js\nimport * as gulp from 'gulp';\nimport runSequenceUnique from '.';\nimport addTasks from 'gulp-add-tasks2';\nimport * as gutil from 'gulp-util';\n\nrunSequenceUnique(gulp);\n\nconst addGulpTasks = addTasks(gulp);\n\naddGulpTasks({\n\n\t'default': {\n\n\t\ttasks: [\n\t\t\t'default:enable'\n\t\t],\n\n\t},\n\n\t'default:enable': {\n\n\t\tdeps: [\n\t\t\t'$option:enable'\n\t\t],\n\n\t\ttasks: [\n\t\t\t'task1',\n\t\t\t'task2',\n\t\t],\n\t},\n\n\t'default:disable': {\n\n\t\tdeps: [\n\t\t\t'$option:disable'\n\t\t],\n\n\t\ttasks: [\n\t\t\t'task1',\n\t\t\t'task2',\n\t\t],\n\t},\n\n\t'$dep1': () =\u003e {},\n\t'$dep2': () =\u003e {},\n\n\t'task1': {\n\n\t\tdeps: [\n\t\t\t'$dep1',\n\t\t\t'$dep2',\n\t\t],\n\n\t},\n\n\t'task2': {\n\n\t\tdeps: [\n\t\t\t'$dep1',\n\t\t\t'$dep2',\n\t\t],\n\n\t},\n\n\t'$option:disable': () =\u003e\n\t{\n\t\tgulp.options.disableResetTask = false;\n\n\t\tgutil.log(`dep task will run \u003e 1 time`);\n\t},\n\n\t'$option:enable': () =\u003e\n\t{\n\t\tgulp.options.disableResetTask = true;\n\n\t\tgutil.log(`all task will only run once (include dep task)`);\n\t},\n\n});\n\n```\n\n### options.disableResetTask = false\n```\n[06:13:53] Starting '$option:disable'...\n[06:13:53] dep task will run \u003e 1 time\n[06:13:53] Finished '$option:disable' after 149 μs\n[06:13:53] Starting 'default:disable'...\n[06:13:53] Starting '$dep1'...\n[06:13:53] Finished '$dep1' after 13 μs\n[06:13:53] Starting '$dep2'...\n[06:13:53] Finished '$dep2' after 42 μs\n[06:13:53] Starting 'task1'...\n[06:13:53] Finished 'task1' after 26 μs\n[06:13:53] Starting '$dep1'...\n[06:13:53] Finished '$dep1' after 1.5 μs\n[06:13:53] Starting '$dep2'...\n[06:13:53] Finished '$dep2' after 1.2 μs\n[06:13:53] Starting 'task2'...\n[06:13:53] Finished 'task2' after 2.1 μs\n[06:13:53] Finished 'default:disable' after 2.18 ms\n```\n\n### options.disableResetTask = true\n```\n[06:14:54] Starting '$option:enable'...\n[06:14:54] all task will only run once (include dep task)\n[06:14:54] Finished '$option:enable' after 158 μs\n[06:14:54] Starting 'default:enable'...\n[06:14:54] Starting '$dep1'...\n[06:14:54] Finished '$dep1' after 11 μs\n[06:14:54] Starting '$dep2'...\n[06:14:54] Finished '$dep2' after 35 μs\n[06:14:54] Starting 'task1'...\n[06:14:54] Finished 'task1' after 11 μs\n[06:14:54] Starting 'task2'...\n[06:14:54] Finished 'task2' after 1.2 μs\n[06:14:54] Finished 'default:enable' after 1.61 ms\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluelovers%2Fgulp-run-seq-unique","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluelovers%2Fgulp-run-seq-unique","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluelovers%2Fgulp-run-seq-unique/lists"}