Native Shell
Native Shell:AI 生成的 UI,在你的應用中原生呈現,涵蓋每個平台。iOS、Android、macOS、Windows 與 Linux 上的應用、GPUI 應用與網頁在執行時載入已簽名、沙箱隔離的 TSX 模組並繪製 th
AI 翻譯
SDK for running Adhese on your web based project
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗This monorepo contains the Adhese SDK for web. The project uses Turborepo to manage the monorepo. Make sure to run everything from the root of the project.
Install dependencies:
npm i
Only use
npmto install dependencies.pnpmandyarnwill create their own lockfiles and will cause issues when maintaining the project.
Start the dev server:
npm run dev
This will spin up multiple processes at the same time depending on the package or app own configuration. In general,
packages will start the test runner in watch mode and the docs app will start a dev server. For example, the
apps/example will start a test server on localhost:5173.
Run all tests:
npm run test
This will run all tests in packages that have tests configured. It will also report test coverage. Currently, all projects use Vitest as the test runner.
Build all packages:
npm run build
This will build all packages and apps.
Lint all packages:
npm run lint
This will lint all packages and apps. Currently, all projects use ESLint as the linter.
When installing new dependencies, consider the following:
npm install <package>.npm install <package> -w <package-name>.packages/sdk/package.json to make sure that the dependency is not
included in the bundle as NPM will handle the dependency.