Back to Wealthfolio

@wealthfolio/addon-dev-tools

packages/addon-dev-tools/README.md

3.3.01.3 KB
Original Source

@wealthfolio/addon-dev-tools

Development tools for Wealthfolio addons including hot reload server and CLI.

Installation

bash
npm install -g @wealthfolio/addon-dev-tools

CLI Commands

Create New Addon

bash
wealthfolio create my-awesome-addon

Start Development Server

bash
# In your addon directory
wealthfolio dev

Build Addon

bash
wealthfolio build

Package for Distribution

bash
wealthfolio package

Test Setup

bash
wealthfolio test

Development Server

The development server provides:

  • Hot reload functionality
  • File watching
  • Auto-building
  • Health check endpoints

API Endpoints

  • GET /health - Health check
  • GET /status - Addon status and last modified time
  • GET /manifest.json - Addon manifest
  • GET /addon.js - Built addon code
  • GET /files - List of built files
  • GET /test - Test connectivity

Usage in Addon Projects

Add to your addon's package.json:

json
{
  "scripts": {
    "dev:server": "wealthfolio dev"
  },
  "devDependencies": {
    "@wealthfolio/addon-dev-tools": "^1.0.0"
  }
}

Architecture

This package is separate from @wealthfolio/addon-sdk to:

  • Keep the SDK lightweight for production
  • Avoid unnecessary dependencies in addon bundles
  • Provide optional development tooling

License

MIT