{"id":19345550,"url":"https://github.com/future-team/gfs-manifest-generator","last_synced_at":"2026-05-18T05:02:09.197Z","repository":{"id":70589104,"uuid":"64658827","full_name":"future-team/gfs-manifest-generator","owner":"future-team","description":"generator-future-static脚手架缓存文件生成工具","archived":false,"fork":false,"pushed_at":"2016-09-26T07:41:35.000Z","size":542,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-06T16:43:33.885Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/future-team.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-08-01T10:38:55.000Z","updated_at":"2016-08-01T10:40:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d2704b8-fbee-49d9-8c32-311eb830c775","html_url":"https://github.com/future-team/gfs-manifest-generator","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"087d974d3096a453a874aa17a3530416226e3b19"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fgfs-manifest-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fgfs-manifest-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fgfs-manifest-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fgfs-manifest-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/future-team","download_url":"https://codeload.github.com/future-team/gfs-manifest-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240452172,"owners_count":19803578,"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":[],"created_at":"2024-11-10T04:07:00.468Z","updated_at":"2026-05-18T05:02:04.146Z","avatar_url":"https://github.com/future-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# manifest-generator\n为前端项目脚手架generator-future-static生成缓存文件。\n关于 `manifest` 属性的介绍请参见 [Using_the_application_cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache)\n# Example\n例如这样的 `index.html` 文件,\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml manifest=\"index.appcache\"  lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"description\" content=\"\" /\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no, minimal-ui\" /\u003e\n    \u003cmeta name=\"format-detection\" content=\"telephone=no\"\u003e\n    \u003cmeta name=\"format-detection\" content=\"email=no\" /\u003e\n    \u003ctitle\u003emanifest generator template\u003c/title\u003e\n    \u003clink rel=\"stylesheet\" href=\"./index.css\"/\u003e\n    \u003clink rel=\"stylesheet\" href=\"./common.css\"/\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.css?hash=wertyuioityrewqytre\u0026timesnap=46541465465469\" type=\"text/css\"/\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003ch1\u003eWellcome Use Manifest Generator!\u003c/h1\u003e\n    \u003cdiv class=\"wrap\"\u003e\n        \u003cdiv class=\"bg\"\u003e\u003cimg src=\"./imgs/example1.jpg\" alt=\"example1\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"bg\"\u003e\u003cimg src=\"http://115.img.pp.sohu.com/images/blog/2007/6/11/6/15/113b04b5b3c.jpg\" alt=\"qweqweqwe\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"bg\" style=\"width: 640px;height: 308px;background: url(http://www.dabaoku.com/sucaidatu/dongwu/dongwushijie/015203.JPG)\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"bg\" style=\"width: 1043px;height: 652px;background: url('http://img-arch.pconline.com.cn/images/upload/upc/tx/wallpaper/1304/15/c0/19877580_1366010662675.jpg');background-size: contain;\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"bg bg-background-1\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"bg bg-background-2\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n    \u003cscript src=\"https://code.jquery.com/jquery-2.2.4.min.js\" integrity=\"sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=\" crossorigin=\"anonymous\"\u003e\u003c/script\u003e\n    \u003cscript src=\"./common.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"./index.js?hash=testjavascript\u0026timesnap=46541465465469\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n生成类似于下面的 `index.appcache` 的缓存文件\n```　.appcache\nCACHE MANIFEST\n# origin manifest file\n# create at Wed Aug 31 2016 21:34:52 GMT+0800 (CST)\nCACHE:\n./index.css\n./imgs/example2.jpg\n./imgs/example3.jpg\n./common.css\nhttps://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.css?hash=wertyuioityrewqytre\u0026timesnap=46541465465469\n./imgs/example1.jpg\nhttp://115.img.pp.sohu.com/images/blog/2007/6/11/6/15/113b04b5b3c.jpg\nhttps://code.jquery.com/jquery-2.2.4.min.js\n./common.js\n./index.js?hash=testjavascript\u0026timesnap=46541465465469\nhttp://www.dabaoku.com/sucaidatu/dongwu/dongwushijie/015203.JPG\nhttp://img-arch.pconline.com.cn/images/upload/upc/tx/wallpaper/1304/15/c0/19877580_1366010662675.jpg\n./index.html?1472650492872\nNETWORK:\n*\n```\n详细请见 [example](./example)\n# Usage \n```javascript\nvar gulp = require('gulp');\nvar config = {\n  html: \"./html\",\n  output: \"./dist\"\n};\nvar manifest = require('gfs-manifest-generator');\n\ngulp.task('css', function () {\n  // TODO css task\n});\n\ngulp.task('js', function () {\n  // TODO js task\n});\n\ngulp.task('html', function () {\n  return gulp.src([config.html + '/**/*.*'])\n    .pipe(manifest({\n      dir: config.output\n    }))\n    .pipe(gulp.dest(config.output));\n});\n\ngulp.task('default', ['js', 'css', 'html']);\n```\n# Notice\n`css`, `js` 文件的预处理必须在执行 `manifest` 之前完成! 否则无法自动更新 `css` 文件中的图片等文件。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fgfs-manifest-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuture-team%2Fgfs-manifest-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fgfs-manifest-generator/lists"}