{"id":15307974,"url":"https://github.com/wscats/vueno","last_synced_at":"2025-04-14T03:34:04.049Z","repository":{"id":38285388,"uuid":"190327182","full_name":"Wscats/vueno","owner":"Wscats","description":"Vue Conversion Plugin","archived":false,"fork":false,"pushed_at":"2022-12-09T05:15:32.000Z","size":1435,"stargazers_count":125,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T17:35:53.799Z","etag":null,"topics":["plugin","transform","vscode-extension","vue"],"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/Wscats.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-05T04:43:28.000Z","updated_at":"2025-02-23T08:23:52.000Z","dependencies_parsed_at":"2023-01-25T16:45:12.872Z","dependency_job_id":null,"html_url":"https://github.com/Wscats/vueno","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Fvueno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Fvueno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Fvueno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wscats%2Fvueno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wscats","download_url":"https://codeload.github.com/Wscats/vueno/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248816308,"owners_count":21166055,"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":["plugin","transform","vscode-extension","vue"],"created_at":"2024-10-01T08:13:11.028Z","updated_at":"2025-04-14T03:34:04.028Z","avatar_url":"https://github.com/Wscats.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vueno\n\n`.html`文件处理为`.vue`文件\n\n# 贡献者\n\n| [\u003cimg src=\"https://avatars1.githubusercontent.com/u/17243165?s=460\u0026v=4\" width=\"60px;\"/\u003e\u003cbr /\u003e\u003csub\u003eEno Yao\u003c/sub\u003e](https://github.com/Wscats)| [\u003cimg src=\"https://avatars2.githubusercontent.com/u/5805270?s=460\u0026v=4\" width=\"60px;\"/\u003e\u003cbr /\u003e\u003csub\u003eAaron Xie\u003c/sub\u003e](https://github.com/aaron-xie)| [\u003cimg src=\"https://avatars3.githubusercontent.com/u/12515367?s=460\u0026v=4\" width=\"60px;\"/\u003e\u003cbr /\u003e\u003csub\u003eDK Lan\u003c/sub\u003e](https://github.com/dk-lan)| \u003cimg src=\"https://wscats.github.io/omi-snippets/images/xin.jpg\" width=\"60px;\"/\u003e\u003cbr /\u003e\u003csub\u003eXin\u003c/sub\u003e| \u003cimg src=\"https://wscats.github.io/omi-snippets/images/lemon.jpg\" width=\"60px;\"/\u003e\u003cbr /\u003e\u003csub\u003eLemon\u003c/sub\u003e  |  \u003cimg src=\"https://wscats.github.io/omi-snippets/images/jing.jpg\" width=\"60px;\"/\u003e\u003cbr /\u003e\u003csub\u003eJing\u003c/sub\u003e  |  \u003cimg src=\"https://wscats.github.io/omi-snippets/images/lin.jpg\" width=\"60px;\"/\u003e\u003cbr /\u003e\u003csub\u003eLin\u003c/sub\u003e  |\n| - | - | - | - | - | - | - |\n\n# 使用\n在VSC中打开任何`.html`后缀文件，修改并保存，将自动转换为`.vue`的单文件组件\n\n例如有文件`test.html`内容如下:\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n    \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"\u003e\n    \u003ctitle\u003eDocument\u003c/title\u003e\n    \u003cstyle\u003e\n        div {\n            color: red\n        }\n    \u003c/style\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cscript\u003e\n        console.log('Eno Yao')\n    \u003c/script\u003e\n    \u003cp\u003eEno Yao\u003c/p\u003e\n    \u003cp\u003eHello World\u003c/p\u003e\n    \u003cscript\u003e\n        console.log('Hello World')\n    \u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n保存文件后，将在同目录下生成`test.html.vue`文件，内容如下\n```html\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cp\u003eEno Yao\u003c/p\u003e\n    \u003cp\u003eHello World\u003c/p\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\u003cscript\u003e\nexport default {};\n\u003c/script\u003e\n\u003cstyle scoped\u003e\ndiv {\n  color: red;\n}\n\u003c/style\u003e\n```\n\n例如：我们要仿造美团外卖的网站，你可以打开 https://h5.waimai.meituan.com/login 美团的官网，点击鼠标右键显示网页源代码复制到 `VS Code` 的 `.html` 格式文件中，然后保存就可以生成 `.vue` 后缀的文件了。\n\n![demo](logos/1.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwscats%2Fvueno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwscats%2Fvueno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwscats%2Fvueno/lists"}