{"id":15496926,"url":"https://github.com/lencx/multipage-template","last_synced_at":"2026-04-09T17:55:28.899Z","repository":{"id":104825509,"uuid":"92957213","full_name":"lencx/multipage-template","owner":"lencx","description":"Multi-module(webpack4, vue2, pug, scss, postcss)","archived":false,"fork":false,"pushed_at":"2018-09-07T11:09:12.000Z","size":2114,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T22:12:01.709Z","etag":null,"topics":["multi-page","postcss","pug","scss","vue2","webpack4"],"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/lencx.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}},"created_at":"2017-05-31T14:53:16.000Z","updated_at":"2025-01-06T21:21:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab7694eb-f2d0-47ce-837d-df9402adbe57","html_url":"https://github.com/lencx/multipage-template","commit_stats":{"total_commits":44,"total_committers":1,"mean_commits":44.0,"dds":0.0,"last_synced_commit":"dd184cf362521bba72296047209b87a83380f735"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lencx/multipage-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencx%2Fmultipage-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencx%2Fmultipage-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencx%2Fmultipage-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencx%2Fmultipage-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lencx","download_url":"https://codeload.github.com/lencx/multipage-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencx%2Fmultipage-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260793414,"owners_count":23064036,"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":["multi-page","postcss","pug","scss","vue2","webpack4"],"created_at":"2024-10-02T08:29:32.425Z","updated_at":"2025-12-30T22:23:01.901Z","avatar_url":"https://github.com/lencx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multipage Template\n\n```bash\n[project]\n   |- [.bin]\n   |- [config]\n   |     |- [data]\n   |     |     |- alias.json # webpack alias\n   |     |     |- mode.json # entry file\n   |     |     `- dev-info.json # developer information\n   |     |- webpack.config.js\n   |     `- ...\n   |- [src]\n   |   |- [models]\n   |   |     |- [mode_name] # www | home | app | ...\n   |   |     `- ...\n   |   `- [public]\n   |         |- [api]\n   |         |    |- dev.api.js\n   |         |    |- prod.api.js\n   |         |    `- index.js\n   |         |- [components]\n   |         |- [js]\n   |         |- [scss]\n   |         |- [templates]\n   |         |      |- [layout]\n   |         |      |- [widget]\n   |         |      `- ...\n   |         |- [utils]\n   |         `- ...\n   |- [static]\n   |   |- [plugin]\n   |   |- [lib]\n   |   |     |- vue@2.5.17.min.js\n   |   |     |- jquery@3.3.1.min.js\n   |   |     `- ...\n   |   |- [img]\n   |   |- [media]\n   |   `- ...\n   |- [webpack]\n   |- package.json\n   `- ...\n```\n\n## Command\n\n```bash\n# install\nyarn\n\nyarn dev\n\nyarn build\n\n### help ###\n# webpack-cli\nyarn cli:help\n# webpack-dev-server\nyarn dev:help\n\n# default: timestamp\nyarn zip \u003cdist_pack_version\u003e\n\n# clear directory\nyarn clear \u003cdirname\u003e # dirname: required\n\n# create mode or page\nyarn new mode@\u003cmode_name\u003e \u003cpage_name\u003e # mode_name: required\n\n# model list\nyarn mode\n\n# enable all model\nyarn mode all\n\n# `make` command instructions\nmake\n```\n\n## Model\n\n* www\n* app\n* h5\n* ...\n\n## Vue use\n\n### Component\n\n* Global Registration\n\n\u003e path: `/src/public/components`\\\n\u003e [alias: `@pubcp`](/config/data/alias.json)\n\n```js\n// src/public/js/common.js\nVue.component('my-component-name', {\n  // ... options ...\n})\n\n// or\nimport testBtn from '@pubcp/testBtn.vue'\nVue.component('test-btn', testBtn)\n```\n\n* Local Registration\n\n\u003e path: `/src/models/mode_name/components`\\\n\u003e alias: ...\n\n```js\n// src/models/mode_name/js/page_name.js\nimport localBtn from './your_components_path/localBtn.vue'\nnew Vue({\n    el: '#app',\n    components: {\n        localBtn\n    }\n})\n```\n\n## TODO\n\n* [x] Generate new module or page\n* [x] Enable the module through the terminal","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flencx%2Fmultipage-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flencx%2Fmultipage-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flencx%2Fmultipage-template/lists"}