babel-multi-env:babel-preset-env支持`babel` CLI替换多节点版本

时间:2024-02-20 21:05:54
【文件属性】:

文件名称:babel-multi-env:babel-preset-env支持`babel` CLI替换多节点版本

文件大小:103KB

文件格式:ZIP

更新时间:2024-02-20 21:05:54

nodejs babel babel-cli babel-preset-env babel-runtime

babel-multi-env 通过babel-preset-env和babel-plugin-transform-runtime支持多节点版本的babel CLI替换。 对node.js库/模块有用 用法 转换: import fs from "fs" ; import promisify from "util.promisify" ; export async function demoBumpVersion ( nextVersion = "1.0.0" ) { const content = await promisify ( fs . readFile ) ( "package.json" , "utf8" ) ; const json = JSON . parse ( content ) ; json . version = nextVersion ; await promisify ( fs . writeFile ) ( "package.json" , JSON . stringify ( json , null , 4 ) ,


【文件预览】:
babel-multi-env-master
----yarn.lock(143KB)
----src()
--------buildVersions.js(2KB)
--------runCLI.js(1KB)
--------__tests__()
--------parseCLI.js(4KB)
--------__fixtures__()
--------buildSwitcher.js(3KB)
----lib()
--------buildVersions__0.12.0__.js(7KB)
--------buildSwitcher__0.10.0__.js(5KB)
--------runCLI__6.0.0__.js(2KB)
--------buildSwitcher__8.0.0__.js(3KB)
--------buildVersions__6.0.0__.js(4KB)
--------buildVersions.js(512B)
--------buildVersions__4.0.0__.js(7KB)
--------parseCLI__0.10.0__.js(6KB)
--------parseCLI__0.12.0__.js(6KB)
--------parseCLI__8.0.0__.js(5KB)
--------runCLI__4.0.0__.js(4KB)
--------runCLI.js(477B)
--------buildSwitcher__6.0.0__.js(4KB)
--------buildVersions__0.10.0__.js(7KB)
--------parseCLI__6.0.0__.js(5KB)
--------parseCLI.js(487B)
--------runCLI__0.12.0__.js(4KB)
--------buildVersions__8.0.0__.js(3KB)
--------buildSwitcher__4.0.0__.js(5KB)
--------parseCLI__4.0.0__.js(5KB)
--------runCLI__8.0.0__.js(2KB)
--------buildSwitcher__0.12.0__.js(5KB)
--------runCLI__0.10.0__.js(4KB)
--------buildSwitcher.js(512B)
----.codeclimate.yml(1KB)
----.travis.yml(1KB)
----example()
--------yarn.lock(54KB)
--------src()
--------lib()
--------package.json(512B)
----README.md(14KB)
----.editorconfig(677B)
----.gitignore(897B)
----bin()
--------__tests__()
--------__fixtures__()
--------babel-multi-env.js(47B)
----CHANGELOG.md(3KB)
----package.json(2KB)

网友评论