@marktiderman/genesis-cli 1.16.2 → 1.17.0
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 +158 -8
- package/dist/cli.js +1620 -686
- package/dist/cli.js.map +1 -1
- package/dist/{config-DewJ3DR6.d.ts → config-1jP8eCZy.d.ts} +7 -0
- package/dist/doctor.d.ts +5 -4
- package/dist/doctor.js +577 -215
- package/dist/doctor.js.map +1 -1
- package/dist/expo.d.ts +3 -2
- package/dist/expo.js.map +1 -1
- package/dist/genesis-catalog.json +131 -31
- package/dist/index.d.ts +10 -3
- package/dist/index.js +581 -219
- package/dist/index.js.map +1 -1
- package/dist/starter/__tests__/starter.test.ts +5 -1
- package/dist/starter/tailwind.config.mjs +3 -1
- package/dist/vite.js +577 -215
- package/dist/vite.js.map +1 -1
- package/package.json +9 -5
|
@@ -453,7 +453,11 @@ describe("product demo", () => {
|
|
|
453
453
|
});
|
|
454
454
|
|
|
455
455
|
describe("metro", () => {
|
|
456
|
-
|
|
456
|
+
// Only the starter inside the Genesis monorepo watches the workspace packages. An app made with
|
|
457
|
+
// `genesis init` gets its own Metro config, which installs those packages and watches nothing else.
|
|
458
|
+
const inMonorepo = read("metro.config.js").includes("monorepoRoot");
|
|
459
|
+
|
|
460
|
+
it.runIf(inMonorepo)("watches every Genesis workspace package the app depends on, so an edit to one reloads the app", () => {
|
|
457
461
|
const pkg = JSON.parse(read("package.json")) as { dependencies: Record<string, string> };
|
|
458
462
|
const watched = /\.\.\.\[([^\]]+)\]\.map\(\(name\) => path\.resolve\(monorepoRoot, "packages", name\)\)/.exec(read("metro.config.js"))?.[1] ?? "";
|
|
459
463
|
const names = [...watched.matchAll(/"([^"]+)"/g)].map((m) => m[1]);
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
// installed, so the classes inside them are generated. Metro reads those packages from `src`
|
|
4
4
|
// (their `react-native` export condition), so the app's NativeWind JSX transform applies to them.
|
|
5
5
|
// The Genesis NativeWind preset brings the token classes
|
|
6
|
-
// (role colors and their variables, radius scale, fonts) the ui-native components use.
|
|
6
|
+
// (role colors and their variables, radius scale, fonts) the ui-native components use. With your
|
|
7
|
+
// own brand, use `createGenesisNativewindPreset({ brand })` instead, with the brand you pass to
|
|
8
|
+
// GenesisNativeApp.
|
|
7
9
|
import { fileURLToPath } from "node:url";
|
|
8
10
|
import nativewindPreset from "nativewind/preset";
|
|
9
11
|
import { genesisNativewindContent, genesisNativewindPreset } from "@marktiderman/genesis-design-system/presets/nativewind";
|