handoff-app 2.0.0-1 → 2.0.0-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 +39 -17
- package/config/docs/foundations/colors/guidelines.md +9 -0
- package/config/docs/foundations/effects/guidelines.md +9 -0
- package/config/docs/foundations/effects/resources.md +9 -0
- package/config/docs/foundations/grid.md +10 -0
- package/config/docs/foundations/icons/guidelines.md +9 -0
- package/config/docs/foundations/images/guidelines.md +9 -0
- package/config/docs/foundations/images/resources.md +9 -0
- package/config/docs/foundations/images.md +10 -0
- package/config/docs/foundations/logo/resources.md +9 -0
- package/config/docs/foundations/typography/guidelines.md +9 -0
- package/config/docs/foundations/typography/resources.md +9 -0
- package/config/docs/foundations.md +5 -3
- package/dist/app-builder/build.js +89 -46
- package/dist/app-builder/client-config.js +5 -5
- package/dist/app-builder/paths.js +7 -9
- package/dist/app-builder/static-export.js +6 -6
- package/dist/app-builder/vercel-output.js +2 -2
- package/dist/artifacts/url.d.ts +7 -7
- package/dist/artifacts/url.js +7 -7
- package/dist/cli/create.js +48 -3
- package/dist/commands/checkout/index.d.ts +6 -6
- package/dist/commands/checkout/index.js +8 -12
- package/dist/commands/publish/index.d.ts +6 -5
- package/dist/commands/publish/index.js +8 -11
- package/dist/commands/utils.d.ts +6 -0
- package/dist/commands/utils.js +9 -1
- package/dist/index.d.ts +12 -8
- package/dist/index.js +26 -10
- package/dist/registry/asset-storage/resolve.d.ts +1 -1
- package/dist/registry/asset-storage/resolve.js +1 -1
- package/dist/registry/checkout/index.d.ts +10 -5
- package/dist/registry/checkout/index.js +62 -11
- package/dist/registry/client.d.ts +2 -1
- package/dist/registry/client.js +8 -0
- package/dist/registry/db/client.d.ts +9 -9
- package/dist/registry/db/client.js +7 -7
- package/dist/registry/db/{adapter.d.ts → driver.d.ts} +16 -14
- package/dist/registry/db/{adapter.js → driver.js} +17 -15
- package/dist/registry/db/index.d.ts +1 -1
- package/dist/registry/db/index.js +9 -9
- package/dist/registry/db/migrate.d.ts +1 -1
- package/dist/registry/db/migrate.js +5 -5
- package/dist/registry/publish/index.d.ts +8 -1
- package/dist/registry/publish/index.js +88 -2
- package/dist/registry/transfer.d.ts +13 -0
- package/dist/types/config.d.ts +7 -3
- package/drizzle.config.ts +1 -1
- package/package.json +1 -1
- package/src/app/components/Foundations/DisplayLogo.tsx +3 -3
- package/src/app/lib/docs-api/runtime-config.ts +10 -10
- package/src/app/lib/registry-api/transfer.ts +29 -0
- package/src/app/lib/registry-connection.ts +2 -2
- package/src/app/next.config.mjs +1 -1
- package/src/app/pages/api/registry/transfer/[kind]/index.ts +21 -0
- package/src/app/pages/foundations/icons/index.tsx +2 -2
- package/src/app/pages/foundations/icons/{[name] → library/[name]}/index.tsx +6 -6
- package/src/app-builder/build.ts +75 -55
- package/src/app-builder/client-config.ts +3 -3
- package/src/app-builder/paths.ts +7 -9
- package/src/app-builder/static-export.ts +6 -6
- package/src/app-builder/vercel-output.ts +2 -2
- package/src/artifacts/url.ts +7 -7
- package/src/cli/create.ts +58 -3
- package/src/commands/checkout/index.ts +10 -15
- package/src/commands/publish/index.ts +10 -14
- package/src/commands/utils.ts +12 -0
- package/src/index.ts +26 -12
- package/src/registry/asset-storage/resolve.ts +1 -1
- package/src/registry/checkout/index.ts +73 -11
- package/src/registry/client.ts +7 -1
- package/src/registry/db/client.ts +12 -12
- package/src/registry/db/{adapter.ts → driver.ts} +19 -17
- package/src/registry/db/index.ts +4 -4
- package/src/registry/db/migrate.ts +5 -5
- package/src/registry/publish/index.ts +100 -2
- package/src/registry/transfer.ts +14 -0
- package/src/types/config.ts +7 -3
- package/templates/default/README.md.tpl +40 -1
- package/templates/default/gitignore.tpl +18 -3
- package/templates/default/handoff.config.js.tpl +14 -0
- package/templates/default/handoff.config.ts.tpl +14 -0
- package/templates/default/handoff.config.with-examples.js.tpl +14 -0
- package/templates/default/handoff.config.with-examples.ts.tpl +14 -0
- package/templates/default/package.json.tpl +2 -1
- package/templates/default/vercel.json.tpl +4 -0
|
@@ -61,6 +61,20 @@ const config = {
|
|
|
61
61
|
// patterns: ["patterns"],
|
|
62
62
|
// },
|
|
63
63
|
|
|
64
|
+
// Registry deployment settings, used by `build --target registry` and `db:migrate`.
|
|
65
|
+
// These are only needed when publishing to a hosted registry. The default workspace mode
|
|
66
|
+
// doesn't use a database, so these should stay commented out unless deploying one.
|
|
67
|
+
// Handoff runs on PostgreSQL, and `driver` just picks the connection driver to use, not
|
|
68
|
+
// the database engine. Secrets are referenced by env var name and never written here.
|
|
69
|
+
// runtime: {
|
|
70
|
+
// mode: "registry",
|
|
71
|
+
// registry: {
|
|
72
|
+
// databaseUrlEnv: "DATABASE_URL",
|
|
73
|
+
// apiTokenEnv: "HANDOFF_REGISTRY_API_TOKEN",
|
|
74
|
+
// database: { driver: "pg" }, // 'pg' | 'neon'
|
|
75
|
+
// },
|
|
76
|
+
// },
|
|
77
|
+
|
|
64
78
|
// Optional handoff-docgen settings used by component docs generation
|
|
65
79
|
// reactDocgen: {
|
|
66
80
|
// maxDepth: 7,
|
|
@@ -59,6 +59,20 @@ export default defineConfig({
|
|
|
59
59
|
// patterns: ["patterns"],
|
|
60
60
|
// },
|
|
61
61
|
|
|
62
|
+
// Registry deployment settings, used by `build --target registry` and `db:migrate`.
|
|
63
|
+
// These are only needed when publishing to a hosted registry. The default workspace mode
|
|
64
|
+
// doesn't use a database, so these should stay commented out unless deploying one.
|
|
65
|
+
// Handoff runs on PostgreSQL, and `driver` just picks the connection driver to use, not
|
|
66
|
+
// the database engine. Secrets are referenced by env var name and never written here.
|
|
67
|
+
// runtime: {
|
|
68
|
+
// mode: "registry",
|
|
69
|
+
// registry: {
|
|
70
|
+
// databaseUrlEnv: "DATABASE_URL",
|
|
71
|
+
// apiTokenEnv: "HANDOFF_REGISTRY_API_TOKEN",
|
|
72
|
+
// database: { driver: "pg" }, // 'pg' | 'neon'
|
|
73
|
+
// },
|
|
74
|
+
// },
|
|
75
|
+
|
|
62
76
|
// Optional handoff-docgen settings used by component docs generation
|
|
63
77
|
// reactDocgen: {
|
|
64
78
|
// maxDepth: 7,
|
|
@@ -60,6 +60,20 @@ const config = {
|
|
|
60
60
|
// patterns: [],
|
|
61
61
|
},
|
|
62
62
|
|
|
63
|
+
// Registry deployment settings, used by `build --target registry` and `db:migrate`.
|
|
64
|
+
// These are only needed when publishing to a hosted registry. The default workspace mode
|
|
65
|
+
// doesn't use a database, so these should stay commented out unless deploying one.
|
|
66
|
+
// Handoff runs on PostgreSQL, and `driver` just picks the connection driver to use, not
|
|
67
|
+
// the database engine. Secrets are referenced by env var name and never written here.
|
|
68
|
+
// runtime: {
|
|
69
|
+
// mode: "registry",
|
|
70
|
+
// registry: {
|
|
71
|
+
// databaseUrlEnv: "DATABASE_URL",
|
|
72
|
+
// apiTokenEnv: "HANDOFF_REGISTRY_API_TOKEN",
|
|
73
|
+
// database: { driver: "pg" }, // 'pg' | 'neon'
|
|
74
|
+
// },
|
|
75
|
+
// },
|
|
76
|
+
|
|
63
77
|
// Optional handoff-docgen settings used by component docs generation
|
|
64
78
|
// reactDocgen: {
|
|
65
79
|
// maxDepth: 7,
|
|
@@ -58,6 +58,20 @@ export default defineConfig({
|
|
|
58
58
|
// patterns: [],
|
|
59
59
|
},
|
|
60
60
|
|
|
61
|
+
// Registry deployment settings, used by `build --target registry` and `db:migrate`.
|
|
62
|
+
// These are only needed when publishing to a hosted registry. The default workspace mode
|
|
63
|
+
// doesn't use a database, so these should stay commented out unless deploying one.
|
|
64
|
+
// Handoff runs on PostgreSQL, and `driver` just picks the connection driver to use, not
|
|
65
|
+
// the database engine. Secrets are referenced by env var name and never written here.
|
|
66
|
+
// runtime: {
|
|
67
|
+
// mode: "registry",
|
|
68
|
+
// registry: {
|
|
69
|
+
// databaseUrlEnv: "DATABASE_URL",
|
|
70
|
+
// apiTokenEnv: "HANDOFF_REGISTRY_API_TOKEN",
|
|
71
|
+
// database: { driver: "pg" }, // 'pg' | 'neon'
|
|
72
|
+
// },
|
|
73
|
+
// },
|
|
74
|
+
|
|
61
75
|
// Optional handoff-docgen settings used by component docs generation
|
|
62
76
|
// reactDocgen: {
|
|
63
77
|
// maxDepth: 7,
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "handoff-app start",
|
|
8
8
|
"dev": "handoff-app dev",
|
|
9
|
+
"fetch": "handoff-app fetch",
|
|
9
10
|
"build": "handoff-app build",
|
|
10
|
-
"
|
|
11
|
+
"db:migrate": "handoff-app db:migrate"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {},
|
|
13
14
|
"devDependencies": {},
|