{"id":25827701,"url":"https://github.com/uojo/demo-rjs","last_synced_at":"2025-10-10T19:33:52.145Z","repository":{"id":88371922,"uuid":"59632003","full_name":"uojo/demo-rjs","owner":"uojo","description":"打包工具 rjs 的实践","archived":false,"fork":false,"pushed_at":"2017-01-20T08:43:40.000Z","size":668,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T19:33:51.668Z","etag":null,"topics":[],"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/uojo.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":"2016-05-25T04:56:43.000Z","updated_at":"2016-05-25T05:01:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0fc8732-28f4-4e58-be63-70644bc65b1a","html_url":"https://github.com/uojo/demo-rjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uojo/demo-rjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fdemo-rjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fdemo-rjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fdemo-rjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fdemo-rjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uojo","download_url":"https://codeload.github.com/uojo/demo-rjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fdemo-rjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005031,"owners_count":26083827,"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-10-10T02:00:06.843Z","response_time":62,"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":[],"created_at":"2025-02-28T16:39:10.013Z","updated_at":"2025-10-10T19:33:52.140Z","avatar_url":"https://github.com/uojo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# demo-rjs #\n用途：requirejs打包的演示，包括js、css文件\n\n\n## 执行 ##\n\n基于 r.js\n\n- `node tools/r.js -o conf/file.js` 单个文件打包\n- `node tools/r.js -o conf/dir.js` www 目录下的所有文件打包到 www-built\n\n\n基于 Node\n\n- `node build/file.js` 单个文件打包\n- `node build/dir.js` www 目录下的所有文件打包到 www-built\n\n\n### 目录结构 ###\n\n    ./assets/js/dxy/\n    ├── www 存放源文件\n    │   └── js \n    │       └── app 页面模块\n    │       └── lib 三方类库\n    │       └── mod 模块目录\n    │       └── common.js 共有模块\n    │       └── page1.js 页面文件\n    │       └── ...\n    │   └── page1.html 实例页1\n    │   └── ...\n    ├── tools 打包配置\n    │   └── build.js 配置文件\n    │   └── r.js 打包工具\n    ├── www-built 目录www的一份打包压缩后的拷贝\n\n## 参考 ##\n\n- https://github.com/requirejs/example-multipage\n- https://github.com/requirejs/r.js/blob/master/build/example.build.js\n- http://www.cnblogs.com/snandy/archive/2012/06/06/2536969.html","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuojo%2Fdemo-rjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuojo%2Fdemo-rjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuojo%2Fdemo-rjs/lists"}