@spree/cli 2.4.9 → 3.0.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/dist/index.js +742 -222
- package/dist/templates/dashboard-starter/README.md +1 -1
- package/dist/templates/dashboard-starter/index.html +3 -0
- package/dist/templates/dashboard-starter/package.json +2 -2
- package/dist/templates/dashboard-starter/public/android-chrome-192x192.png +0 -0
- package/dist/templates/dashboard-starter/public/android-chrome-512x512.png +0 -0
- package/dist/templates/dashboard-starter/public/apple-touch-icon.png +0 -0
- package/dist/templates/dashboard-starter/public/favicon-16x16.png +0 -0
- package/dist/templates/dashboard-starter/public/favicon-32x32.png +0 -0
- package/dist/templates/dashboard-starter/public/favicon.ico +0 -0
- package/dist/templates/dashboard-starter/public/favicon.svg +9 -0
- package/dist/templates/dashboard-starter/src/routeTree.gen.ts +1054 -51
- package/dist/templates/dashboard-starter/vite.config.ts +11 -2
- package/dist/templates/seller-dashboard-starter/.env.example +7 -0
- package/dist/templates/seller-dashboard-starter/biome.json +60 -0
- package/dist/templates/seller-dashboard-starter/gitignore.template +3 -0
- package/dist/templates/seller-dashboard-starter/index.html +27 -0
- package/dist/templates/seller-dashboard-starter/package.json +32 -0
- package/dist/templates/seller-dashboard-starter/pnpm-workspace.yaml +11 -0
- package/dist/templates/seller-dashboard-starter/src/main.tsx +29 -0
- package/dist/templates/seller-dashboard-starter/src/plugins.ts +30 -0
- package/dist/templates/seller-dashboard-starter/src/routeTree.gen.ts +590 -0
- package/dist/templates/seller-dashboard-starter/src/styles.css +8 -0
- package/dist/templates/seller-dashboard-starter/tsconfig.json +21 -0
- package/dist/templates/seller-dashboard-starter/vite.config.ts +27 -0
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The host app for the [Spree React Dashboard](https://spreecommerce.org/docs/developer/dashboard/overview) — the admin for your Spree store. `@spree/dashboard` is the actual app shell (routes, chrome, resource pages); this project is your customization point: plugins, your own pages, theming, and deployment config.
|
|
4
4
|
|
|
5
|
-
> **Monorepo note.** The canonical source of this template lives at `packages/dashboard-starter` in [spree/spree](https://github.com/spree/spree), where its Spree dependencies resolve via the pnpm workspace and `@spree/dashboard-plugin-example` is installed as a devDependency — booting it here doubles as the end-to-end test for the plugin pipeline. At build time, `@spree/cli` and `create-spree-app` embed a standalone rendering of it (workspace deps rewritten to the published versions — see `scripts/sync-
|
|
5
|
+
> **Monorepo note.** The canonical source of this template lives at `packages/dashboard-starter` in [spree/spree](https://github.com/spree/spree), where its Spree dependencies resolve via the pnpm workspace and `@spree/dashboard-plugin-example` is installed as a devDependency — booting it here doubles as the end-to-end test for the plugin pipeline. At build time, `@spree/cli` and `create-spree-app` embed a standalone rendering of it (workspace deps rewritten to the published versions — see `scripts/sync-starter.mjs`), which is what `spree add dashboard` and the create-spree-app dashboard prompt scaffold from.
|
|
6
6
|
|
|
7
7
|
## Develop
|
|
8
8
|
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
7
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
|
8
|
+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
6
9
|
<title>Spree Admin</title>
|
|
7
10
|
</head>
|
|
8
11
|
<body>
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"lint:fix": "biome check --fix ."
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@spree/admin-sdk": "
|
|
17
|
-
"@spree/dashboard": "
|
|
16
|
+
"@spree/admin-sdk": "^1.0.0-beta.1",
|
|
17
|
+
"@spree/dashboard": "^1.0.0-beta.1",
|
|
18
18
|
"@tanstack/react-query": "^5.100.9",
|
|
19
19
|
"@tanstack/react-router": "^1.169.2",
|
|
20
20
|
"react": "^19.2.6",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="257" height="257" viewBox="0 0 257 257" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M0.5 60C0.5 26.8629 27.3629 0 60.5 0H196.5C229.637 0 256.5 26.8629 256.5 60V196C256.5 229.137 229.637 256 196.5 256H60.5C27.3629 256 0.5 229.137 0.5 196V60Z" fill="black"/>
|
|
3
|
+
<path d="M0.5 0H256.5H0.5M257 196C257 229.413 229.913 256.5 196.5 256.5H60.5C27.0868 256.5 0 229.413 0 196H1C1 228.861 27.6391 255.5 60.5 255.5H196.5C229.361 255.5 256 228.861 256 196H257ZM60.5 256.5C27.0868 256.5 0 229.413 0 196V60.5C0 27.0868 27.0868 0 60.5 0C27.6391 0 1 26.8629 1 60V196C1 228.861 27.6391 255.5 60.5 255.5V256.5ZM196.5 0C229.913 0 257 27.0868 257 60.5V196C257 229.413 229.913 256.5 196.5 256.5V255.5C229.361 255.5 256 228.861 256 196V60C256 26.8629 229.361 0 196.5 0Z" fill="#EAEAEA"/>
|
|
4
|
+
<path d="M132.462 155.713C125.076 155.713 117.681 155.463 110.309 155.79C103.562 156.088 99.6534 153.264 97.3675 146.954C94.299 138.492 90.4476 130.314 87.3358 121.862C85.9528 118.107 83.8495 116.763 80.0366 117.185C78.0245 117.406 75.8971 117.358 73.9138 116.964C68.9052 115.975 65.899 112.959 65.7934 107.667C65.6973 102.769 69.3326 98.6632 74.5861 98.3607C80.512 98.0149 86.4859 98.0965 92.4213 98.3366C96.6472 98.5047 99.5669 100.738 101.185 104.877C104.768 114.03 108.739 123.029 112.225 132.216C113.503 135.577 115.136 137.004 118.881 136.898C128.106 136.629 137.346 136.605 146.566 136.912C150.369 137.037 151.872 135.525 153.13 132.206C156.535 123.207 160.257 114.328 164.012 105.468C166.634 99.2875 171.23 97.0256 176.594 98.9465C182.106 100.92 184.224 105.525 181.78 111.994C176.93 124.821 171.777 137.537 166.571 150.224C164.905 154.287 161.294 155.713 157.078 155.718C148.871 155.732 140.669 155.718 132.462 155.718V155.713Z" fill="white"/>
|
|
5
|
+
<path d="M122.784 75.1574C122.784 66.0477 122.784 56.9379 122.784 47.833C122.784 42.9108 122.678 37.9886 122.808 33.0712C122.976 26.7899 127.572 21.9349 132.912 22.175C138.338 22.4199 142.223 26.7851 142.266 33.0231C142.348 45.1198 142.29 57.2165 142.29 69.3083C142.29 71.3012 142.29 73.2941 142.29 76.8141C146.435 72.8619 149.618 69.9086 152.706 66.8592C157.417 62.2059 163.502 61.5624 167.454 65.3802C171.689 69.4716 171.574 74.9845 166.69 79.9691C157.941 88.8964 149.1 97.7324 140.081 106.386C135.006 111.255 130.05 111.044 124.921 106.031C116.133 97.4346 107.432 88.7523 98.8021 80.0028C93.779 74.9077 93.5293 69.6829 97.8176 65.5194C101.899 61.5528 107.753 61.913 112.512 66.7968C115.456 69.8174 117.953 73.2797 120.652 76.5452C121.363 76.0842 122.069 75.628 122.779 75.167L122.784 75.1574Z" fill="white"/>
|
|
6
|
+
<path d="M132.249 223.249C121.041 222.654 110.846 219.095 102.308 211.33C97.8898 207.311 97.1982 201.654 100.646 197.707C103.686 194.225 109.818 194.052 114.015 197.332C127.063 207.532 138.391 207.575 150.958 197.476C155.679 193.682 161.173 193.769 164.707 197.687C168.025 201.366 167.295 207.359 163.137 211.354C154.55 219.604 143.995 222.692 132.254 223.244L132.249 223.249Z" fill="white"/>
|
|
7
|
+
<path d="M111.591 165.491C117.594 165.501 122.238 170 122.185 175.753C122.137 181.252 117.018 186.088 111.38 185.958C106.016 185.838 101.195 181.089 101.099 175.845C100.993 170.072 105.651 165.477 111.591 165.486V165.491Z" fill="white"/>
|
|
8
|
+
<path d="M164.298 175.78C164.25 181.178 159.51 185.884 154.036 185.966C148.24 186.052 143.447 181.288 143.524 175.516C143.606 169.427 148.057 165.288 154.295 165.499C160.044 165.696 164.351 170.119 164.303 175.785L164.298 175.78Z" fill="white"/>
|
|
9
|
+
</svg>
|