Create River Build App
This package is used to scaffold a new React River app.
It will run create-vite
to scaffold the project using react-ts
template.
Then, it will install the necessary dependencies: @river-build/sdk
and @river-build/react-sdk
.
Finally, it will add the vite-plugin-node-polyfills
to the vite.config.ts
file to ensure compatibility with Node.js native modules that are used by the River SDK.
Usage
You can use your preferred package manager to run the command.
Example using yarn
:
yarn create river-build-app
This will create a new React River app in the current directory.
If you want to create a new app in a different directory, you can specify the directory name as an argument:
yarn create river-build-app my-app