tofu-cli
A tool
Last updated a year ago by hujin0327 .
ISC · Original npm · Tarball · package.json
$ cnpm install tofu-cli 
SYNC missed versions from official npm registry.

Tofu-cli

Simple CLI for scaffolding Vue.js projects Build Status

核心

简单易用当然是我的目标之一,准确来说,我希望给开发者们提供一个“无压”的开发环境。 每个人的精力都是有限的,因为有限,我们就需要将注意力集中在项目的核心 -- 代码上。但是现实的开发环境并不是如此,我们时常被代码之外的内容夺去注意力,甚至花上更多的精力去处理这些并不能让代码变得更好的东西上。所以我选择将代码之外的这部分内容剥离。

介绍

现在来简单介绍下项目的构成,它主要由这几部分内容构成:

  • 项目搭建
  • 开发环境
  • 项目打包
  • 内容更新
  • 代码校验

分别对应着五个命令:

  • tofu init
  • tofu server
  • tofu build
  • tofu update
  • tofu lint

现在来介绍下这些命令的用法。

用法

init

tofu init

server

tofu server

# 指定端口
tofu server [-p|--port <port>]

build

tofu build

# 不压缩
tofu build [-C|--no-compress]
# 压缩后删除 dist
tofu build [-d|--delete]

update

tofu update

# 更新模板,i-tofu 和 tofu-cli
tofu update [-a|--all]

lint

tofu lint

# 自动修复
tofu lint [-f|--fix]

.tofurc 配置选项说明

参数 说明
href hostname
port 端口
proxy 代理配置
rules Eslint 的规则配置
webpack 用来覆盖基础配置
updateList 配置需要更新的文件
_meta 元信息

Current Tags

  • 1.0.6                                ...           latest (a year ago)

28 Versions

  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-beta.9                                ...           2 years ago
  • 1.0.0-beta.8                                ...           2 years ago
  • 1.0.0-beta.7                                ...           2 years ago
  • 1.0.0-beta.6                                ...           2 years ago
  • 1.0.0-beta.5                                ...           2 years ago
  • 1.0.0-beta.4                                ...           2 years ago
  • 1.0.0-beta.3                                ...           2 years ago
  • 1.0.0-beta.2                                ...           2 years ago
  • 1.0.0-beta.1                                ...           2 years ago
  • 0.1.9                                ...           2 years ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (2)
Downloads
Today 0
This Week 4
This Month 5
Last Day 1
Last Week 1
Last Month 30
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |