### Pimp the docs linter (and assorted changes) #### `scripts/lint-docs.js` - Add an optional cache for faster runs - Add a final report - Don't return anything from `exec()` - Cover more files #### `scripts/_command.js` - Look for a "--cache" option #### `package.json` scripts - Added `watch:lint-docs` - Added `cleanup:lint` to remove the eslint and lint-docs cache files - Changed `lint:docs` to use the `--cache` option - Added `test:js` so that we can run the test suite without the linter - Changed `test` to defer to `test:js` #### Actual lint fixes: - Bad link in a migration guide - The unicode dashes in the "https://en.wikipedia.org/wiki/Subject–verb–object" are not escaped by marked ### Some more lint-docs pimping #### `scripts/lint-docs.js` - some code reorg and cleanup (take a hint from the local coding conventions) - fix misc bugs - pass a User-Agent header to the requests - even nicer reporting #### `package.json` - bump the @babel/parser dep to the latest #### Docs - tweaks based on lints missed due to previous bugs ### Docs: use the github page for velocity.js, the home page has too many errors. Co-Authored-By: Isiah Meadows <contact@isiahmeadows.com>
65 lines
2.1 KiB
JSON
65 lines
2.1 KiB
JSON
{
|
|
"name": "mithril",
|
|
"version": "2.0.4",
|
|
"description": "A framework for building brilliant applications",
|
|
"author": "Leo Horie",
|
|
"license": "MIT",
|
|
"unpkg": "mithril.min.js",
|
|
"repository": "MithrilJS/mithril.js",
|
|
"scripts": {
|
|
"precommit": "lint-staged",
|
|
"watch": "run-p watch:**",
|
|
"watch:js": "node scripts/bundler browser.js -output mithril.js -watch",
|
|
"watch:docs": "node scripts/generate-docs --watch",
|
|
"watch:docs-lint": "node scripts/lint-docs --watch",
|
|
"build": "run-p build:browser build:min build:stream-min",
|
|
"build:browser": "node scripts/bundler browser.js -output mithril.js",
|
|
"build:docs": "node scripts/generate-docs",
|
|
"build:min": "node scripts/bundler browser.js -output mithril.min.js -minify -save",
|
|
"build:stream-min": "node scripts/minify-stream",
|
|
"cleanup:lint": "rimraf .eslintcache .lint-docs-cache",
|
|
"lint": "run-s -cn lint:**",
|
|
"lint:js": "eslint . --cache",
|
|
"lint:docs": "node scripts/lint-docs --cache",
|
|
"perf": "node performance/test-perf.js",
|
|
"pretest": "npm run lint",
|
|
"test": "run-s test:js",
|
|
"test:js": "node ospec/bin/ospec",
|
|
"cover": "istanbul cover --print both ospec/bin/ospec",
|
|
"release": "npm version -m 'v%s'",
|
|
"version": "npm run build && git add mithril.js mithril.min.js stream.js stream.min.js README.md"
|
|
},
|
|
"devDependencies": {
|
|
"@alrra/travis-scripts": "^3.0.1",
|
|
"@babel/parser": "^7.7.5",
|
|
"benchmark": "^2.1.4",
|
|
"chokidar": "^3.2.1",
|
|
"escape-string-regexp": "^2.0.0",
|
|
"eslint": "^6.5.1",
|
|
"gh-pages": "^2.1.1",
|
|
"glob": "^7.1.4",
|
|
"html-minifier": "^4.0.0",
|
|
"istanbul": "^0.4.5",
|
|
"lint-staged": "^9.4.1",
|
|
"locater": "^1.3.0",
|
|
"marked": "^0.7.0",
|
|
"minimist": "^1.2.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"pinpoint": "^1.1.0",
|
|
"request": "^2.88.0",
|
|
"request-promise-native": "^1.0.7",
|
|
"rimraf": "^3.0.0",
|
|
"semver": "^6.3.0",
|
|
"terser": "^4.3.4"
|
|
},
|
|
"bin": {
|
|
"ospec": "./ospec/bin/ospec"
|
|
},
|
|
"lint-staged": {
|
|
"*.js": [
|
|
"eslint . --fix",
|
|
"git add"
|
|
]
|
|
},
|
|
"dependencies": {}
|
|
}
|