Skip to content

zjsxfly/ant-design-mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ef8bcf5 · Apr 22, 2016
Apr 22, 2016
Apr 11, 2016
Apr 22, 2016
Apr 22, 2016
Apr 22, 2016
Apr 22, 2016
Nov 30, 2015
Apr 21, 2016
Apr 22, 2016
Apr 11, 2016
Apr 22, 2016
Apr 22, 2016
Feb 25, 2016
Apr 11, 2016
Apr 22, 2016
Dec 1, 2015
Apr 20, 2016
Apr 12, 2016
Apr 20, 2016
Apr 22, 2016
Apr 22, 2016

Repository files navigation

AntD Mobile

环境

node = 4.x

代码风格

https://github.com/airbnb/javascript

组件规范

components/button/index.jsx

import React from 'react';
class Button extends React.Component {
 static propTypes={};

 static defaultProps={};

 onClick = () => {
 };

 render() {
   return <a onClick={this.onClick}>;
 }
}
export default Button;

components/button/style/index.js

import './index.less';

components/button/style/index.less

@import '../../../style/variables';
@import '../../../style/mixins';
@buttonPrefixClass: am-button

@{buttonPrefixClass} {
  .button();
}

开发流程

npm install tnpm@release-3 -g --registry=http://registry.npm.alibaba-inc.com
tnpm install
npm start

pc 版: http://localhost:8001/

mobile 版: http://localhost:8001/kitchen-sink.html

提交代码

自己从 master 新开一个分支开发

git checkout -b xx-feature

开发完成后,

git add --all
git commit -am "描述"
git pull --rebase origin master
// 解决冲突
git push origin xx-feature:xx-feature

提交 mr, 指定相应人员 review, 根据反馈进一步修改提交.

由 review 人合并进主干后

git checkout master
git pull

更新自己主干结束本次需求开发。

About

A configurable Mobile UI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 50.6%
  • CSS 28.0%
  • JavaScript 15.7%
  • Objective-C 4.0%
  • HTML 1.1%
  • Java 0.3%
  • Python 0.3%