tsml-cli
v0.9.0-b
Published
TypeScript Multi-Language compatibility CLI tool
Maintainers
Readme
TSML CLI - TypeScript Multi-Language Compatibility Tool
A powerful command-line interface tool designed to enhance TypeScript compatibility across various programming languages.
Installation
# Install globally
npm install -g tsml-cli
# Or use with npx
npx tsml-cli --helpQuick Start
# Initialize a new project
tsml init --main app.ts --link utils.js
# Build for Node.js
tsml run build --type node
# Build for Web
tsml run build --type webCommands
tsml init
Initializes a new TSML project by creating configuration files.
Options:
-m, --main <file>- Specify the main entry point file-l, --link <file>- Specify file to link for TypeScript compatibility (use 'none' for no linking)
tsml run build --type <web|node>
Builds the TypeScript project for the specified target environment.
tsml --version
Displays the current version of TSML CLI.
tsml --help
Shows help information and usage examples.
Configuration Files
tsml.cfg
Stores packaging information and file linking configuration:
main_file=app.ts
link_file=utils.js
target_env=node
typescript_compatible=truetsml.json
Contains project metadata and TSML-specific settings:
{
"name": "tsml-project",
"version": "1.0.0",
"tsml": {
"compatibility_mode": "enhanced",
"supported_languages": ["typescript", "javascript"]
}
}Error Codes
- Error Code 01: No file to link specified
- Error Code 02: No main file specified
License
MIT
