esbuild
1.1、esbuild简介
是什么 ?:an extremely fast JavaScript bundler and minifier.
开发语言:golang
官方主页:https://esbuild.github.io
源码仓库:https://github.com/evanw/esbuild
1.2、通过包管理器安装esbuild
操作系统包管理器安装命令
Windowsscoopscoop install esbuild
WindowsChocolateychoco install -y esbuild
macOSHomeBrewbrew install esbuild
GNU/LinuxHomeBrewbrew install esbuild
aptsudo apt-get install -y esbuild
CentOSyum不支持
dnfsudo dnf install -y esbuild
openSUSEzyppersudo zypper install -y esbuild
Alpine Linuxapksudo apk add esbuild

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm esbuild
Gentoo LinuxPortagesudo emerge esbuild
1.3、通过go get编译源码安装esbuild

step1、安装依赖

所有时Terminal + Shell
下载时git
编译时GoToolchain
运行时
  • glibc ( libc.solibpthread.sold-linux-x86-64.so )

step2、设置GOPATH等环境变量

export GOPATH=~/go/esbuild
export GO111MODULE=auto
export GOPROXY=https://goproxy.io

step3、使用go get下载esbuild源码并编译

go get -v github.com/evanw/esbuild

step4、将$GOPATH/bin/esbuild安装到/usr/local/bin/目录中

sudo install -o $(whoami) -m 755 $GOPATH/bin/esbuild /usr/local/bin/
1.4、esbuild命令