mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-26 08:56:09 +01:00
Simplify the mechanics of using markdownlint in a browser.
This commit is contained in:
parent
d263a955f3
commit
070eb19177
5 changed files with 14 additions and 16 deletions
|
|
@ -15,8 +15,8 @@
|
|||
"test": "nodeunit",
|
||||
"test-cover": "istanbul cover node_modules/nodeunit/bin/nodeunit",
|
||||
"debug": "node debug node_modules/nodeunit/bin/nodeunit",
|
||||
"lint": "eslint lib test & eslint --env browser --global markdownit --global markdownlint --rule \"no-unused-vars: 0, no-extend-native: 0, max-statements: 0\" demo & eslint --rule \"no-console: 0, no-shadow: 0\" example",
|
||||
"build-demo": "copy node_modules\\markdown-it\\dist\\markdown-it.min.js demo & browserify lib/markdownlint.js --standalone markdownlint --exclude markdown-it --outfile demo/markdownlint-browser.js",
|
||||
"lint": "eslint lib test & eslint --env browser --global markdownit --global markdownlint --rule \"no-unused-vars: 0, no-extend-native: 0, max-statements: 0, no-console: 0\" demo & eslint --rule \"no-console: 0, no-shadow: 0\" example",
|
||||
"build-demo": "copy node_modules\\markdown-it\\dist\\markdown-it.min.js demo & browserify demo/browser-polyfills.js lib/markdownlint.js --standalone markdownlint --outfile demo/markdownlint-browser.js",
|
||||
"example": "npm install through2 & cd example & node standalone.js & grunt markdownlint & gulp markdownlint"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
@ -35,5 +35,8 @@
|
|||
"md",
|
||||
"check",
|
||||
"validate"
|
||||
]
|
||||
],
|
||||
"browser": {
|
||||
"markdown-it": "./demo/markdown-it-stub.js"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue