sparkling-method-cli
v2.0.1
Published
CLI utilities for managing Sparkling method modules with cross-platform code generation
Readme
sparkling-method-cli
CLI utilities for creating and managing Sparkling method modules with cross-platform code generation.
Installation
npm install -g sparkling-method-cli@latestOr add to your project:
npm install sparkling-method-cli@latest --save-devUsage
# Create a new method module
sparkling-method-cli init my-method
# Generate native code from TypeScript definitions
sparkling-method-cli codegenRun sparkling-method-cli --help to see all available commands and options.
Workflow
- Create method module:
sparkling-method-cli init my-method - Define TypeScript interfaces in
src/*.d.ts - Generate native code:
sparkling-method-cli codegen - Implement native handlers in
android/andios/
