From 73f23526cc1cd15bdb3a8efcc891923a9104dc0e Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Wed, 5 Jul 2023 22:48:55 -0400 Subject: [PATCH 1/2] docs: reference build tool integration from docs.capi.dev --- Readme.md | 49 ++++--------------------------------------------- 1 file changed, 4 insertions(+), 45 deletions(-) diff --git a/Readme.md b/Readme.md index fb2d01b88..76f83dc29 100644 --- a/Readme.md +++ b/Readme.md @@ -91,51 +91,6 @@ capi sync deno -## Build Tool Integration - -If you use a build tool such as Vite or Webpack during development, you'll need -to configure two environment variables. - -
-vite.config.ts example -
- -```ts -import { defineConfig } from "vite" - -export default defineConfig({ - define: { - "process.env.CAPI_SERVER": process.env.CAPI_SERVER, - "process.env.CAPI_TARGET": process.env.CAPI_TARGET, - }, -}) -``` - -
- -
-webpack.config.js example -
- -```ts -import webpack from "webpack" - -export default { - plugins: [ - new webpack.DefinePlugin({ - process: { - env: { - CAPI_SERVER: JSON.stringify(process.env.CAPI_SERVER), - CAPI_TARGET: JSON.stringify(process.env.CAPI_TARGET), - }, - }, - }), - ], -} -``` - -
- ## At a Glance Retrieve the first 10 entries from a storage map of Polkadot. @@ -189,6 +144,10 @@ might like to abstract; if you wish to add your use case to [Capi's standard library](patterns), please [submit an issue](https://github.com/paritytech/capi/issues/new?title=pattern%20idea:%20). +## Additional Resources + +- [Build Tool Integration](https://docs.capi.dev/setup/build_tool_integration) + ## Code of Conduct Everyone interacting in this repo is expected to follow the From 4696881cacd151fe73778c7802666582299ef7fd Mon Sep 17 00:00:00 2001 From: Harry Solovay Date: Thu, 6 Jul 2023 09:11:38 -0400 Subject: [PATCH 2/2] Update Readme.md --- Readme.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Readme.md b/Readme.md index 76f83dc29..84258b5b2 100644 --- a/Readme.md +++ b/Readme.md @@ -144,10 +144,6 @@ might like to abstract; if you wish to add your use case to [Capi's standard library](patterns), please [submit an issue](https://github.com/paritytech/capi/issues/new?title=pattern%20idea:%20). -## Additional Resources - -- [Build Tool Integration](https://docs.capi.dev/setup/build_tool_integration) - ## Code of Conduct Everyone interacting in this repo is expected to follow the