diff --git a/apps/example/.gitignore b/examples/react/.gitignore similarity index 100% rename from apps/example/.gitignore rename to examples/react/.gitignore diff --git a/apps/example/.papi/descriptors/.gitignore b/examples/react/.papi/descriptors/.gitignore similarity index 100% rename from apps/example/.papi/descriptors/.gitignore rename to examples/react/.papi/descriptors/.gitignore diff --git a/apps/example/.papi/descriptors/package.json b/examples/react/.papi/descriptors/package.json similarity index 100% rename from apps/example/.papi/descriptors/package.json rename to examples/react/.papi/descriptors/package.json diff --git a/apps/example/.papi/metadata/kusama.scale b/examples/react/.papi/metadata/kusama.scale similarity index 100% rename from apps/example/.papi/metadata/kusama.scale rename to examples/react/.papi/metadata/kusama.scale diff --git a/apps/example/.papi/metadata/polkadot.scale b/examples/react/.papi/metadata/polkadot.scale similarity index 100% rename from apps/example/.papi/metadata/polkadot.scale rename to examples/react/.papi/metadata/polkadot.scale diff --git a/apps/example/.papi/metadata/westend.scale b/examples/react/.papi/metadata/westend.scale similarity index 100% rename from apps/example/.papi/metadata/westend.scale rename to examples/react/.papi/metadata/westend.scale diff --git a/apps/example/.papi/polkadot-api.json b/examples/react/.papi/polkadot-api.json similarity index 100% rename from apps/example/.papi/polkadot-api.json rename to examples/react/.papi/polkadot-api.json diff --git a/apps/example/eslint.config.js b/examples/react/eslint.config.js similarity index 100% rename from apps/example/eslint.config.js rename to examples/react/eslint.config.js diff --git a/apps/example/index.html b/examples/react/index.html similarity index 100% rename from apps/example/index.html rename to examples/react/index.html diff --git a/apps/example/package.json b/examples/react/package.json similarity index 94% rename from apps/example/package.json rename to examples/react/package.json index 757a2297..68a894a8 100644 --- a/apps/example/package.json +++ b/examples/react/package.json @@ -1,6 +1,5 @@ { - "name": "@reactive-dot/example", - "version": "0.0.0", + "name": "@reactive-dot/example-react", "private": true, "type": "module", "scripts": { diff --git a/apps/example/src/app.tsx b/examples/react/src/app.tsx similarity index 100% rename from apps/example/src/app.tsx rename to examples/react/src/app.tsx diff --git a/apps/example/src/config.ts b/examples/react/src/config.ts similarity index 100% rename from apps/example/src/config.ts rename to examples/react/src/config.ts diff --git a/apps/example/src/index.css b/examples/react/src/index.css similarity index 100% rename from apps/example/src/index.css rename to examples/react/src/index.css diff --git a/apps/example/src/index.tsx b/examples/react/src/index.tsx similarity index 100% rename from apps/example/src/index.tsx rename to examples/react/src/index.tsx diff --git a/apps/example/src/mutation.tsx b/examples/react/src/mutation.tsx similarity index 100% rename from apps/example/src/mutation.tsx rename to examples/react/src/mutation.tsx diff --git a/apps/example/src/query.tsx b/examples/react/src/query.tsx similarity index 100% rename from apps/example/src/query.tsx rename to examples/react/src/query.tsx diff --git a/apps/example/src/reactive-dot.d.ts b/examples/react/src/reactive-dot.d.ts similarity index 100% rename from apps/example/src/reactive-dot.d.ts rename to examples/react/src/reactive-dot.d.ts diff --git a/apps/example/src/vite-env.d.ts b/examples/react/src/vite-env.d.ts similarity index 100% rename from apps/example/src/vite-env.d.ts rename to examples/react/src/vite-env.d.ts diff --git a/apps/example/src/wallet-connection.tsx b/examples/react/src/wallet-connection.tsx similarity index 100% rename from apps/example/src/wallet-connection.tsx rename to examples/react/src/wallet-connection.tsx diff --git a/apps/example/tsconfig.json b/examples/react/tsconfig.json similarity index 100% rename from apps/example/tsconfig.json rename to examples/react/tsconfig.json diff --git a/apps/example/tsconfig.node.json b/examples/react/tsconfig.node.json similarity index 100% rename from apps/example/tsconfig.node.json rename to examples/react/tsconfig.node.json diff --git a/apps/example/vite.config.ts b/examples/react/vite.config.ts similarity index 100% rename from apps/example/vite.config.ts rename to examples/react/vite.config.ts diff --git a/package.json b/package.json index 2205bdc3..a997c0d8 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ }, "workspaces": [ "apps/*", + "examples/*", "packages/*" ], "scripts": { diff --git a/yarn.lock b/yarn.lock index e3effb03..eeabe3b0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4590,9 +4590,9 @@ __metadata: languageName: node linkType: hard -"@polkadot-api/descriptors@portal:.papi/descriptors::locator=%40reactive-dot%2Fexample%40workspace%3Aapps%2Fexample": +"@polkadot-api/descriptors@portal:.papi/descriptors::locator=%40reactive-dot%2Fexample-react%40workspace%3Aexamples%2Freact": version: 0.0.0-use.local - resolution: "@polkadot-api/descriptors@portal:.papi/descriptors::locator=%40reactive-dot%2Fexample%40workspace%3Aapps%2Fexample" + resolution: "@polkadot-api/descriptors@portal:.papi/descriptors::locator=%40reactive-dot%2Fexample-react%40workspace%3Aexamples%2Freact" peerDependencies: polkadot-api: "*" languageName: node @@ -4847,9 +4847,9 @@ __metadata: languageName: unknown linkType: soft -"@reactive-dot/example@workspace:apps/example": +"@reactive-dot/example-react@workspace:examples/react": version: 0.0.0-use.local - resolution: "@reactive-dot/example@workspace:apps/example" + resolution: "@reactive-dot/example-react@workspace:examples/react" dependencies: "@polkadot-api/descriptors": "portal:.papi/descriptors" "@reactive-dot/eslint-config": "workspace:^"