@rxova/brand 0.1.1 → 0.1.2
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 +13 -2
- package/package.json +5 -29
package/README.md
CHANGED
|
@@ -98,9 +98,14 @@ once and gets both modes for free.
|
|
|
98
98
|
|
|
99
99
|
## Development
|
|
100
100
|
|
|
101
|
+
The package lives in a two-package workspace — itself and `apps/preview`, a
|
|
102
|
+
Starlight site that renders it. Run everything from the repo root; Turbo fans the
|
|
103
|
+
tasks out and replays whatever the commit did not touch.
|
|
104
|
+
|
|
101
105
|
```sh
|
|
102
106
|
pnpm install
|
|
103
|
-
pnpm run
|
|
107
|
+
pnpm run dev # the preview site — the only place to *look* at the theme
|
|
108
|
+
pnpm run verify # audit, dedupe, format, lint, types, astro check, cards, contract
|
|
104
109
|
pnpm run og # re-render the social cards after a palette or tagline change
|
|
105
110
|
```
|
|
106
111
|
|
|
@@ -119,7 +124,13 @@ are perfectly correct.
|
|
|
119
124
|
|
|
120
125
|
### Trying a change in a consumer
|
|
121
126
|
|
|
122
|
-
|
|
127
|
+
`apps/preview` links the package by `workspace:*`, so most changes can be seen
|
|
128
|
+
immediately with `pnpm run dev`. It cannot catch a `files` omission, though —
|
|
129
|
+
the link resolves to the source directory, where every file exists. That is what
|
|
130
|
+
`check:exports` is for.
|
|
131
|
+
|
|
132
|
+
For a real external consumer (the landing, a docs site), iterate through snapshot
|
|
133
|
+
releases:
|
|
123
134
|
|
|
124
135
|
1. Add a changeset (`pnpm exec changeset`).
|
|
125
136
|
2. Run the **Snapshot** workflow — publishes `0.x.y-next.N` to the `next` tag.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxova/brand",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Design tokens, Starlight theme and shared site chrome for rxova.org",
|
|
6
6
|
"keywords": [
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"homepage": "https://rxova.org",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/rxova/brand.git"
|
|
18
|
+
"url": "git+https://github.com/rxova/brand.git",
|
|
19
|
+
"directory": "packages/brand"
|
|
19
20
|
},
|
|
20
21
|
"bugs": "https://github.com/rxova/brand/issues",
|
|
21
22
|
"engines": {
|
|
@@ -54,42 +55,17 @@
|
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@astrojs/check": "^0.9.9",
|
|
56
57
|
"@astrojs/starlight": "^0.41.4",
|
|
57
|
-
"@changesets/changelog-github": "^0.7.0",
|
|
58
|
-
"@changesets/cli": "^2.29.7",
|
|
59
|
-
"@commitlint/cli": "^21.2.1",
|
|
60
|
-
"@commitlint/config-conventional": "^21.2.0",
|
|
61
|
-
"@eslint/js": "^10.0.1",
|
|
62
58
|
"@resvg/resvg-js": "^2.6.2",
|
|
63
59
|
"@types/node": "^26.1.1",
|
|
64
60
|
"astro": "^7.1.3",
|
|
65
|
-
"eslint": "^10.7.0",
|
|
66
|
-
"eslint-plugin-astro": "^1.3.0",
|
|
67
|
-
"globals": "^17.6.0",
|
|
68
|
-
"husky": "^9.1.7",
|
|
69
|
-
"lint-staged": "^17.2.0",
|
|
70
|
-
"prettier": "^3.9.6",
|
|
71
|
-
"prettier-plugin-astro": "^0.14.0",
|
|
72
61
|
"satori": "^0.29.0",
|
|
73
|
-
"typescript": "6.0.3"
|
|
74
|
-
"typescript-eslint": "^8.65.0"
|
|
75
|
-
},
|
|
76
|
-
"lint-staged": {
|
|
77
|
-
"*.{ts,tsx,astro,mjs,js}": [
|
|
78
|
-
"eslint --fix",
|
|
79
|
-
"prettier --write"
|
|
80
|
-
],
|
|
81
|
-
"*.{json,jsonc,css,md,mdx,yaml,yml}": "prettier --write"
|
|
62
|
+
"typescript": "6.0.3"
|
|
82
63
|
},
|
|
83
64
|
"scripts": {
|
|
84
|
-
"lint": "eslint .",
|
|
85
|
-
"lint:fix": "eslint . --fix",
|
|
86
|
-
"format": "prettier --write .",
|
|
87
|
-
"format:check": "prettier --check .",
|
|
88
65
|
"typecheck": "tsc --noEmit",
|
|
89
66
|
"check:astro": "astro check",
|
|
90
67
|
"check:exports": "node scripts/check-exports.mjs",
|
|
91
68
|
"og": "node scripts/generate-og.mjs",
|
|
92
|
-
"check:og": "node scripts/generate-og.mjs --check"
|
|
93
|
-
"verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run check:astro && pnpm run check:og && pnpm run check:exports"
|
|
69
|
+
"check:og": "node scripts/generate-og.mjs --check"
|
|
94
70
|
}
|
|
95
71
|
}
|