Skip to content

Commit

Permalink
build(cli): build code for nodejs= 7
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed Aug 14, 2019
1 parent d416ed0 commit 0f0ff2f
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/lint-md-cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin
6 changes: 2 additions & 4 deletions packages/lint-md-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

> 用于检查中文 markdown 编写格式规范的命令行工具,基于 AST 开发,且方便集成 ci;同时提供 API 方法调用。Cli tool to lint your markdown file for Chinese.
[![Build Status](https://travis-ci.org/hustcc/lint-md-cli.svg?branch=master)](https://travis-ci.org/hustcc/lint-md-cli)
[![Coverage Status](https://coveralls.io/repos/github/hustcc/lint-md-cli/badge.svg?branch=master)](https://coveralls.io/github/hustcc/lint-md-cli)
[![npm](https://img.shields.io/npm/v/lint-md-cli.svg)](https://www.npmjs.com/package/lint-md-cli)
[![npm](https://img.shields.io/npm/dm/lint-md-cli.svg)](https://www.npmjs.com/package/lint-md-cli)

Expand Down Expand Up @@ -48,7 +46,7 @@ lint-md README.md Document.md --fix

## 检查类型

基于 [lint-md](https://github.com/hustcc/lint-md/packages/lint-md),具体支持的检查类型,请到该项目查看。
基于 [lint-md](https://github.com/hustcc/lint-md/tree/master/packages/lint-md),具体支持的检查类型,请到该项目查看。



Expand All @@ -69,7 +67,7 @@ lint-md README.md Document.md --fix
}
```

- 通过 rules 来配置规则。参考 [lint-md](https://github.com/hustcc/lint-md/packages/lint-md) 文档说明。
- 通过 rules 来配置规则。参考 [lint-md](https://github.com/hustcc/lint-md/tree/master/packages/lint-md) 文档说明。
- 通过 excludeFiles 来忽略文件和目录,glob 语法。


Expand Down
8 changes: 5 additions & 3 deletions packages/lint-md-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "lint-md-cli",
"version": "0.1.0",
"version": "0.1.1",
"description": "Cli tool to lint your markdown file for Chinese.",
"bin": {
"lint-md": "bin/index.js"
},
"scripts": {
"test": "node ./bin/index.js tests README.md -c tests/.lintmdrc"
"test": "node ./bin/index.js tests README.md -c tests/.lintmdrc",
"build": "rimraf ./bin && babel src -d bin"
},
"keywords": [
"lint",
Expand All @@ -29,7 +30,8 @@
"babel-jest": "^23.6.0",
"babel-plugin-version": "^0.2.3",
"coveralls": "^3.0.2",
"jest": "^23.6.0"
"jest": "^23.6.0",
"rimraf": "^2.7.0"
},
"author": "hustcc",
"license": "MIT",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

const program = require('commander');

const pkg = require('../package.json');
const Lint = require('./Lint');
const Fix = require('./Fix');
const configure = require('./helper/configure');

program
.version(pkg.version, '-v, --version')
.version(__VERSION__, '-v, --version')
.usage('<lint-md> <files...> [options]')
.description('lint your markdown files')
.option('-c, --config [configure-file]', 'use the configure file, default .lintmdrc')
Expand Down

0 comments on commit 0f0ff2f

Please sign in to comment.