focusany-sdk
v1.3.8
Published
TypeScript definitions for FocusAny
Downloads
13
Readme
FocusAny SDK
TypeScript definitions and utilities for FocusAny.
Installation
npm install focusany-sdkCLI Tools
FocusAny CLI
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
Release Prepare
Basic Usage
npx focusany release-prepareThis will check dist/config.json in your current directory.
Custom Config Path
npx focusany release-prepare path/to/your/config.jsonThis command will:
- Look for the specified config file (or
dist/config.jsonby default) - Check if
development.envis set to"dev" - Automatically change it to
"prod"if needed - Display appropriate messages about the changes made
Usage Examples
Release Prepare - Default config file:
npx focusany release-prepareRelease Prepare - Custom config file:
npx focusany release-prepare build/config.json
npx focusany release-prepare src/configs/app-config.jsonVersion Command:
npx focusany versionDevelopment
Building
npm run buildThis will build both the shim files and the CLI tools.
Building CLI only
npm run build:cliBuilding shim only
npm run build:shimLicense
Apache-2.0
