1.0.3 • Published 7 years ago
azaleas v1.0.3
azaleas
A tiny but powerful UI.
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run all tests
npm test
For detailed explanation on how things work, checkout the guide and docs for vue-loader.
为什么开发vue组件
前端组件化大势所趋, 平时开发已经可以完全依赖组件化的思路和框架, 为了更好的理解组件化的思想, 决定以vue为基础开发一套移动端组件。
- 学习vue及相关技术
- 学习ES6及ES7等相关技术
- 学习移动端web开发的有关知识
- 学习组件化的开发流程
- 引入单元测试, 优化开发流程
- 构建自己的前端技术栈
TypeScript
为什么选择TypeScript而不是原生的JavaScript?
组件库是提供给别人使用的,基于永远不能相信用户输入的原则,对参数的validate是必不可少的. Azaleas 可能越变越大,提前引入静态类型是件好事. Azaleas 肯定会被重构,为了避免进入火葬场,早点选TypeScript吧. TypeScript is good.
TypeScript
vue2.0
Webpack
Gulp
ES6
打包策略
目录设计
...
watch
if use typescript>2.6 please set
"strictFunctionTypes": false,