{"id":14976511,"url":"https://github.com/younth/fedao","last_synced_at":"2025-10-27T20:31:50.870Z","repository":{"id":84205445,"uuid":"93710972","full_name":"younth/fedao","owner":"younth","description":":hocho:基于fis3的前端工程化工具","archived":false,"fork":false,"pushed_at":"2017-08-26T15:17:27.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-01T08:05:51.923Z","etag":null,"topics":["blade","fis3","laravel","node","swig","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/younth.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-06-08T05:33:37.000Z","updated_at":"2018-03-12T09:51:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"c339bb31-db53-4123-b5a4-8b8142c81bee","html_url":"https://github.com/younth/fedao","commit_stats":{"total_commits":8,"total_committers":3,"mean_commits":"2.6666666666666665","dds":0.25,"last_synced_commit":"b3fe7eac1817a690025c57f2f00fc9bf513bdfed"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younth%2Ffedao","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younth%2Ffedao/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younth%2Ffedao/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younth%2Ffedao/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/younth","download_url":"https://codeload.github.com/younth/fedao/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238553202,"owners_count":19491390,"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":["blade","fis3","laravel","node","swig","webpack"],"created_at":"2024-09-24T13:54:00.326Z","updated_at":"2025-10-27T20:31:45.633Z","avatar_url":"https://github.com/younth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## fedao\n\n![](https://img.shields.io/npm/v/fedao.svg) ![](https://img.shields.io/npm/dm/fedao.svg)\n\n**![fedao](./docs/logo.png) 学而思在线前端工程构建工具**\n\n### 主要特征\n\n- 基于fis3的前端工程化解决方案\n- 全面支持es6/es7\n- 支持npm生态\n- 支持智能打包\n- 内置 `autoprefixer`、`px2rem` 等实用插件\n- 数据mock\n- http远程部署\n- git分支远程部署\n- 代码区块裁剪\n\n### 安装\n\n```\nnpm install -g fedao\n```\n\n### 主要命令\n\n```\nfedo server start|stop|restart|open\nfedao release -cw //发布\n```\n\n### 数据模拟\n\n参见[数据模拟](./docs/mock.md)\n\n### git分支远程部署\n\n用于将编译好的源码推送到指定的git分支。适用于上线系统无前端编译机器的场景。\n\n#### 配置\n\n```js\n// deploy.url值为数组，内容为分支地址及分支名称\nfis.set('deploy.url', [{\n    url: 'https://git.coding.net/younth/hexo-site.git',\n    branch: 'master',\n}, {\n    url: 'http://111.204.113.135:8000/wangyang02/docs.git',\n    branch: 'master'\n}])\n```\n\n\n#### 使用方法\n\n- 本地编译产出 `output` 目录。**注意产出目录必须为output**\n- 执行 `fedao deploy` 即可将output内容通过git的方式自动提交到对应的分支。\n\n\n#### Notice \n \n - 提交的过程会新建一个`.deploy_git`分支，可在.gitignore里面配置忽略～\n - 提交的分支不能是受保护的分支，否则会提交失败。gitlab设置：设置 -\u003e 保护分支\n\n### todo\n\n- 基于laravel的后端解决方案封装\n- 基于node的中间层解决方案封装","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyounth%2Ffedao","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyounth%2Ffedao","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyounth%2Ffedao/lists"}