前端开发工具与类型定义文件指南
1. 值得关注的前端工具
在前端开发中,有一些工具能显著提升开发效率和应用性能,下面为你介绍两款值得关注的工具。
1.1 Deno
Deno 可以直接运行 TypeScript 程序,无需 npm 或 package.json。首次运行应用时,它会编译文件并下载依赖库,例如运行应用时会出现以下输出:
Compiling file: ...chapter6/deno/index.ts
Downloading https://deno.land/std/colors/mod.ts...
Compiling https://deno.land/std/colors/mod.ts
Deno 会缓存编译后的库,下次运行应用时无需再次下载和编译。不过,Deno 不支持 npm 包格式,但如果它获得广泛关注,流行 JavaScript 库的维护者可能会提供 Deno 支持的格式。
使用提示 :
- 在 macOS 系统中,可能需要添加执行权限: chmod +x ./deno_osx_x64 。
- 在 Windows 系统中,需确保 PowerShell 版本至少为 6 以及安装了 Windows Management Framework,否则可能会出现 “TS5009: Cannot find the common subdirectory path for the input files.” 错误。
超级会员免费看
订阅专栏 解锁全文
5363

被折叠的 条评论
为什么被折叠?



