skillet-shared 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/css/base.css +35 -0
- package/dist/saved-list.js +1 -1
- package/dist/tokens.css +6 -0
- package/package.json +10 -3
package/README.md
CHANGED
|
@@ -5,11 +5,13 @@ Code that bender and videoskillet both ship, as raw TypeScript and CSS.
|
|
|
5
5
|
- **In:** nothing at build time; each app compiles the source itself
|
|
6
6
|
- **Out:** modules under `skillet-shared/<name>`, listed in `exports`
|
|
7
7
|
|
|
8
|
-
Both apps run it through Vite, so imports keep their `.ts` form and need no
|
|
8
|
+
Both apps run it through Vite, so imports keep their `.ts` form and need no
|
|
9
|
+
build step.
|
|
9
10
|
|
|
10
11
|
## Develop
|
|
11
12
|
|
|
12
|
-
- `pnpm test` and `pnpm
|
|
13
|
+
- `pnpm test`, `pnpm typecheck` and `pnpm lint` run the package's own suite
|
|
13
14
|
- In an app, `pnpm link ../skillet-shared` tests an edit before it is tagged
|
|
14
|
-
- Release: `pnpm version patch` (or `minor`). It tests, tags and pushes, and CI
|
|
15
|
+
- Release: `pnpm version patch` (or `minor`). It tests, tags and pushes, and CI
|
|
16
|
+
publishes to npm through trusted publishing
|
|
15
17
|
- Then bump the range in each app
|
package/css/base.css
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8
|
+
*,
|
|
9
|
+
*::before,
|
|
10
|
+
*::after {
|
|
11
|
+
animation-duration: 0.01ms !important;
|
|
12
|
+
animation-iteration-count: 1 !important;
|
|
13
|
+
transition-duration: 0.01ms !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
body {
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
button,
|
|
22
|
+
select,
|
|
23
|
+
input,
|
|
24
|
+
textarea {
|
|
25
|
+
font-family: inherit;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where(button:not(:disabled)) {
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:focus-visible {
|
|
33
|
+
outline: 2px solid var(--fg2);
|
|
34
|
+
outline-offset: 1px;
|
|
35
|
+
}
|
package/dist/saved-list.js
CHANGED
|
@@ -47,7 +47,7 @@ export function readRecent(raw, recentMax, legacy) {
|
|
|
47
47
|
}
|
|
48
48
|
const seen = new Set();
|
|
49
49
|
return raw
|
|
50
|
-
.flatMap(item => {
|
|
50
|
+
.flatMap((item) => {
|
|
51
51
|
const session = readCurrent(item);
|
|
52
52
|
const id = typeof item === 'object' && item !== null && 'id' in item
|
|
53
53
|
? item.id
|
package/dist/tokens.css
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
/* A failed write, or a button whose job is to remove something. */
|
|
40
40
|
--danger: #e08484;
|
|
41
41
|
|
|
42
|
+
--fs-2xs: 0.5625rem; /* 9px */
|
|
42
43
|
--fs-xs: 0.6875rem; /* 11px */
|
|
43
44
|
--fs-sm: 0.75rem; /* 12px */
|
|
44
45
|
--fs: 0.8125rem; /* 13px */
|
|
@@ -62,4 +63,9 @@
|
|
|
62
63
|
/* A control's corner, and a pill's at any height. */
|
|
63
64
|
--ctl-radius: 3px;
|
|
64
65
|
--pill-radius: 999px;
|
|
66
|
+
|
|
67
|
+
--shadow-modal: 0 10px 30px #000b;
|
|
68
|
+
--shadow-pop: 0 8px 28px #000a;
|
|
69
|
+
--scrim: #000a;
|
|
70
|
+
--caps-track: 0.04em;
|
|
65
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillet-shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Code shared by bender and videoskillet",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colin Diesh",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"./components/Footer.astro": "./components/Footer.astro",
|
|
41
41
|
"./components/SocialMeta.astro": "./components/SocialMeta.astro",
|
|
42
42
|
"./components/SignedInHint.astro": "./components/SignedInHint.astro",
|
|
43
|
+
"./base.css": "./css/base.css",
|
|
43
44
|
"./site.css": "./css/site.css",
|
|
44
45
|
"./footer.css": "./css/footer.css",
|
|
45
46
|
"./saved-list": {
|
|
@@ -74,10 +75,13 @@
|
|
|
74
75
|
"packageManager": "pnpm@11.20.0",
|
|
75
76
|
"scripts": {
|
|
76
77
|
"test": "vitest run",
|
|
77
|
-
"typecheck": "
|
|
78
|
+
"typecheck": "tsrs",
|
|
79
|
+
"lint": "oxlint --deny-warnings --report-unused-disable-directives",
|
|
80
|
+
"format": "oxfmt",
|
|
81
|
+
"format:check": "oxfmt --check",
|
|
78
82
|
"build": "tsc -p tsconfig.build.json && cp src/tokens.css dist/",
|
|
79
83
|
"prepack": "pnpm build",
|
|
80
|
-
"preversion": "pnpm typecheck && pnpm test",
|
|
84
|
+
"preversion": "pnpm typecheck && pnpm lint && pnpm test",
|
|
81
85
|
"postversion": "git push --follow-tags"
|
|
82
86
|
},
|
|
83
87
|
"peerDependencies": {
|
|
@@ -88,6 +92,9 @@
|
|
|
88
92
|
"@types/node": "^26.6.5",
|
|
89
93
|
"astro": "^7.4.2",
|
|
90
94
|
"firebase": "13.1.0",
|
|
95
|
+
"oxfmt": "^0.77.0",
|
|
96
|
+
"oxlint": "^1.92.0",
|
|
97
|
+
"tsrs": "0.23.0-ts7.1.0-beta",
|
|
91
98
|
"typescript": "^7.0.2",
|
|
92
99
|
"vitest": "^5.0.5"
|
|
93
100
|
}
|