-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
精读《2021 前端新秀回顾》 #390
Comments
nest 和 next完全不是一个定位的东西 |
嗯,描述已修复。 |
zx 这个东东很不错。尤其是是用 typescript + zx 写运维脚本,还可以用类型来约束以及重构,比 py 爽太多~~ |
补充下, zx 其实有两种执行方式:
example file bar.ts #!/usr/bin/env ts-node-esm
import assert from 'node:assert/strict'
import { $, fs } from 'zx'
import minimist from 'minimist'
const argv = minimist(process.argv.slice(2))
console.info(argv)
const dir: string = argv.dir ?? '.'
assert(dir, 'dir is required')
awairt $`ls -al ${dir}` 有第一行声明的 hashbang, 还可以执行直接文件 ./bar.ts --dir=/tmp |
收到
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
已经 2022 年了,2021 JavaScript Rising Stars 列出了 2021 年内前端各领域 Star 增势排行榜,这些势头在 2022 年大概率会保持下来,所以抓住这些趋势,如果还不熟悉就趁机了解一下。
精读《2021 前端新秀回顾》
The text was updated successfully, but these errors were encountered: