TypeScript definitions and utilities for FocusAny.
npm install focusany-sdk
The SDK now provides a unified command-line interface through the focusany
command.
npx focusany <command> [options]
Available commands:
release-prepare
: Check and update config.json for production releaseversion
: Display the current version of FocusAny SDKhelp
: Show help information
npx focusany release-prepare
This will check dist/config.json
in your current directory.
npx focusany release-prepare path/to/your/config.json
This command will:
- Look for the specified config file (or
dist/config.json
by default) - Check if
development.env
is set to"dev"
- Automatically change it to
"prod"
if needed - Display appropriate messages about the changes made
Release Prepare - Default config file:
npx focusany release-prepare
Release Prepare - Custom config file:
npx focusany release-prepare build/config.json
npx focusany release-prepare src/configs/app-config.json
Version Command:
npx focusany version
npm run build
This will build both the shim files and the CLI tools.
npm run build:cli
npm run build:shim
Apache-2.0