fiz
fiz integrates fis3 and fis3 plugins. Furthermore, it provides more functions to handle some subtle stuff.
Last updated 4 years ago by luozhitao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fiz 
SYNC missed versions from official npm registry.

FIZ

summary

FIZ整合了fis3和众多fis3插件,使开发者无需逐一安装多个fis3插件即可投身于开发中。FIZ包括有以下的组件fis3、fis-parser-coffee-react、fis-parser-less、fis-optimizer-htmlmin等,具体可查看package.json。

FIZ集合了众多插件,可用于编译LESS, coffee, jade等预编译语言/模板语言。

usage

全局安装使用

全局安装使用:npm i -g fiz

1、用作替代fis3的命令:fiz release -w

2、用以快速初始化开发项目:

  • fiz get web:快速构建FIZ定制的PC或者mobile开发目录。加参数-n则不新建文件夹

本地安装使用

本地安装:npm i fiz --save-dev

结合package.json的scripts来使用,比如:

{
  //...
  "scripts": {
    "watch": "fiz server start && fiz release -w",
    "build": "fiz release pr",
    "clean": "fiz server stop && fiz server clean",
    "stop": "fiz server stop"
  }
}

使用命令:npm run watch即可

使用npm run的方便之处在于,npm会自动把node_modules/.bin加入$PATH,这样你可以直接运行依赖程序和开发依赖程序,不用全局安装了。只要npm上的包提供命令行接口,你就可以直接使用它们,方便吧?

FIZ规范的开发目录

FIZ的开发目录结构:

src/           //存放该项目源码
|--js/
|--css/
|--lib/
|--index.html
|
README.md      //说明文档
|
fis-conf.js    //fis配置文件

其他功能

mvDirContent: 移动文件夹内容

满足发布内容后需要对发布文件夹的文件进行移动的需求。

fiz mvDirContent --src ../lc/src --to ./ --clear ../lc

上述命令意思为:把文件夹../lc/src中的所有内容移动到当前目录./下,并且将../lc/src文件夹删除,并且完成后再删除../lc文件夹

Current Tags

  • 1.0.0                                ...           1.0.0 (5 years ago)
  • 1.0.1                                ...           1.0.1 (5 years ago)
  • 1.0.2                                ...           1.0.2 (5 years ago)
  • 1.0.3                                ...           1.0.3 (5 years ago)
  • 1.0.4                                ...           1.0.4 (5 years ago)
  • 1.4.5                                ...           latest (4 years ago)

22 Versions

  • 1.4.5                                ...           4 years ago
  • 1.4.4                                ...           4 years ago
  • 1.4.3                                ...           4 years ago
  • 1.4.2                                ...           4 years ago
  • 1.4.1                                ...           4 years ago
  • 1.4.0                                ...           4 years ago
  • 1.3.3                                ...           4 years ago
  • 1.3.2                                ...           4 years ago
  • 1.3.1                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.3                                ...           5 years ago
  • 1.1.2                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.6                                ...           5 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |