@iselect/select
v1.0.4
Published
Build and deploy apps for web, desktop, and mobile from a single codebase
Maintainers
Readme
Select CLI
Build and deploy apps for web, desktop, and mobile from a single codebase.
_____ ________ _______________
/ ___// ____/ / / ____/ ____/_ /
\__ \/ __/ / / / __/ / / / /
___/ / /___/ /___/ /___/ /___ / /
/____/_____/_____/_____/\____/ /_/ Installation
# Option 1: From Source (Recommended for Contributors)
git clone https://github.com/yourusername/select-cli.git
cd select-cli
npm link
# Option 2: From GitHub (If public)
npm install -g github:yourusername/select-cliQuick Start
# Create a new project
slct init my-app
# Navigate to project
cd my-app
```bash
# Select target platforms
slct
# Build for all desktop platforms & web
slct build all
# Deploy to Select marketplace
slct deployCommands
slct init [name]
Create a new Select project with interactive prompts.
slct init my-app
slct init --template vueOptions:
-t, --template <template>- Project template (react, vue, vanilla)
slct (or slct s)
Interactively select target platforms for your project.
slct build [target]
Build your app for specified platforms.
slct build # Interactive selection
slct build web # Build for web only
slct build desktop # Build for desktop (Tauri/Electron)
slct build all # Build for all platforms (Web + Desktop)Options:
--tauri- Use Tauri for desktop (default)--electron- Use Electron for desktop--release- Build for production release
slct deploy
Deploy your app to the Select marketplace.
slct deploy
slct deploy --prod # Deploy to productionslct dev
Start the development server.
slct dev
slct dev --port 3000select.json
Configuration file generated by slct init:
{
"name": "my-app",
"version": "1.0.0",
"description": "A Select app",
"platforms": ["web", "windows", "linux"],
"desktop": {
"framework": "tauri"
},
"build": {
"command": "npm run build",
"devCommand": "npm run dev",
"outDir": "dist"
}
}Platform Requirements
Tauri (Desktop)
Tauri requires Rust and platform-specific build tools:
- Install Rust: https://rustup.rs/
- Windows: Install Visual Studio Build Tools
- MSVC v143 - VS 2022 C++ x64/x86 build tools
- Windows 10/11 SDK
- C++ CMake tools
- macOS: Install Xcode Command Line Tools
- Linux: Install build-essential and webkit2gtk
Electron (Desktop)
Electron is automatically installed when selected.
License
MIT
