@bale-tools/mutate-version

react and vue configuration files.
2,203
Install
npm install @bale-tools/mutate-version
Latest Version:2.5.0
License:MIT
Last Updated:Jun 16, 2026
Links: npm
Maintainer: ztyjr88

统一版本

包括 vue、react 等版本, 以及其配置文件, 可以配合 @bale-tools/mutate-service 一起使用。

使用

  • api
interface MutateOptions {
  language: String // 语言, 'react' | 'vue'
  useTypescript: Boolean // 是否使用 typescript
  babelImportPluginName: '' // antd-mobile | vant
  babelImportPluginOpts: [] // 其他第三方插件数组
}

examples:

const mutateVersion = new MutateVersion({ language: 'vue', useTypescript: false, babelImportPluginName: 'vant' })
mutateVersion.copy() // 拷贝文件
mutateVersion.validatePackage() // 检查版本并重写 package.json
mutateVersion.clean() // 清除

Related Packages

app-location

A package to avoid repetition with Routes, Links and URLs, and reduce boilerplat...

34,498 19
server-side-render-resource

server side render resource dependence

22,685
onebuild

Used to bundle and serve manifests web component that build on any UI frameworks...

10,419 0
onesystem-shareds

Provide full stack client side to build on top.

8,796

Version History

Version Released License
2.5.0 MIT
2.4.1 MIT
2.4.0 MIT
2.3.9 MIT
2.3.8 MIT