• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

JSBox Development Utilities on Node

jsbox-cli

JSBox VSCode 插件的 cli 版本.

Travis NPM version

Installation

$ npm i jsbox-cli -g

Getting Started

设置手机端 Host IP

$ jsbox set 192.168.1.1

查看当前的 Host IP

$ jsbox host

监听一个目录或文件

# 监听当前目录
$ jsbox watch

# 监听指定目录
$ jsbox watch ./dist

# 监听指定文件
$ jsbox watch ./index.js

构建一个 JSBox 应用

# 构建当前目录, 默认生成到 .output
$ jsbox build

# 构建指定目录
$ jsbox build ./dist

# 自定义输出路径
$ jsbox build ./dist -o ./dist/output.box