{"id":18262878,"url":"https://github.com/midwayjs/vue-cli-plugin-midway-hooks","last_synced_at":"2025-09-11T17:15:44.943Z","repository":{"id":45242355,"uuid":"315811764","full_name":"midwayjs/vue-cli-plugin-midway-hooks","owner":"midwayjs","description":"Provide midway hooks dev pack options to vue-cli","archived":false,"fork":false,"pushed_at":"2021-12-28T16:04:19.000Z","size":9,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-10T14:18:43.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/midwayjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-25T02:53:23.000Z","updated_at":"2021-08-07T10:00:27.000Z","dependencies_parsed_at":"2022-09-09T11:00:20.291Z","dependency_job_id":null,"html_url":"https://github.com/midwayjs/vue-cli-plugin-midway-hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/midwayjs/vue-cli-plugin-midway-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwayjs%2Fvue-cli-plugin-midway-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwayjs%2Fvue-cli-plugin-midway-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwayjs%2Fvue-cli-plugin-midway-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwayjs%2Fvue-cli-plugin-midway-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/midwayjs","download_url":"https://codeload.github.com/midwayjs/vue-cli-plugin-midway-hooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwayjs%2Fvue-cli-plugin-midway-hooks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259553130,"owners_count":22875610,"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-05T11:09:06.308Z","updated_at":"2025-06-13T00:07:57.271Z","avatar_url":"https://github.com/midwayjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":" \u003cp align=\"center\"\u003e\n  \u003cimg\n    width=\"280\"\n    src=\"https://user-images.githubusercontent.com/10298932/59419196-af91f800-8dca-11e9-9ea8-de5567e9e471.png\"\n    alt=\"\"\n  \u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eVue CLI Plugin With Midway Hooks Development\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eThis plugin is meant to provide all \u003ca href=\"https://www.npmjs.com/package/@midwayjs/faas-dev-pack\"\u003e@midwayjs/faas-dev-pack\u003c/a\u003e options to vue-cli.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vue3-cli-plugin-midway-hooks\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/vue3-cli-plugin-midway-hooks.svg?style=flat-square\" alt=\"NPM Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vue3-cli-plugin-midway-hooks\"\u003e\u003cimg src=\"https://img.shields.io/npm/dw/vue3-cli-plugin-midway-hooks.svg?style=flat-square\" alt=\"NPM Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/assurance-maladie-digital/vue3-cli-plugin-midway-hooks/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n## Installation\n\n``` bash\nyarn add vue3-cli-plugin-midway-hooks\n# OR npm install vue3-cli-plugin-midway-hooks\n```\n\n## Usage\n\n```js\n// vue.config.js\nmodule.exports = {\n  pluginOptions: {\n    isHooks: true, // use hooks\n    faas: {\n      // ...\n    }\n  }\n}\n```\n\n## Options\n\nSee [midway faas dev pack](https://github.com/midwayjs/midway-faas/tree/master/packages/faas-dev-pack) for `options` object to pass to the plugin.\n\n### Object examples\n\n* default value, you can overwrite it.\n\n```js\n// vue.config.js\nmodule.exports = {\n  pluginOptions: {\n    faas: {\n      sourceDir: 'src/apis',\n      // ignore function name\n      ignoreWildcardFunctions: ['render'],\n      // ignore pattern\n      ignorePattern: (req) =\u003e {\n        const { pathname } = URL.parse(req.url);\n        return /\\.(js|css|map|json|png|jpg|jpeg|gif|svg|eot|woff2|ttf)$/.test(pathname);\n      }\n    },\n    isHooks: true,\n    hooksRule: ['ts', 'js']\n  }\n}\n```\n\n## License\n\nVue CLI Plugin Midway Hooks is licensed under [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidwayjs%2Fvue-cli-plugin-midway-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmidwayjs%2Fvue-cli-plugin-midway-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidwayjs%2Fvue-cli-plugin-midway-hooks/lists"}