Socket
Socket
Sign inDemoInstall

@fox-js/cli

Package Overview
Dependencies
7
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fox-js/cli

fox cli


Version published
Weekly downloads
10
decreased by-72.97%
Maintainers
2
Install size
19.2 MB
Created
Weekly downloads
 

Readme

Source

fox-cli

Fox命令行脚手架工具

Install

NPM

npm install -g @fox-js/cli

使用说明

步骤一 初始化配置

设置版本列表地址

  • fox-cli setting versionsUrl 版本列表地址
fox-cli setting versionsUrl http://localhost:3000/template/versions

设置模版工程列表地址

  • fox-cli setting versionsUrl 模版工程列表地址
fox-cli setting templatesUrl http://localhost:3000/template/list

步骤二 创建脚手架工程


fox-cli create my-project

步骤三 初始化脚手架工程


cd my-project
pnpm i

步骤四 启动脚手架工程


pnpm start

工程说明

cli配置文件

fox-cli/config/index.js

配置说明


export default {
  versionsUrl: 'http://127.0.0.1:3000/template/versions', // 获取Fox版本列表
  templatesUrl: 'http://127.0.0.1:3000/template/list' // 获取模版工程列表
}

如何进行调试

  • 在工程目录下执行 npm link
  • fox-cli create my-project

删除link npm unlink @fox-js/cli

模版工程在github/gitlab repo的下载地址配置

参考download-git-repo

模版工程在http服务的下载地址配置

地址格式为

http://xxx/fileName.zip

PS zip压缩文件,不要包含文件夹

Keywords

FAQs

Last updated on 20 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc