Genluo / Precipitation-and-Summary

梳理体系化的知识点&沉淀日常开发和学习
MIT License
16 stars 1 forks source link

开发包(NPM)沉淀 #71

Open Genluo opened 5 years ago

Genluo commented 5 years ago

NPM沉淀

工程链路 * [progress](https://www.npmjs.com/package/progress): cli中输出进度条 * [inquirer](https://www.npmjs.com/package/inquirer):命令行prompt * commander:命令行工具 * chalk: 文字输出带颜色 * user-home:拿到用户目录,否则需要通过process来取 * validate-npm-package-name:验证npm包名的一个仓库 * detect-port:端口校验 * semver: 语义化版本号校验 * [lerna](https://juejin.im/post/5ced1609e51d455d850d3a6c#heading-20): 可以让你在主项目下管理多个子项目,从而解决了多个包互相依赖,且发布时需要手动维护多个包的问题 * tar: 流的方式处理tar file and tarball file * qoa:交互命令行开发体验 * ora cli中loading动效 * [nconf](https://github.com/indexzero/nconf): node config for example: file Hierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging. * envinfo: 拿到当前环境变量的各种信息,比如System、Binaries、Borwsers、npmPackages等等 * Tmp: 简单的临时文件和目录 * fecha: 日期时间的处理 * [yargs](https://github.com/yargs/yargs): 参数解析 * [del](): 文件删除相关 * debug:日志输出 * [benchmark](https://www.npmjs.com/package/benchmark/v/2.1.4):性能统计
Node开发相关 * clinic: Node.js性能问题的诊断工具,可以生成CPU、内存使用、事件循环 * [coffee](https://github.com/node-modules/coffee):能够和jest等结合,测试cli工具 * [SuperTest]():测试https服务或者http的比较好的工具
工程化相关 * [loader-utils](https://github.com/webpack/loader-utils) * schema-utils * webpack插件: webpack.ProgressPlugin(打包阶段info输出) * weboack插件:webpack.DefinePlugin(打包定义webpack全局变量) * [node-readfiles](https://www.npmjs.com/package/node-readfiles) * [glob-search](https://www.npmjs.com/package/glob-search): glob search from current cwd up to root or stopPath * [fs-extra](https://www.npmjs.com/package/fs-extra) * [mem-fs](https://www.npmjs.com/package/mem-fs):内存中的文件系统 * [mem-fs-editor](https://www.npmjs.com/package/mem-fs-editor) : 依赖mem-fs做的文件模板
文本处理 * [fast-diff](https://www.npmjs.com/package/fast-diff): 快速文本对比
工程链路 * [lerna](https://github.com/lerna/lerna):A tool for managing JavaScript projects with multiple packages. * [lerna-changelog](https://github.com/lerna/lerna-changelog): PR-based changelog generator with monorepo support * [Volta](https://docs.volta.sh/guide/): 锁定当前开发环境
Genluo commented 5 years ago

Error: Cannot find module with dynamic import

Genluo commented 4 years ago