@flipova/foundation 1.10.1 → 1.12.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.
Files changed (156) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +20 -94
  3. package/dist/chunk-4KNPSB67.js +423 -0
  4. package/dist/chunk-4KNPSB67.js.map +1 -0
  5. package/dist/chunk-4NPMHFKO.mjs +6609 -0
  6. package/dist/chunk-4NPMHFKO.mjs.map +1 -0
  7. package/dist/chunk-5LRV4YZO.js +7024 -0
  8. package/dist/chunk-5LRV4YZO.js.map +1 -0
  9. package/dist/chunk-5N5HC4ZA.mjs +3 -0
  10. package/dist/{chunk-HS2UOQU4.mjs.map → chunk-5N5HC4ZA.mjs.map} +1 -1
  11. package/dist/chunk-CKQBSIBR.mjs +6900 -0
  12. package/dist/chunk-CKQBSIBR.mjs.map +1 -0
  13. package/dist/chunk-DJP3T7OD.mjs +413 -0
  14. package/dist/chunk-DJP3T7OD.mjs.map +1 -0
  15. package/dist/chunk-DNV5UBNF.mjs +3 -0
  16. package/dist/chunk-DNV5UBNF.mjs.map +1 -0
  17. package/dist/chunk-IJTI6EX4.js +4 -0
  18. package/dist/{chunk-2VLBOYBU.js.map → chunk-IJTI6EX4.js.map} +1 -1
  19. package/dist/{chunk-D4QJYQOK.js → chunk-JYGNIQUU.js} +49 -44
  20. package/dist/chunk-JYGNIQUU.js.map +1 -0
  21. package/dist/{chunk-YTD4AWV2.mjs → chunk-NYZH4C27.mjs} +42 -37
  22. package/dist/chunk-NYZH4C27.mjs.map +1 -0
  23. package/dist/chunk-O7UP2OZR.js +6705 -0
  24. package/dist/chunk-O7UP2OZR.js.map +1 -0
  25. package/dist/chunk-OXKOGLXE.js +4 -0
  26. package/dist/chunk-OXKOGLXE.js.map +1 -0
  27. package/dist/chunk-RPO7RKXJ.js +428 -0
  28. package/dist/chunk-RPO7RKXJ.js.map +1 -0
  29. package/dist/chunk-TZUCBWHN.mjs +422 -0
  30. package/dist/chunk-TZUCBWHN.mjs.map +1 -0
  31. package/dist/cli/ds.js +8334 -0
  32. package/dist/cli/flipova.js +5021 -0
  33. package/dist/config/index.d.mts +65 -70
  34. package/dist/config/index.d.ts +65 -70
  35. package/dist/config/index.js +6 -6
  36. package/dist/config/index.mjs +1 -1
  37. package/dist/{index-D4qJw_Et.d.mts → index-CpBqkIpd.d.mts} +25 -2
  38. package/dist/{index-D4qJw_Et.d.ts → index-CpBqkIpd.d.ts} +25 -2
  39. package/dist/index.d.mts +7 -5
  40. package/dist/index.d.ts +7 -5
  41. package/dist/index.js +499 -298
  42. package/dist/index.mjs +5 -4
  43. package/dist/registry/index.d.mts +9693 -0
  44. package/dist/registry/index.d.ts +9693 -0
  45. package/dist/registry/index.js +388 -0
  46. package/dist/registry/index.mjs +3 -0
  47. package/dist/theme/index.d.mts +46 -49
  48. package/dist/theme/index.d.ts +46 -49
  49. package/dist/theme/index.js +7 -39
  50. package/dist/theme/index.mjs +1 -1
  51. package/dist/tokens/index.d.mts +265 -130
  52. package/dist/tokens/index.d.ts +265 -130
  53. package/dist/tokens/index.js +15 -31
  54. package/dist/tokens/index.mjs +1 -1
  55. package/dist/types/index.d.mts +200 -0
  56. package/dist/types/index.d.ts +200 -0
  57. package/dist/types/index.js +4 -0
  58. package/dist/types/index.js.map +1 -0
  59. package/dist/types/index.mjs +3 -0
  60. package/dist/types/index.mjs.map +1 -0
  61. package/dist/ui/index.d.mts +2981 -0
  62. package/dist/ui/index.d.ts +2981 -0
  63. package/dist/ui/index.js +729 -0
  64. package/dist/ui/index.js.map +1 -0
  65. package/dist/ui/index.mjs +4 -0
  66. package/dist/ui/index.mjs.map +1 -0
  67. package/package.json +63 -31
  68. package/dist/chunk-2VLBOYBU.js +0 -4
  69. package/dist/chunk-32VWREEH.mjs +0 -8256
  70. package/dist/chunk-32VWREEH.mjs.map +0 -1
  71. package/dist/chunk-3RJREGCN.js +0 -8407
  72. package/dist/chunk-3RJREGCN.js.map +0 -1
  73. package/dist/chunk-D4QJYQOK.js.map +0 -1
  74. package/dist/chunk-HS2UOQU4.mjs +0 -3
  75. package/dist/chunk-IKVONTJC.mjs +0 -397
  76. package/dist/chunk-IKVONTJC.mjs.map +0 -1
  77. package/dist/chunk-RRV2Q4SS.mjs +0 -655
  78. package/dist/chunk-RRV2Q4SS.mjs.map +0 -1
  79. package/dist/chunk-RUZBEFDO.js +0 -669
  80. package/dist/chunk-RUZBEFDO.js.map +0 -1
  81. package/dist/chunk-UBZMVSIN.js +0 -412
  82. package/dist/chunk-UBZMVSIN.js.map +0 -1
  83. package/dist/chunk-YTD4AWV2.mjs.map +0 -1
  84. package/dist/layout/index.d.mts +0 -2529
  85. package/dist/layout/index.d.ts +0 -2529
  86. package/dist/layout/index.js +0 -512
  87. package/dist/layout/index.mjs +0 -3
  88. package/dist/spacing-CXUulLF9.d.mts +0 -128
  89. package/dist/spacing-CXUulLF9.d.ts +0 -128
  90. package/dist/studio-v2/cli/index.js +0 -96
  91. package/dist/web/index.js +0 -5816
  92. package/dist/web/index.js.map +0 -1
  93. package/dist/web/index.mjs +0 -5708
  94. package/dist/web/index.mjs.map +0 -1
  95. package/studio-v2/apps/web/CHANGELOG.md +0 -7
  96. package/studio-v2/apps/web/LICENSE +0 -21
  97. package/studio-v2/apps/web/README.md +0 -56
  98. package/studio-v2/apps/web/dist/+not-found.html +0 -793
  99. package/studio-v2/apps/web/dist/_expo/.routes.json +0 -3
  100. package/studio-v2/apps/web/dist/_expo/static/css/global-a4717de456877faacb88ee482aa99653.css +0 -1
  101. package/studio-v2/apps/web/dist/_expo/static/js/web/entry-5d96588cc8f2ee5c00754cef9ac6481d.js +0 -15648
  102. package/studio-v2/apps/web/dist/_expo/static/js/web/index-470f33f64d8c4f7b8d8da2632b2959c2.js +0 -4
  103. package/studio-v2/apps/web/dist/_expo/static/js/web/index-f7fcd21ae9d8dacf4c88ea5796614af0.js +0 -3
  104. package/studio-v2/apps/web/dist/_sitemap.html +0 -793
  105. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/AntDesign.3f78af31cca60105799838a1a7a59fbd.ttf +0 -0
  106. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Entypo.31b5ffea3daddc69dd01a1f3d6cf63c5.ttf +0 -0
  107. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/EvilIcons.140c53a7643ea949007aa9a282153849.ttf +0 -0
  108. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Feather.ca4b48e04dc1ce10bfbddb262c8b835f.ttf +0 -0
  109. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome.b06871f281fee6b241d60582ae9369b9.ttf +0 -0
  110. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.3b89dd103490708d19a95adcae52210e.ttf +0 -0
  111. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.1f77739ca9ff2188b539c36f30ffa2be.ttf +0 -0
  112. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Solid.605ed7926cf39a2ad5ec2d1f9d391d3d.ttf +0 -0
  113. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Brands.56c8d80832e37783f12c05db7c8849e2.ttf +0 -0
  114. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Regular.370dd5af19f8364907b6e2c41f45dbbf.ttf +0 -0
  115. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Solid.adec7d6f310bc577f05e8fe06a5daccf.ttf +0 -0
  116. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Fontisto.b49ae8ab2dbccb02c4d11caaacf09eab.ttf +0 -0
  117. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Foundation.e20945d7c929279ef7a6f1db184a4470.ttf +0 -0
  118. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Ionicons.b4eb097d35f44ed943676fd56f6bdc51.ttf +0 -0
  119. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.6e435534bd35da5fef04168860a9b8fa.ttf +0 -0
  120. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialIcons.4e85bc9ebe07e0340c9c4fc2f6c38908.ttf +0 -0
  121. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Octicons.871378c6eab492a3e689a9385dc45a12.ttf +0 -0
  122. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/SimpleLineIcons.d2285965fe34b05465047401b8595dd0.ttf +0 -0
  123. package/studio-v2/apps/web/dist/assets/___node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Zocial.1681f34aaca71b8dfb70756bca331eb2.ttf +0 -0
  124. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/drawer/lib/module/views/assets/toggle-drawer-icon.ae74bb20586a731af545e6b00fe14a09.png +0 -0
  125. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
  126. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
  127. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
  128. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
  129. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
  130. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
  131. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
  132. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
  133. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
  134. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
  135. package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
  136. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png +0 -0
  137. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png +0 -0
  138. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png +0 -0
  139. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png +0 -0
  140. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png +0 -0
  141. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
  142. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
  143. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
  144. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
  145. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
  146. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
  147. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
  148. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
  149. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
  150. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
  151. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
  152. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png +0 -0
  153. package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png +0 -0
  154. package/studio-v2/apps/web/dist/index.html +0 -793
  155. /package/dist/{layout → registry}/index.js.map +0 -0
  156. /package/dist/{layout → registry}/index.mjs.map +0 -0
@@ -1,128 +0,0 @@
1
- declare const breakpoints: {
2
- readonly xs: 0;
3
- readonly sm: 576;
4
- readonly md: 768;
5
- readonly lg: 992;
6
- readonly xl: 1200;
7
- readonly "2xl": 1440;
8
- };
9
- type Breakpoint = keyof typeof breakpoints;
10
-
11
- declare const radii: {
12
- readonly none: 0;
13
- readonly xs: 2;
14
- readonly sm: 4;
15
- readonly base: 6;
16
- readonly md: 8;
17
- readonly lg: 12;
18
- readonly xl: 16;
19
- readonly "2xl": 20;
20
- readonly "3xl": 24;
21
- readonly full: 9999;
22
- };
23
- type RadiusToken = keyof typeof radii;
24
-
25
- declare const shadows: {
26
- readonly none: {
27
- readonly shadowColor: "#000";
28
- readonly shadowOffset: {
29
- readonly width: 0;
30
- readonly height: 0;
31
- };
32
- readonly shadowOpacity: 0;
33
- readonly shadowRadius: 0;
34
- readonly elevation: 0;
35
- };
36
- readonly sm: {
37
- readonly shadowColor: "#000";
38
- readonly shadowOffset: {
39
- readonly width: 0;
40
- readonly height: 1;
41
- };
42
- readonly shadowOpacity: 0.05;
43
- readonly shadowRadius: 2;
44
- readonly elevation: 2;
45
- };
46
- readonly base: {
47
- readonly shadowColor: "#000";
48
- readonly shadowOffset: {
49
- readonly width: 0;
50
- readonly height: 2;
51
- };
52
- readonly shadowOpacity: 0.1;
53
- readonly shadowRadius: 4;
54
- readonly elevation: 3;
55
- };
56
- readonly md: {
57
- readonly shadowColor: "#000";
58
- readonly shadowOffset: {
59
- readonly width: 0;
60
- readonly height: 4;
61
- };
62
- readonly shadowOpacity: 0.15;
63
- readonly shadowRadius: 8;
64
- readonly elevation: 5;
65
- };
66
- readonly lg: {
67
- readonly shadowColor: "#000";
68
- readonly shadowOffset: {
69
- readonly width: 0;
70
- readonly height: 8;
71
- };
72
- readonly shadowOpacity: 0.2;
73
- readonly shadowRadius: 16;
74
- readonly elevation: 8;
75
- };
76
- readonly xl: {
77
- readonly shadowColor: "#000";
78
- readonly shadowOffset: {
79
- readonly width: 0;
80
- readonly height: 12;
81
- };
82
- readonly shadowOpacity: 0.25;
83
- readonly shadowRadius: 24;
84
- readonly elevation: 12;
85
- };
86
- readonly "2xl": {
87
- readonly shadowColor: "#000";
88
- readonly shadowOffset: {
89
- readonly width: 0;
90
- readonly height: 16;
91
- };
92
- readonly shadowOpacity: 0.3;
93
- readonly shadowRadius: 32;
94
- readonly elevation: 16;
95
- };
96
- };
97
- type ShadowToken = keyof typeof shadows;
98
-
99
- declare const spacing: {
100
- readonly 0: 0;
101
- readonly 1: 4;
102
- readonly 2: 8;
103
- readonly 3: 12;
104
- readonly 4: 16;
105
- readonly 5: 20;
106
- readonly 6: 24;
107
- readonly 7: 28;
108
- readonly 8: 32;
109
- readonly 10: 40;
110
- readonly 12: 48;
111
- readonly 14: 56;
112
- readonly 16: 64;
113
- readonly 20: 80;
114
- readonly 24: 96;
115
- readonly 28: 112;
116
- readonly 32: 128;
117
- readonly 36: 144;
118
- readonly 40: 160;
119
- readonly 44: 176;
120
- readonly 48: 192;
121
- readonly 52: 208;
122
- readonly 56: 224;
123
- readonly 60: 240;
124
- readonly 64: 256;
125
- };
126
- type SpacingToken = keyof typeof spacing;
127
-
128
- export { type Breakpoint as B, type RadiusToken as R, type ShadowToken as S, type SpacingToken as a, breakpoints as b, spacing as c, radii as r, shadows as s };
@@ -1,96 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
18
- // If the importer is in node compatibility mode or this is not an ESM
19
- // file that has been converted to a CommonJS file using a Babel-
20
- // compatible transform (i.e. "__esModule" has not been set), then set
21
- // "default" to the CommonJS "module.exports" for node compatibility.
22
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
- mod
24
- ));
25
-
26
- // studio-v2/cli/index.ts
27
- var import_child_process = require("child_process");
28
- var import_path = __toESM(require("path"));
29
- var import_fs = __toESM(require("fs"));
30
- var args = process.argv.slice(2);
31
- var isDev = args.includes("--dev");
32
- var portArg = args.indexOf("--port");
33
- var port = portArg !== -1 ? parseInt(args[portArg + 1], 10) : 4200;
34
- var isWin = /^win/.test(process.platform);
35
- function findStudioAppDir() {
36
- const candidates = [
37
- import_path.default.resolve(__dirname, "../../../studio-v2/apps/web"),
38
- import_path.default.resolve(process.cwd(), "studio-v2/apps/web")
39
- ];
40
- for (const dir of candidates) {
41
- if (import_fs.default.existsSync(import_path.default.join(dir, "app.json"))) return dir;
42
- }
43
- return candidates[0];
44
- }
45
- var studioAppDir = findStudioAppDir();
46
- console.log(`
47
- \u2726 Flipova Studio V2`);
48
- if (isDev) {
49
- console.log(` Mode: development (hot-reload)`);
50
- console.log(` URL: http://localhost:${port}
51
- `);
52
- const expoProcess = (0, import_child_process.spawn)(
53
- isWin ? "npx.cmd" : "npx",
54
- ["expo", "start", "--web", "--port", String(port)],
55
- {
56
- cwd: studioAppDir,
57
- stdio: "inherit",
58
- shell: isWin,
59
- env: { ...process.env, EXPO_NO_TELEMETRY: "1" }
60
- }
61
- );
62
- expoProcess.on("error", (err) => {
63
- console.error("Failed to start Expo:", err.message);
64
- process.exit(1);
65
- });
66
- expoProcess.on("exit", (code) => process.exit(code ?? 0));
67
- } else {
68
- const distDir = import_path.default.join(studioAppDir, "dist");
69
- if (!import_fs.default.existsSync(distDir) || !import_fs.default.existsSync(import_path.default.join(distDir, "index.html"))) {
70
- console.error(`
71
- \u2717 Studio not built yet.
72
- `);
73
- console.error(` Run first: npm run build:studio-v2`);
74
- console.error(` Or use: npx flipova-studio --dev
75
- `);
76
- process.exit(1);
77
- }
78
- const expressPath = (() => {
79
- try {
80
- return require.resolve("express", { paths: [import_path.default.resolve(__dirname, "../../..")] });
81
- } catch {
82
- return require.resolve("express");
83
- }
84
- })();
85
- const express = require(expressPath);
86
- const app = express();
87
- app.use(express.static(distDir));
88
- app.get("*", (_req, res) => {
89
- res.sendFile(import_path.default.join(distDir, "index.html"));
90
- });
91
- app.listen(port, () => {
92
- console.log(` Mode: production (static)`);
93
- console.log(` URL: http://localhost:${port}
94
- `);
95
- });
96
- }