{"id":17920516,"url":"https://github.com/xierenyuan/vayne","last_synced_at":"2025-03-24T00:32:14.973Z","repository":{"id":57390976,"uuid":"111269267","full_name":"xierenyuan/vayne","owner":"xierenyuan","description":"薇恩 基于 vue-cli 的 webpack 通用封装,  更易简单的开始你的项目","archived":false,"fork":false,"pushed_at":"2018-01-12T07:40:27.000Z","size":2832,"stargazers_count":31,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"dev","last_synced_at":"2024-10-23T03:11:13.792Z","etag":null,"topics":["vayne","vue","vue-cil","webpack"],"latest_commit_sha":null,"homepage":"https://vayne.js.org/","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/xierenyuan.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}},"created_at":"2017-11-19T06:06:07.000Z","updated_at":"2023-02-24T11:42:19.000Z","dependencies_parsed_at":"2022-09-19T03:40:28.349Z","dependency_job_id":null,"html_url":"https://github.com/xierenyuan/vayne","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xierenyuan%2Fvayne","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xierenyuan%2Fvayne/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xierenyuan%2Fvayne/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xierenyuan%2Fvayne/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xierenyuan","download_url":"https://codeload.github.com/xierenyuan/vayne/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221801723,"owners_count":16882767,"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":["vayne","vue","vue-cil","webpack"],"created_at":"2024-10-28T20:25:57.257Z","updated_at":"2024-10-28T20:25:57.863Z","avatar_url":"https://github.com/xierenyuan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/xierenyuan/vayne/\" target=\"_blank\"\u003e\u003cimg src=\"./docs/vn.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003ch3 align=\"center\"\u003evayne\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n  vayne 基于 vue-cli 的 webpack 全局安装的命令行工具, 全局安装依赖，可以省去每个项目安装开发依赖 的麻烦。同时以避免多个项目需同时维护多个webpack 配置的痛苦, 同时会同步vue-cli 的webpack 配置，当有新的配置时只需 升级vayne 即可享受。当然核心是无需在关心繁琐的webpack 配置。几分钟开始你的项目开发\n\u003c/p\u003e\n\n[![npm (scoped)](https://img.shields.io/npm/v/@vayne/cli.svg)](https://www.npmjs.com/package/@vayne/cli)\n[![node](https://img.shields.io/node/v/vayne.svg)](https://nodejs.org/en/)\n[![GitHub tag](https://img.shields.io/github/tag/xierenyuan/vayne.svg)](https://github.com/xierenyuan/vayne)\n[![npm](https://img.shields.io/npm/l/@vayne/cli.svg)](https://www.npmjs.com/package/@vayne/cli)\n[![Build Status](https://travis-ci.org/xierenyuan/vayne.svg?branch=develop)](https://travis-ci.org/xierenyuan/vayne)\n\n## 演示\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./docs/vayne.gif\" width=\"926\" height=\"521\" /\u003e\n\u003c/p\u003e\n\n## Usage (使用)\n\n```shell\n# npm\nnpm i @vayne/cli -g\n# yarn\nyarn global add @vayne/cli\nyarn add @vayne/cli -D --registry=https://registry.npm.taobao.org\n```\n### server (本地开发)\n\n```shell\n# 指定端口号\nvayne serve --port=2000\n```\n### build （生成环境 打包）\n\n``` shell\nvayne build\n# View the bundle analyzer report after build finishes\nvayne build -r\n```\n\n## Like star (喜欢 请star 我😍）\n[![GitHub stars](https://img.shields.io/github/stars/xierenyuan/vayne.svg?style=social\u0026label=Stars)](https://github.com/xierenyuan/vayne)\n\n## Documentation (文档)\n\n* [documentation](https://vayne.js.org/) 文档看这里看这里\n\n## Vayne Plugins(插件) [vayne](https://github.com/vaynejs)\n\n* [vayne-plugin-vue](https://github.com/vaynejs/vayne-plugin-vue) 提供Vue 相关配置\n* [vayne-plugin-angularjs](https://github.com/vaynejs/vayne-plugin-angularjs) 提供angularjs 相关配置 \n* [vayne-plugin-stylelint](https://github.com/vaynejs/vayne-plugin-stylelint) stylelint 强验证 scss \n\nperset （预设）\n* [stylelint-config-vayne](https://github.com/vaynejs/stylelint-config-vayne)\n* [eslint-config-vayne](https://github.com/vaynejs/eslint-config-vayne)\n* [babel-perset-vayne](https://github.com/vaynejs/babel-preset-vayne)\n\n## Plan(计划)\n\n- [ ] unit(引入了测试 但是keys 还没有编写)\n- [x] 插件完善扩展 增加生命周期\n- [x] 文档\n\n## Examples (列子)\n\u003e 详见  __examples__  默认配置见 __lib/utils/vayne.config.js__ \n\n## 特性\n\n### 自动重启\n配置文件修改的修改会触发 vayne server的自动重启 会触发的文件有\n* __.vaynerc__\n* __.vaynerc.js__\n* 或者 是vayne server --config 后边的文件\n\n## 命令行参数\n\n### vayne\n\n```shell\n$ vayne -h\n  Usage: vayne [options] [command]\n\n\n  Options:\n\n    -V, --version  output the version number\n    -h, --help     output usage information\n\n\n  Commands:\n\n    serve [options] [input]  启动开发调试模式.\n    build [options] [input]  启动生产模式，生成最终的部署代码.\n    help [command]           display help information for a command.\n\n  Run:\n  $ vayne help \u003ccommand\u003e for more information on specific commands.\n  以上所有配置 均可在 vayne 配置文件中配置。\n  详情见 http://vayne.js.org/\n```\n\n### vayne serve\n``` shell\n$ vayne serve -h\n  Usage: serve [options] [input]\n\n  启动开发调试模式.\n\n\n  Options:\n\n    -p, --port \u003cport\u003e  设置服务器端口号. 如以在使用会自动往上累加。 默认是 9000\n    -H, --host \u003chost\u003e  host .\n    -o, --open         在默认浏览器中打开.\n    -c, --config       指定配置文件.\n    -V, --version      output the version number.\n    -h, --help         output usage information               显示帮助信息                                         [布尔]\n```\n\n### vayne build\n``` shell\n$ vayne build -h\n  Usage: build [options] [input]\n\n  启动生产模式，生成最终的部署代码.\n\n\n  Options:\n\n    -r, --report  View the bundle analyzer report after build finishes.\n    -c, --config  指定配置文件.\n    -h, --help    output usage information                                          [布尔]\n```\n\n\n## other\n\u003e 因为node-sass 安装过慢 所以在当前项目移除依赖 需在使用项目根路径手动安装 见\n\n\u003e 国内的小伙伴看这里 值像淘宝源\n```shell\n# npm 安装\nSASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass npm install node-sass -D\n\n# yarn 指向淘宝镜像\nyarn config set registry https://registry.npm.taobao.org -g\n\n# yarn node-sass 安装\nyarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g\n```\n\n## link\n\u003e 感谢这些优秀的开源项目\n\n- [roadhog](https://github.com/sorrycc/roadhog)\n- [Vue](https://github.com/vuejs/vue)\n- [Vue-cli](https://github.com/vuejs/vue-cli)\n- [Webpack](https://github.com/webpack/webpack)\n- [POI](https://github.com/egoist/poi)\n- [parcel](https://github.com/parcel-bundler/parcel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxierenyuan%2Fvayne","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxierenyuan%2Fvayne","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxierenyuan%2Fvayne/lists"}