npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-turbo

v1.0.29

Published

前端工程生成器 for turbo

Downloads

74

Readme

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. 提供透明代理(即:线下不存在的资源,直接抓取线上)
  • 更多请参考 :https://www.npmjs.org/package/gulp-turbo

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

    # 创建turbo 页面及其相关文件
    yo turbo:page

    
    # 注意:如果依赖没有被自动安装,请手动 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

2016
[03-29] page子生成器:快速创建页面以及相关文件

2015

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

TODOS

  1. gulp动态组装require_conf.coffee

Contributors

赵新