shelljs/shelljs

Support test on environment variable's value

Open

#1,230 建立於 2025年9月3日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)JavaScript (777 fork)batch import
featurehelp wanted

倉庫指標

Star
 (14,062 star)
PR 合併指標
 (平均合併 3天 12小時) (30 天內合併 2 個 PR)

描述

It will be very useful for test to support testing on environment variable's value like the following example (with shx as wrapper):

shx test "${NODE_ENV}" = "production"  && shx mkdir -p dist/data || shx mkdir -p tmp/data 

貢獻者指南