@botonic/create-workspace
v2.25.0
Published
Create a new workspace for Botonic bot development
Readme
@botonic/create-workspace
CLI to scaffold a new Nx workspace for Botonic bot development on the current @botonic/* line.
Source and versions
| Line | npm | Source |
| ----------- | ----- | ---------------------------------------------------------------- |
| Legacy | 0.x | github.com/hubtype/botonic |
| Current | 2.x | Hubtype internal monorepo (not public; packages publish to npm) |
The generated workspace uses @botonic/nx-plugin and other @botonic/* packages from the same major version as this CLI.
Usage
npx @botonic/create-workspace my-botonic-workspaceOptions
--packageManager, -pm- Package manager to use (npm,yarn,pnpm)--interactive, -i- Run in interactive mode (default: true)--registry, -r- Custom npm registry (e.g. Verdaccio) for@botonic/*in the new workspace--help, -h- Show help--version, -v- Show version
Examples
# Create a workspace with default settings
npx @botonic/create-workspace my-workspace
# Create a workspace with yarn
npx @botonic/create-workspace my-workspace --packageManager=yarn
# Create a workspace non-interactively
npx @botonic/create-workspace my-workspace --no-interactiveWhat it creates
This tool creates a new Nx workspace configured for Botonic development with:
- Nx workspace configuration
- Botonic dependencies pre-installed
- Nx Botonic plugin configured
- Development and build scripts
- TypeScript configuration
- ESLint and Prettier setup
After creation
Once your workspace is created, you can:
cd my-workspace
# Create a new bot
nx g @botonic/nx-plugin:bot-app my-bot
# Serve the bot for development
nx serve my-bot
# Build the bot
nx build my-bot
# Run tests
nx test my-botLicense
MIT
