Skip to content

Latest commit

 

History

History
 
 

addon-dev-tools

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

@wealthfolio/addon-dev-tools

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

Installation

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

CLI Commands

Create New Addon

wealthfolio create my-awesome-addon

Start Development Server

# In your addon directory
wealthfolio dev

Build Addon

wealthfolio build

Package for Distribution

wealthfolio package

Test Setup

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:

{
  "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