{"id":42308763,"url":"https://github.com/futuweb/gulp-toor","last_synced_at":"2026-01-27T11:13:19.034Z","repository":{"id":23229469,"uuid":"26586921","full_name":"futuweb/gulp-toor","owner":"futuweb","description":"gulp plugin to package all require.js files.","archived":false,"fork":false,"pushed_at":"2016-03-15T11:09:28.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-27T23:56:18.628Z","etag":null,"topics":["gulp","gulp-plugin","requirejs"],"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/futuweb.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-13T12:32:52.000Z","updated_at":"2024-11-19T08:23:10.000Z","dependencies_parsed_at":"2022-07-25T09:47:15.111Z","dependency_job_id":null,"html_url":"https://github.com/futuweb/gulp-toor","commit_stats":null,"previous_names":["toobug/gulp-toor"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/futuweb/gulp-toor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuweb%2Fgulp-toor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuweb%2Fgulp-toor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuweb%2Fgulp-toor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuweb%2Fgulp-toor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/futuweb","download_url":"https://codeload.github.com/futuweb/gulp-toor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futuweb%2Fgulp-toor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28812371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-plugin","requirejs"],"created_at":"2026-01-27T11:13:18.487Z","updated_at":"2026-01-27T11:13:19.026Z","avatar_url":"https://github.com/futuweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gulp-Toor\n\n[![npm](http://img.shields.io/npm/v/gulp-toor.svg)](https://www.npmjs.com/package/gulp-toor)\n[![npm](http://img.shields.io/npm/l/gulp-toor.svg)](https://www.npmjs.com/package/gulp-toor)\n\n## 用途\n\nGulp插件，使用r.js（require.js）打包目录下所有require.js文件。\n\n## 特点\n\n- 支持多入口文件同时编译优化\n- 支持缓存，增量编译优化（非稳定特性）\n\n## 使用方法\n\n```javascript\ngulp.task('test',function(){\n\tgulp.src(['myapp/**/*.js'],{\n\t\tbase:'myapp' //设定相对目录，在输出时myapp之后的路径会保留\n\t}).pipe(toor(\n\t\tcache:{\n\t\t\tenable:true, //开启缓存，下次只编译有变更的文件\n            debug:true, //开启调试模式，会输出更多信息\n\t\t\tcachePath:'./.gulp-toor-cache', //缓存文件存放目录\n\t\t\tdest:'web/scripts-build' //优化后输出文件所在目录\n\t\t},\n\t\trequireConfig:{\n\t\t\tbaseUrl:'myapp',\t//require.js模块根目录\n\n\t\t\t//一些require.js配置，比如package/paths/shim等\n\t\t\tpackages:[{\n\t\t\t\tname: 'echarts',\n\t\t\t\tlocation: 'lib/echarts',\n\t\t\t\tmain: 'echarts'\n\t\t\t},{\n\t\t\t\tname: 'zrender',\n\t\t\t\tlocation: 'lib/zrender', // zrender与echarts在同一级目录\n\t\t\t\tmain: 'zrender'\n\t\t\t}],\n\t\t\tpaths:{\n\t\t\t\tjquery:'lib/jquery'\n\t\t\t},\n\t\t\tshim: {\n\t\t\t\t'lib/modernizr': {\n\t\t\t\t\texports: 'Modernizr'\n\t\t\t\t},\n\t\t\t\t'lib/jquery':{\n\t\t\t\t\texports: 'jQuery'\n\t\t\t\t}\n\t\t\t},\n\t\t\texclude:['jquery']\n\t\t}\n\t})).pipe(gulp.dest('myapp-build'))\t//输出目录，后面会接上源文件myapp之后的路径\n\t\t.on('error',function(err){\n\t\tconsole.log(err);\t//输出错误（gulp插件会触发错误事件，但不会输出，需要手工处理）\n\t})\n});\n```\n\n## 版本\n\n### 0.2.2 （2016-03-15）\n\n- 出错时直接使用`console.log`打印错误\n\n### 0.2.1 （2015-09-21）\n\n- 修正package.json中madge依赖声明（非稳定特性）\n\n### 0.2.0 （2015-09-21）\n\n- 增加缓存增量编译优化功能（非稳定特性）\n\n### 0.1.3 （2015-09-11）\n\n- 修复windows下模块名称错误的问题\n\n### 0.1.2 （2014-12-26）\n\n- 去掉require.js写文件的步骤，返回gulp标准流\n- 采用gulp方式规整日志输出\n\n### 0.1.1 （2014-12-11）\n\n- 修正对多级目录模块的支持\n\n### 0.1.0 （2014-11-13）\n\n- 初始发布\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutuweb%2Fgulp-toor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffutuweb%2Fgulp-toor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutuweb%2Fgulp-toor/lists"}