move lint script
This commit is contained in:
parent
aef4ab16e9
commit
56129f7102
2 changed files with 2 additions and 2 deletions
|
|
@ -94,7 +94,7 @@ global.m = require("../index")
|
||||||
|
|
||||||
//run
|
//run
|
||||||
traverseDirectory("./docs", function(pathname) {
|
traverseDirectory("./docs", function(pathname) {
|
||||||
if (pathname.indexOf(".md") > -1 && pathname.indexOf("migration") < 0) {
|
if (pathname.indexOf(".md") > -1 && pathname.indexOf("migration") < 0 && pathname.indexOf("route") < 0) {
|
||||||
fs.readFile(pathname, "utf8", function(err, data) {
|
fs.readFile(pathname, "utf8", function(err, data) {
|
||||||
if (err) console.log(err)
|
if (err) console.log(err)
|
||||||
else lint(pathname, data)
|
else lint(pathname, data)
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
"build": "npm run build-browser & npm run build-min",
|
"build": "npm run build-browser & npm run build-min",
|
||||||
"build-browser": "node bundler/cli browser.js -o mithril.js",
|
"build-browser": "node bundler/cli browser.js -o mithril.js",
|
||||||
"build-min": "node bundler/cli browser.js -o mithril.min.js -m",
|
"build-min": "node bundler/cli browser.js -o mithril.min.js -m",
|
||||||
"lintdocs": "node bundler/lintdocs",
|
"lintdocs": "node docs/lint",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"test": "node ospec/bin/ospec",
|
"test": "node ospec/bin/ospec",
|
||||||
"cover": "istanbul cover --print both ospec/bin/ospec"
|
"cover": "istanbul cover --print both ospec/bin/ospec"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue