{"id":31688302,"url":"https://github.com/chengchuu/multipage-template","last_synced_at":"2026-04-18T17:35:00.873Z","repository":{"id":37927098,"uuid":"108249117","full_name":"chengchuu/multipage-template","owner":"chengchuu","description":"webpack Multi-Page and GitLab Incremental Build Deployment Template / webpack 多页面 \u0026 GitLab 增量构建部署模板","archived":false,"fork":false,"pushed_at":"2025-10-31T15:54:38.000Z","size":890,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-31T17:30:30.163Z","etag":null,"topics":["cicd","gitlab","html","multi-page","template","webpack"],"latest_commit_sha":null,"homepage":"","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/chengchuu.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":"2017-10-25T09:32:54.000Z","updated_at":"2025-09-27T09:43:50.000Z","dependencies_parsed_at":"2023-02-10T09:01:35.191Z","dependency_job_id":"bd59834e-90f1-45ed-aba6-eedb6b25b8e0","html_url":"https://github.com/chengchuu/multipage-template","commit_stats":null,"previous_names":["chengchuu/multipage-template"],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/chengchuu/multipage-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengchuu%2Fmultipage-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengchuu%2Fmultipage-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengchuu%2Fmultipage-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengchuu%2Fmultipage-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chengchuu","download_url":"https://codeload.github.com/chengchuu/multipage-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chengchuu%2Fmultipage-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31978211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: 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":["cicd","gitlab","html","multi-page","template","webpack"],"created_at":"2025-10-08T10:54:42.460Z","updated_at":"2026-04-18T17:35:00.869Z","avatar_url":"https://github.com/chengchuu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"English | [简体中文](./README_CN.md)\n\n# multipage-template\n\nWebpack multi-page and GitLab incremental build deployment template.\n\n## Entry\n\nEach new standalone page only needs to create a folder under `pages`, but must have two entry files: `index.html` and `index.js`.\n\n```\n├── package.json\n└── src\n    ├── index.js // pages - You can put common things on the outside.\n    └── pages\n        ├── page1\n        │   ├── index.js\n        │   └── index.html\n        └── page2\n            ├── style.css\n            ├── index.js\n            └── index.html\n```\n\n## Output\n\nEach packaged page is independent.\n\n```\n├── package.json\n└── dist\n    ├── page1\n    │   ├── index.html\n    │   └── 20210526.194300\n    │       ├── 7ffaa4103cae71b1629a.css\n    │       └── 7ffaa4103cae71b1629a.js\n    └── page2\n        ├── index.html\n        └── 20210526.194300\n            ├── 88870cd4b2e554c2a754.css\n            └── 88870cd4b2e554c2a754.js\n```\n\n## Deploy\n\n### Aliyun OSS\n\nUse GitLab variable to run out of modified `pages` folder, and use Aliyun OSS CLI [aliyunoss-cli](https://github.com/chengchuu/aliyunoss-cli) to upload packaged files automatically.\n\n```\nsearch_dir=src/pages\nfor path in \"$search_dir\"/*; do\necho \"$(git diff HEAD~ --name-only | grep \"$path\")\"\n    if [ \"$(git diff HEAD~ --name-only | grep \"$path/\")\" ]; then\n        page_name=$(basename $path)\n        echo \"[CI] Page \\\"$page_name\\\" has been modified\"\n        echo \"[CI] Start building\"\n        npx cross-env NODE_ENV=production PAGE=$page_name node build/build.js\n    fi\ndone\n```\n\n### Docker\n\nThe page can be visited on `http://localhost:7415` by running the command: `bash DockerBuild.sh`.\n\n## Notification\n\n### WeixinWork\n\nThe notification will be opened after filling the file: `build\\shell\\notification.sh`.\n\n## Reference\n\n[Use GitLab CI/CD and Aliyun CLI to deploy front-end projects](http://blog.mazey.net/1695.html)\n\n## Appendix\n\nAddress of this project: \u003chttps://github.com/chengchuu/multipage-template\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchengchuu%2Fmultipage-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchengchuu%2Fmultipage-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchengchuu%2Fmultipage-template/lists"}