Skip to content

Commit b5653c9

Browse files
chore: wip
1 parent 290b959 commit b5653c9

14 files changed

Lines changed: 388 additions & 933 deletions

File tree

build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { dts } from 'bun-plugin-dtsx'
22

3+
// eslint-disable-next-line ts/no-top-level-await
34
await Bun.build({
45
entrypoints: ['src/index.ts'],
56
outdir: './dist',

bun.lock

Lines changed: 293 additions & 841 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/config.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,30 @@ import path from 'node:path'
1212

1313
const config: ReverseProxyOptions = {
1414
/**
15-
* The from URL to proxy from.
16-
* Default: localhost:5173
15+
16+
_ The from URL to proxy from.
17+
_ Default: localhost:5173
18+
1719
*/
1820
from: 'localhost:5173',
1921

2022
/**
21-
* The to URL to proxy to.
22-
* Default: stacks.localhost
23+
24+
_ The to URL to proxy to.
25+
_ Default: stacks.localhost
26+
2327
*/
2428
to: 'stacks.localhost',
2529

2630
/**
27-
* The HTTPS settings.
28-
* Default: true
29-
* If set to false, the proxy will use HTTP.
30-
* If set to true, the proxy will use HTTPS.
31-
* If set to an object, the proxy will use HTTPS with the provided settings.
32-
*/
31+
32+
_ The HTTPS settings.
33+
_ Default: true
34+
_ If set to false, the proxy will use HTTP.
35+
_ If set to true, the proxy will use HTTPS.
36+
_ If set to an object, the proxy will use HTTPS with the provided settings.
37+
38+
_/
3339
https: {
3440
domain: 'stacks.localhost',
3541
hostCertCN: 'stacks.localhost',
@@ -48,10 +54,12 @@ const config: ReverseProxyOptions = {
4854
},
4955
5056
/**
51-
* The verbose setting.
52-
* Default: false
53-
* If set to true, the proxy will log more information.
54-
*/
57+
58+
_ The verbose setting.
59+
_ Default: false
60+
_ If set to true, the proxy will log more information.
61+
62+
_/
5563
verbose: false,
5664
}
5765

docs/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,4 @@ features:
2828
- title: "Binary"
2929
icon: "🚀"
3030
details: "Automatically builds a binary for your project out of your CLI."
31-
---
32-
33-
<Home />
31+
---

docs/intro.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ This is an opinionated TypeScript Starter kit to help kick-start development of
1313
It's rather simple to get your package development started:
1414

1515
```bash
16-
# you may use this GitHub template or the following command:
16+
# you may use this GitHub template or the following command
1717
bunx degit stacksjs/ts-starter my-pkg
1818
cd my-pkg
1919

20-
# if you don't have pnpm installed, run `npm i -g pnpm`
20+
# if you don't have pnpm installed, run `npm i -g pnpm`
2121
bun i # install all deps
2222
bun run build # builds the library for production-ready use
2323

docs/sponsors.md

Lines changed: 10 additions & 10 deletions
Large diffs are not rendered by default.

docs/team.md

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,4 @@ layout: page
33
title: Meet the Team
44
description: A team of incredible people.
55
sidebar: false
6-
---
7-
8-
<script setup>
9-
import {
10-
VPTeamPage,
11-
VPTeamPageTitle,
12-
VPTeamPageSection,
13-
VPTeamMembers
14-
} from 'vitepress/theme'
15-
import { core, emeriti } from './_data/team'
16-
</script>
17-
18-
<VPTeamPage>
19-
<VPTeamPageTitle>
20-
<template #title>Meet the Team</template>
21-
<template #lead>
22-
A team of incredible talent & ambition.
23-
</template>
24-
</VPTeamPageTitle>
25-
<VPTeamMembers :members="core" />
26-
<!-- <VPTeamPageSection>
27-
<template #title>Team Emeriti</template>
28-
<template #lead>
29-
Here we honor some no-longer-active team members who have made valuable
30-
contributions in the past.
31-
</template>
32-
<template #members>
33-
<VPTeamMembers size="small" :members="emeriti" />
34-
</template>
35-
</VPTeamPageSection> -->
36-
</VPTeamPage>
6+
---

eslint.config.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

jpgx.d.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
declare module 'jpgx' {
2+
interface DecodeResult {
3+
data: Uint8Array
4+
width: number
5+
height: number
6+
}
7+
interface DecoderOptions {
8+
useTArray?: boolean
9+
colorTransform?: boolean
10+
formatAsRGBA?: boolean
11+
tolerantDecoding?: boolean
12+
maxResolutionInMP?: number
13+
maxMemoryUsageInMB?: number
14+
}
15+
interface EncodeResult {
16+
data: Uint8Array
17+
width: number
18+
height: number
19+
}
20+
export function decode(_jpegData: ArrayLike<number> | ArrayBuffer | Buffer, _opts?: DecoderOptions): DecodeResult
21+
export function encode(_imgData: { data: ArrayLike<number>, width: number, height: number }, _quality?: number): EncodeResult
22+
const jpeg: { decode: typeof decode, encode: typeof encode }
23+
export default jpeg
24+
}

package.json

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
"bugs": {
1414
"url": "https://github.com/stacksjs/ts-ndarray/issues"
1515
},
16-
"keywords": ["typescript", "ts-ndarray", "library", "arrays", "multidimensional"],
16+
"keywords": [
17+
"typescript",
18+
"ts-ndarray",
19+
"library",
20+
"arrays",
21+
"multidimensional"
22+
],
1723
"exports": {
1824
".": {
1925
"types": "./dist/index.d.ts",
@@ -25,14 +31,17 @@
2531
},
2632
"module": "./dist/index.js",
2733
"types": "./dist/index.d.ts",
28-
"files": ["README.md", "dist"],
34+
"files": [
35+
"README.md",
36+
"dist"
37+
],
2938
"scripts": {
3039
"build": "bun --bun build.ts",
3140
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
3241
"prepublishOnly": "bun --bun run build",
3342
"test": "bun test",
34-
"lint": "bunx --bun eslint .",
35-
"lint:fix": "bunx --bun eslint . --fix",
43+
"lint": "bunx --bun pickier lint .",
44+
"lint:fix": "bunx --bun pickier lint . --fix",
3645
"changelog": "bunx logsmith --verbose",
3746
"changelog:generate": "bunx logsmith --output CHANGELOG.md",
3847
"release": "bun run changelog:generate && bunx bumpx prompt --recursive",
@@ -51,7 +60,6 @@
5160
"@stacksjs/bumpx": "^0.2.4",
5261
"@stacksjs/clarity": "^0.3.24",
5362
"@stacksjs/docs": "^0.70.23",
54-
"@stacksjs/eslint-config": "^4.14.0-beta.3",
5563
"@stacksjs/gitlint": "^0.1.5",
5664
"@stacksjs/logsmith": "^0.2.1",
5765
"@types/bun": "^1.3.9",
@@ -61,6 +69,7 @@
6169
"bun-plugin-dtsx": "^0.21.17",
6270
"bunfig": "^0.15.6",
6371
"cwise-compiler": "^1.1.3",
72+
"pickier": "^0.1.20",
6473
"typescript": "^5.9.3",
6574
"unocss": "^66.6.1"
6675
},
@@ -70,7 +79,7 @@
7079
"git-hooks": {
7180
"pre-commit": {
7281
"staged-lint": {
73-
"*.{js,ts,json,yaml,yml,md}": "bunx --bun eslint --fix"
82+
"*.{js,ts,json,yaml,yml,md}": "bunx --bun pickier lint --fix"
7483
}
7584
},
7685
"commit-msg": "bunx gitlint --edit .git/COMMIT_EDITMSG"

0 commit comments

Comments
 (0)