Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

mtong-tools

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mtong-tools

mt cli

latest
npmnpm
Version
3.0.6
Version published
Maintainers
1
Created
Source

MOONTON 常用工具

# 安装依赖
yarn install
# 创建项目
mt create
# 编译多语言 配置在 package.json 中的lang 具体参考底部
mt lang

# 忽略多级对象配置输出
mt lang -n

# 反向多语言配置 转 xlsx
mt lang -x

项目根目录下执行,同步公用代码到业务项目,同步公用依赖到业务依赖

# 同步指定公用代码
mt download

业务项目中公用代码指定方式

package.json

...
"framework": {
  "address": "git@lf.git.oa.mt:web-frontend-admin/framework.git",
  "branch": "master"
},
"lang": {
  "path": "test/lang.xlsx", // 多语言文件路径
  "outPath": "test/lang", // 输出路径
  "outXlsxPath": "test/lang", // 输出xlsx路径
  "suffix": "ts" // 输出文件后缀
}
...

FAQs

Package last updated on 06 Aug 2025

Did you know?

Socket

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