Create initial codebase for CLI tool

Created on 20 May 2025, 16 days ago

Overview

The code for the CLI tool should live inside the XB repository, so we can easily make changes to API endpoints and any logic related to code components along with the necessary changes in the CLI tool. Later on we can also start sharing code between the actual app and the CLI tool.

β†’ See: 🌱 [Meta] CLI tool for code components Active

Proposed resolution

Set up a codebase in a new folder named cli at the root of the repository:

  1. TypeScript;
  2. ESLint + Prettier β€” copy our setup from ui for now;
  3. Bundler: no strong opinion, tailwindcss-in-browser uses tsup, it's very simple, I picked it because Tailwind uses it.
  4. Running npm run build should bundles into dist/index.js. npm run dev should watch for changes and do the same.
  5. Running e.g. node dist/index.js should simply output a console message.
πŸ“Œ Task
Status

Active

Version

0.0

Component

CLI Tool

Created by

πŸ‡³πŸ‡±Netherlands balintbrews Amsterdam, NL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024