Skip to content

Commit 0624602

Browse files
authored
Markdown recursive parser (#172)
1 parent 0f11596 commit 0624602

File tree

8 files changed

+589
-219
lines changed

8 files changed

+589
-219
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![npm](https://img.shields.io/npm/v/hyperparam)](https://www.npmjs.com/package/hyperparam)
44
[![workflow status](https://github.com/hyparam/hyperparam-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/hyparam/hyperparam-cli/actions)
55
[![mit license](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6-
![coverage](https://img.shields.io/badge/Coverage-51-darkred)
6+
![coverage](https://img.shields.io/badge/Coverage-56-darkred)
77

88
This is the hyperparam cli tool.
99

bin/serve.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ function gzip(req, content) {
327327
*/
328328
function openUrl(url) {
329329
switch (process.platform) {
330-
case 'darwin': exec(`open ${url}`); return
331-
case 'win32': exec(`start ${url}`); return
332-
case 'linux': exec(`xdg-open ${url}`); return
333-
default: throw new Error(`unsupported platform ${process.platform}`)
330+
case 'darwin': exec(`open ${url}`); return
331+
case 'win32': exec(`start ${url}`); return
332+
case 'linux': exec(`xdg-open ${url}`); return
333+
default: throw new Error(`unsupported platform ${process.platform}`)
334334
}
335335
}

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default typescript.config(
4646
'eol-last': 'error',
4747
eqeqeq: 'error',
4848
'func-style': ['error', 'declaration'],
49-
indent: ['error', 2],
49+
indent: ['error', 2, { SwitchCase: 1 }],
5050
'no-constant-condition': 'off',
5151
'no-extra-parens': 'error',
5252
'no-multi-spaces': 'error',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"scripts": {
3030
"build:types": "tsc -b",
3131
"build:lib": "vite build -c vite.lib.config.js",
32-
"build:app": "vite build -c vite.app.config.js",
32+
"build:app": "vite build",
3333
"build": "run-s build:lib build:types build:app",
3434
"coverage": "vitest run -c vite.lib.config.js --coverage --coverage.include=src --coverage.include=bin",
3535
"dev": "run-p -l watch:ts watch:vite watch:serve",
@@ -38,7 +38,7 @@
3838
"prepublishOnly": "npm run build",
3939
"serve": "node bin/cli.js",
4040
"preserve": "npm run build",
41-
"test": "vitest run -c vite.lib.config.js",
41+
"test": "vitest run",
4242
"typecheck": "tsc --noEmit",
4343
"url": "run-p -l watch:ts watch:vite watch:url",
4444
"watch:ts": "tsc --watch",

0 commit comments

Comments
 (0)