@ppwd/axios
v0.0.22
Published
http request library
Readme
搭建项目
代码规范
安装lint
- TSLint -> ESLint
- eslint
- prettier
- lint-staged + husky: format code before execute git commit
编辑器配置:
初始化tsconfig
npx tsc --init提交规范
用到的第三方库:
高效开发
在测试页面中使用axios,模拟真实使用场景:
- 目前的开发环境配置在这里
调试
- 目前可以直接在
chrome浏览器中调试 - 如何使用编辑器断点调试源代码?
在其它项目中调试
into library directory and execute follow command line:
npm linkthen into your project directory:
npm link @ppwd/axiosfree api
- hacker news api: need fq
代码质量
- jest
打包
tsc
