@coze-arch/cli 0.0.1-alpha.c53937 → 0.0.1-alpha.c7a03c

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 (75) hide show
  1. package/lib/__templates__/expo/.coze +3 -3
  2. package/lib/__templates__/expo/.cozeproj/scripts/dev_build.sh +46 -0
  3. package/lib/__templates__/expo/.cozeproj/scripts/dev_run.sh +220 -0
  4. package/lib/__templates__/expo/.cozeproj/scripts/prod_build.sh +2 -2
  5. package/lib/__templates__/expo/.cozeproj/scripts/prod_run.sh +3 -4
  6. package/lib/__templates__/expo/.cozeproj/scripts/server_dev_run.sh +45 -0
  7. package/lib/__templates__/expo/README.md +68 -7
  8. package/lib/__templates__/expo/_gitignore +1 -1
  9. package/lib/__templates__/expo/_npmrc +2 -4
  10. package/lib/__templates__/expo/client/app/_layout.tsx +14 -14
  11. package/lib/__templates__/expo/client/app/index.tsx +1 -0
  12. package/lib/__templates__/expo/client/app.config.ts +76 -0
  13. package/lib/__templates__/expo/client/components/ThemedText.tsx +33 -0
  14. package/lib/__templates__/expo/client/components/ThemedView.tsx +38 -0
  15. package/lib/__templates__/expo/client/constants/theme.ts +454 -60
  16. package/lib/__templates__/expo/client/declarations.d.ts +5 -0
  17. package/lib/__templates__/expo/{eslint.config.mjs → client/eslint.config.mjs} +13 -10
  18. package/lib/__templates__/expo/client/hooks/useColorScheme.ts +34 -1
  19. package/lib/__templates__/expo/client/metro.config.js +121 -0
  20. package/lib/__templates__/expo/client/package.json +93 -0
  21. package/lib/__templates__/expo/client/screens/demo/index.tsx +25 -0
  22. package/lib/__templates__/expo/client/screens/demo/styles.ts +28 -0
  23. package/lib/__templates__/expo/client/scripts/install-missing-deps.js +1 -0
  24. package/lib/__templates__/expo/client/tsconfig.json +24 -0
  25. package/lib/__templates__/expo/client/utils/index.ts +22 -0
  26. package/lib/__templates__/expo/eslint-plugins/fontawesome6/index.js +9 -0
  27. package/lib/__templates__/expo/eslint-plugins/fontawesome6/names.js +2486 -0
  28. package/lib/__templates__/expo/eslint-plugins/fontawesome6/rule.js +155 -0
  29. package/lib/__templates__/expo/package.json +8 -107
  30. package/lib/__templates__/expo/pnpm-lock.yaml +451 -867
  31. package/lib/__templates__/expo/pnpm-workspace.yaml +3 -0
  32. package/lib/__templates__/expo/server/build.js +21 -0
  33. package/lib/__templates__/expo/server/package.json +32 -0
  34. package/lib/__templates__/expo/{src → server/src}/index.ts +8 -2
  35. package/lib/__templates__/expo/server/tsconfig.json +24 -0
  36. package/lib/__templates__/expo/template.config.js +1 -0
  37. package/lib/__templates__/expo/tsconfig.json +1 -24
  38. package/lib/__templates__/nextjs/.coze +1 -0
  39. package/lib/__templates__/nextjs/_npmrc +1 -0
  40. package/lib/__templates__/nextjs/next.config.ts +12 -0
  41. package/lib/__templates__/nextjs/package.json +3 -2
  42. package/lib/__templates__/nextjs/pnpm-lock.yaml +13 -5
  43. package/lib/__templates__/nextjs/scripts/prepare.sh +9 -0
  44. package/lib/__templates__/nextjs/src/app/globals.css +109 -89
  45. package/lib/__templates__/nextjs/src/app/layout.tsx +1 -12
  46. package/lib/__templates__/nextjs/src/app/page.tsx +35 -23
  47. package/lib/__templates__/nextjs/src/components/ui/resizable.tsx +29 -22
  48. package/lib/__templates__/nextjs/src/components/ui/sidebar.tsx +228 -230
  49. package/lib/__templates__/nextjs/template.config.js +30 -0
  50. package/lib/__templates__/templates.json +61 -43
  51. package/lib/__templates__/vite/.coze +1 -0
  52. package/lib/__templates__/vite/_npmrc +1 -0
  53. package/lib/__templates__/vite/eslint.config.mjs +9 -0
  54. package/lib/__templates__/vite/package.json +5 -1
  55. package/lib/__templates__/vite/pnpm-lock.yaml +3481 -14
  56. package/lib/__templates__/vite/scripts/prepare.sh +9 -0
  57. package/lib/__templates__/vite/src/main.ts +1 -2
  58. package/lib/__templates__/vite/template.config.js +28 -4
  59. package/lib/cli.js +201 -57
  60. package/package.json +8 -3
  61. package/lib/__templates__/expo/.cozeproj/scripts/deploy_build.sh +0 -109
  62. package/lib/__templates__/expo/.cozeproj/scripts/deploy_run.sh +0 -235
  63. package/lib/__templates__/expo/app.json +0 -63
  64. package/lib/__templates__/expo/babel.config.js +0 -19
  65. package/lib/__templates__/expo/client/app/(tabs)/_layout.tsx +0 -43
  66. package/lib/__templates__/expo/client/app/(tabs)/home.tsx +0 -1
  67. package/lib/__templates__/expo/client/app/(tabs)/index.tsx +0 -7
  68. package/lib/__templates__/expo/client/app/+not-found.tsx +0 -79
  69. package/lib/__templates__/expo/client/index.js +0 -12
  70. package/lib/__templates__/expo/client/screens/home/index.tsx +0 -51
  71. package/lib/__templates__/expo/client/screens/home/styles.ts +0 -60
  72. package/lib/__templates__/expo/metro.config.js +0 -51
  73. package/lib/__templates__/nextjs/.vscode/settings.json +0 -121
  74. package/lib/__templates__/vite/.vscode/settings.json +0 -7
  75. /package/lib/__templates__/expo/{eslint-formatter-simple.mjs → client/eslint-formatter-simple.mjs} +0 -0
@@ -1,46 +1,53 @@
1
- "use client"
1
+ 'use client';
2
2
 
3
- import * as React from "react"
4
- import { GripVerticalIcon } from "lucide-react"
5
- import * as ResizablePrimitive from "react-resizable-panels"
3
+ import { GripVerticalIcon } from 'lucide-react';
4
+ import {
5
+ Group,
6
+ Panel,
7
+ Separator,
8
+ type GroupProps,
9
+ type PanelProps,
10
+ type SeparatorProps,
11
+ } from 'react-resizable-panels';
6
12
 
7
- import { cn } from "@/lib/utils"
13
+ import { cn } from '@/lib/utils';
8
14
 
9
15
  function ResizablePanelGroup({
10
16
  className,
17
+ orientation = 'horizontal',
11
18
  ...props
12
- }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) {
19
+ }: GroupProps) {
13
20
  return (
14
- <ResizablePrimitive.PanelGroup
21
+ <Group
15
22
  data-slot="resizable-panel-group"
23
+ data-panel-group-direction={orientation}
24
+ orientation={orientation}
16
25
  className={cn(
17
- "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
18
- className
26
+ 'flex h-full w-full data-[panel-group-direction=vertical]:flex-col',
27
+ className,
19
28
  )}
20
29
  {...props}
21
30
  />
22
- )
31
+ );
23
32
  }
24
33
 
25
- function ResizablePanel({
26
- ...props
27
- }: React.ComponentProps<typeof ResizablePrimitive.Panel>) {
28
- return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props} />
34
+ function ResizablePanel({ ...props }: PanelProps) {
35
+ return <Panel data-slot="resizable-panel" {...props} />;
29
36
  }
30
37
 
31
38
  function ResizableHandle({
32
39
  withHandle,
33
40
  className,
34
41
  ...props
35
- }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
36
- withHandle?: boolean
42
+ }: SeparatorProps & {
43
+ withHandle?: boolean;
37
44
  }) {
38
45
  return (
39
- <ResizablePrimitive.PanelResizeHandle
46
+ <Separator
40
47
  data-slot="resizable-handle"
41
48
  className={cn(
42
- "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
43
- className
49
+ 'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90',
50
+ className,
44
51
  )}
45
52
  {...props}
46
53
  >
@@ -49,8 +56,8 @@ function ResizableHandle({
49
56
  <GripVerticalIcon className="size-2.5" />
50
57
  </div>
51
58
  )}
52
- </ResizablePrimitive.PanelResizeHandle>
53
- )
59
+ </Separator>
60
+ );
54
61
  }
55
62
 
56
- export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
63
+ export { ResizablePanelGroup, ResizablePanel, ResizableHandle };