Skip to content

Commit

Permalink
support remote font url
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Oct 17, 2024
1 parent 8ad37e2 commit 250ad69
Show file tree
Hide file tree
Showing 10 changed files with 332 additions and 158 deletions.
66 changes: 66 additions & 0 deletions ansi2-wasm/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"organizeImports": {
"enabled": true
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"bracketSpacing": true
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"files": {
"ignore": [
"*.sh",
"*.d.ts",
"*.css",
"target",
"output",
"*.stackdump",
"*.ps1",
"*.yaml",
"*.js",
"./mpv-*/dist/**",
"./mpv-*/es/**",
"node_modules",
".vscode",
".github",
"./common",
"./coverage",
"./html",
"CHANGELOG.json"
]
},
"linter": {
"enabled": true,
"rules": {
"style": {
"useImportType": "off",
"noNonNullAssertion": "off",
"noParameterAssign": "off"
},
"complexity": {
"noBannedTypes": "off"
},
"suspicious": {
"noShadowRestrictedNames": "off",
"noArrayIndexKey": "off",
"noRedeclare": "off",
"noUnsafeDeclarationMerging": "off",
"noExplicitAny": "off",
"noImplicitAnyLet": "off",
"noFallthroughSwitchClause": "off",
"noAssignInExpressions": "off"
},
"correctness": {
"useExhaustiveDependencies": "off"
},
"recommended": true
}
}
}
16 changes: 8 additions & 8 deletions ansi2-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@
"author": "ahaoboy",
"license": "MIT",
"homepage": "https://github.com/ahaoboy/ansi2",
"files": [
"dist",
"bin"
],
"files": ["dist", "bin"],
"repository": {
"type": "git",
"url": "git+https://github.com/ahaoboy/ansi2.git"
},
"scripts": {
"format": "biome format --write ./",
"lint:fix": "biome lint ./ --write --unsafe",
"build:cli": "esbuild ./src-ts/cli.ts --bundle --outdir=./dist --platform=node",
"build": "pnpm run build:wasm && pnpm run build:inline && tsc && pnpm run build:cli",
"build:wasm": "wasm-pack build --target=web --out-dir ./web --release",
Expand All @@ -29,9 +28,10 @@
"svgo": "^3.3.2"
},
"devDependencies": {
"@types/node": "22.5.4",
"esbuild": "0.23.1",
"typescript": "^5.5.4",
"@biomejs/biome": "1.9.3",
"@types/node": "22.7.6",
"esbuild": "0.24.0",
"typescript": "5.6.3",
"wasm-pack-inline": "0.1.1"
}
}
}
Loading

0 comments on commit 250ad69

Please sign in to comment.