зеркало из https://github.com/twbs/bootlint.git
Add cli-main.js which actually invokes cli.js's function; fixes #333
This commit is contained in:
Родитель
d356915d19
Коммит
e22dd90e7b
|
@ -19,9 +19,9 @@
|
|||
],
|
||||
"script": [
|
||||
"npm test",
|
||||
"./src/cli.js bootstrap/_gh_pages/**/index.html",
|
||||
"./src/cli.js --disable W003,E001 test/fixtures/doctype/missing.html test/fixtures/viewport/missing.html",
|
||||
"./src/cli.js test/fixtures/x-ua-compatible/missing.html &> x-ua-compatible-missing.output.actual.txt",
|
||||
"./src/cli-main.js bootstrap/_gh_pages/**/index.html",
|
||||
"./src/cli-main.js --disable W003,E001 test/fixtures/doctype/missing.html test/fixtures/viewport/missing.html",
|
||||
"./src/cli-main.js test/fixtures/x-ua-compatible/missing.html &> x-ua-compatible-missing.output.actual.txt || true",
|
||||
"diff test/fixtures/cli/x-ua-compatible-missing.output.txt x-ua-compatible-missing.output.actual.txt"
|
||||
],
|
||||
"after_script": [
|
||||
|
|
|
@ -72,13 +72,14 @@
|
|||
},
|
||||
"main": "./src/bootlint.js",
|
||||
"bin": {
|
||||
"bootlint": "./src/cli.js"
|
||||
"bootlint": "./src/cli-main.js"
|
||||
},
|
||||
"browser": {
|
||||
"binary-search": false,
|
||||
"cheerio": "jquery",
|
||||
"url": "./src/url.js",
|
||||
"./src/cli.js": false,
|
||||
"./src/cli-main.js": false,
|
||||
"./src/location.js": false
|
||||
},
|
||||
"files": [
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env node
|
||||
/*eslint-env node */
|
||||
require('./cli')();
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env node
|
||||
/*eslint-env node */
|
||||
/*eslint no-process-exit: 0 */
|
||||
'use strict';
|
||||
|
|
Загрузка…
Ссылка в новой задаче