Git Product home page Git Product logo

fedao's Introduction

fedao

fedao 学而思在线前端工程构建工具

主要特征

  • 基于fis3的前端工程化解决方案
  • 全面支持es6/es7
  • 支持npm生态
  • 支持智能打包
  • 内置 autoprefixerpx2rem 等实用插件
  • 数据mock
  • http远程部署
  • git分支远程部署
  • 代码区块裁剪

安装

npm install -g fedao

主要命令

fedo server start|stop|restart|open
fedao release -cw //发布

数据模拟

参见数据模拟

git分支远程部署

用于将编译好的源码推送到指定的git分支。适用于上线系统无前端编译机器的场景。

配置

// deploy.url值为数组,内容为分支地址及分支名称
fis.set('deploy.url', [{
    url: 'https://git.coding.net/younth/hexo-site.git',
    branch: 'master',
}, {
    url: 'http://111.204.113.135:8000/wangyang02/docs.git',
    branch: 'master'
}])

使用方法

  • 本地编译产出 output 目录。注意产出目录必须为output
  • 执行 fedao deploy 即可将output内容通过git的方式自动提交到对应的分支。

Notice

  • 提交的过程会新建一个.deploy_git分支,可在.gitignore里面配置忽略~
  • 提交的分支不能是受保护的分支,否则会提交失败。gitlab设置:设置 -> 保护分支

todo

  • 基于laravel的后端解决方案封装
  • 基于node的中间层解决方案封装

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.