zzpig
一个挑选出所有中文的工具
Last updated 5 months ago by magician_shiro .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install zzpig 
SYNC missed versions from official npm registry.

一个挑选出所有中文的工具

how to install

npm install zzpig --save-dev

how to use

  1. 写个 pigrc.js 配置文件
  2. package.json中配置script, 举个栗子
    "scripts": {
      "pig": "pig"
    },
    
  3. npm run pig

配置文件的说明

字段 意思 是否可选 默认值 类型
target 目标文件或文件夹 必选 string
compare 想要对比的文件 可选 string
extname 想要读取的文件后缀 可选 [.js] array
ignoreDir 想要忽略掉的文件夹 可选 array
babelParse babel解析ast所需的配置, 详情请看babel-parse 可选 { sourceType: 'module', plugins: ["jsx", 'classProperties', 'dynamicImport'] } object
output 输出配置, filename: 输出的文件名, dirpath: 输出的文件路径 可选 { filename: 'language.js', dirpath: '/dist' } { filename: string, dirpath: string }

Current Tags

  • 1.0.6                                ...           latest (5 months ago)

7 Versions

  • 1.0.6                                ...           5 months ago
  • 1.0.5                                ...           5 months ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |