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

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 ) ,
zip
babel-multi-env-master.zip 预估大小:54个文件
folder
babel-multi-env-master 文件夹
file
yarn.lock 143KB
folder
src 文件夹
file
buildVersions.js 2KB
file
runCLI.js 1KB
folder
__tests__ 文件夹
folder
__snapshots__ 文件夹
file
buildSwitcher.test.js.snap 716B
file
buildVersions.test.js.snap 7KB
file
buildSwitcher.test.js 990B
file
buildVersions.test.js 1KB
file
parseCLI.js 4KB
folder
__fixtures__ 文件夹
file
buildAndOutputVersions.fixture.js 447B
file
buildSwitcher.js 3KB
folder
lib 文件夹
file
buildVersions__0.12.0__.js 7KB
file
buildSwitcher__0.10.0__.js 5KB
file
runCLI__6.0.0__.js 2KB
file
buildSwitcher__8.0.0__.js 3KB
file
buildVersions__6.0.0__.js 4KB
file
buildVersions.js 512B
file
buildVersions__4.0.0__.js 7KB
file
parseCLI__0.10.0__.js 6KB
file
parseCLI__0.12.0__.js 6KB
file
parseCLI__8.0.0__.js 5KB
file
runCLI__4.0.0__.js 4KB
file
runCLI.js 477B
file
buildSwitcher__6.0.0__.js 4KB
file
buildVersions__0.10.0__.js 7KB
file
parseCLI__6.0.0__.js 5KB
file
parseCLI.js 487B
file
runCLI__0.12.0__.js 4KB
file
buildVersions__8.0.0__.js 3KB
file
buildSwitcher__4.0.0__.js 5KB
file
parseCLI__4.0.0__.js 5KB
file
runCLI__8.0.0__.js 2KB
file
buildSwitcher__0.12.0__.js 5KB
file
runCLI__0.10.0__.js 4KB
file
buildSwitcher.js 512B
file
.codeclimate.yml 1KB
file
.travis.yml 1KB
folder
example 文件夹
file
yarn.lock 54KB
folder
src 文件夹
file
index.js 447B
folder
lib 文件夹
file
index__8.0.0__.js 854B
file
index__0.10.0__.js 2KB
file
index__4.0.0__.js 2KB
file
index__6.0.0__.js 1KB
file
index.js 472B
file
index__0.12.0__.js 2KB
file
package.json 512B
file
README.md 14KB
file
.editorconfig 677B
file
.gitignore 897B
folder
bin 文件夹
folder
__tests__ 文件夹
folder
__snapshots__ 文件夹
file
babel-multi-env.spec.js.snap 149B
file
babel-multi-env.spec.js 464B
folder
__fixtures__ 文件夹
file
arrayJoin.fixture.js 354B
file
babel-multi-env.js 47B
file
CHANGELOG.md 3KB
file
package.json 2KB
zip 文件大小:102.89KB