Code Monkey home page Code Monkey logo

generator-turbo's Introduction

generator-turbo

前端工程生成器 for turbo

前端工作流 功能说明

  1. 快速构建前端项目
  2. 提供易于开发、调试的开发联调环境,支持预编译语言(jade,stylus,coffee)
  3. 提供基于requirejs的实时打包服务。
  4. 提供http server, 支持mock接口数据功能。
  5. 提供json文件自动校验
  6. 提供80端口代理、转发功能
  7. 提供htpp代理服务(类似 fiddler,charles功能,默认端口8989, 调试移动端必备)
  8. 提供透明代理(即:线下不存在的资源,直接抓取线上)

Getting Started


nodejs安装

  1. windows
  2. Linux

1. 安装依赖模块

    npm i -g yo gulp generator-turbo

2. 创建项目

  1. 运行generator

    # 创建项目根目录,并cd进入
    mkdir myProject && cd $_

    # 创建turbo项目
    yo turbo

    # 注意:如果依赖没有被自动安装,请手动 npm i(安装所需时间取决与网络状况)

3. 运行项目 (默认初始化包含demo文件)

    开发模式编译(注意:mac系统监听1024以下端口需要sudo)
    gulp

    生产模式编译
    gulp dist

    - 更多命令请参考   https://www.npmjs.org/package/gulp-turbo

问题列表

  1. - 目录说明 & 开发约定
  2. - 使用turbo,前后端如何联调页面?
  3. - 如何设置浏览器代理?
  4. - 手动安装chrome代理插件:SwitchyOmega

change log

[12.14] -
        1. 文件夹简化,去掉generator层
        2. 去掉brower i
        3. 自动npm i
        4. 增加测试脚本

TODOS

  1. 子生成器

Contributors

赵新

generator-turbo's People

Contributors

ian000 avatar

Watchers

James Cloos avatar XuMing avatar

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.