-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This adds remark-lint tooling and introduces a 'make doclint' command, which is also executed on 'make test' runs. tools/remark-cli dir was created by installing `remark-cli` and `remark-lint`, the following files and directories are being excluded: * `./node_modules/concat-stream/node_modules/readable-stream/` a duplicate copy of `readable-stream` of 2.0, there already is 2.1. * `./**/doc/`, `./**/test/` -- docs and tests for deps are not needed. * `./**/history.md` and `./**/changelog.md` (case-insensitive). * `./**/.travis.yml`, `./**/.istanbul.yml`, `./**/.zuul.yml`. * `./**/.eslintrc`, `./**/.jscs.json`, `./**/.jshintrc`. * `./**/.npmignore`, `./**/component.json`, `./**/.gitattributes`. * `./**/dist/` (affects `sprintf-js` and `js-yaml`), not `require()`-d. PR-URL: nodejs#8551
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ test/fixtures | |
test/disabled | ||
test/tmp*/ | ||
tools/eslint | ||
tools/remark-cli | ||
node_modules | ||
benchmark/tmp/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env node | ||
/** | ||
* @author Titus Wormer | ||
* @copyright 2015 Titus Wormer | ||
* @license MIT | ||
* @module remark:cli | ||
* @fileoverview CLI to process markdown. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
/* Dependencies. */ | ||
var start = require('unified-args'); | ||
var extensions = require('markdown-extensions'); | ||
var processor = require('remark'); | ||
var proc = require('remark/package.json'); | ||
var cli = require('./package.json'); | ||
|
||
/* Start. */ | ||
start({ | ||
processor: processor, | ||
name: proc.name, | ||
description: cli.description, | ||
version: [ | ||
proc.name + ': ' + proc.version, | ||
cli.name + ': ' + cli.version | ||
].join(', '), | ||
pluginPrefix: proc.name, | ||
presetPrefix: proc.name + '-preset', | ||
packageField: proc.name + 'Config', | ||
rcName: '.' + proc.name + 'rc', | ||
ignoreName: '.' + proc.name + 'ignore', | ||
extensions: extensions | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.