zhuchaoyang-sparrow
v1.0.0
Published
webku
Downloads
2
Readme
webku
如何打造一个自己的前端库
- 基于webpack进行资源构建
- 使用ES6语法进行开发
- 将包输出为umd规范的文件
- 使用mocha和chai进行测试
- 使用eslint来进行代码检查
- 基于npm scripts来集成开发命令
- 代码push到github
- 将包发布到npm
基本开发环境
- 全局环境:node & npm
- 命令行: terminal & shell
- 版本管理: git
- 编辑器: atom/webstorm/st3/vs
- 浏览器: chrome
- 注册npm账号
- 注册github账号
创建项目的基本结构
- src 开发源代码
- lib 编译后的资源
- test 测试用例
- .gitignore
- LICENSE
- README.md
- package.json
- webpack.config.js
- .babelrc
- .eslint.js