Skip to content

Commit

Permalink
chore: add something for github.
Browse files Browse the repository at this point in the history
  • Loading branch information
simaQ committed Dec 2, 2017
1 parent 11c65d4 commit 572204f
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 9 deletions.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE.md
@@ -0,0 +1,24 @@
<!--
Thank you for reporting an issue.
1. It's RECOMMENDED to submit PR for typo or tiny bug fix.
2. If this's a FEATURE request, please provide: details, pseudo codes if necessary.
3. If this's a BUG, please provide: course repetition, error log and configuration. Fill in as much of the template below as you're able.
4. It will be nice to use to provide a CodePen Link which can reproduce the issue, we provide a CodePen template [f2-github-issue](https://codepen.io/Sima/pen/qVgdex).
感谢您向我们反馈问题。
1. 提交问题前,请先阅读 https://antv.alipay.com/zh-cn/f2/3.x/index.html 上的文档。
2. 我们推荐如果是小问题(错别字修改,小的 bug fix)直接提交 PR。
3. 如果是一个新需求,请提供:详细需求描述,最好是有伪代码实现。
4. 如果是一个 BUG,请提供:复现步骤,错误日志以及相关配置,并尽量填写下面的模板中的条目。
5. 如果可以,请提供尽可能精简的 CodePen 链接,可使用 CodePen 模板 https://codepen.io/Sima/pen/qVgdex,方便我们排查问题。
6. 扩展阅读:[如何向开源项目提交无法解答的问题](https://zhuanlan.zhihu.com/p/25795393)
-->

* **F2 Version**:
* **Platform**:
* **Mini Showcase(like screenshots)**:
* **CodePen Link**:

<!-- Enter your issue details below this comment. -->
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,19 @@
<!--
Thank you for your pull request. Please review below requirements.
Bug fixes and new features should include tests and possibly benchmarks.
Contributors guide: https://github.com/antvis/F2/blob/master/CONTRIBUTING.zh-CN.md
感谢您贡献代码。请确认下列 checklist 的完成情况。
Bug 修复和新功能必须包含测试,必要时请附上性能测试。
Contributors guide: https://github.com/antvis/f2/blob/master/CONTRIBUTING.zh-CN.md
-->

##### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [ ] `npm test` passes
- [ ] tests and/or benchmarks are included
- [ ] commit message follows commit guidelines

##### Description of change
<!-- Provide a description of the change below this comment. -->
26 changes: 17 additions & 9 deletions .travis.yml
@@ -1,16 +1,24 @@
language: node_js

node_js:
- "0.10"
- "8"

install:
- npm install spm coveralls
env:
matrix:
- TEST_TYPE=ci

before_script:
- node_modules/spm/bin/spm-install
addons:
apt:
packages:
- xvfb

script:
- node_modules/spm/bin/spm-test
install:
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- npm install

after_success:
- node_modules/spm/bin/spm-test --coveralls | node_modules/.bin/coveralls
script:
- |
if [ "$TEST_TYPE" = ci ]; then
npm run ci
fi
4 changes: 4 additions & 0 deletions README.md
@@ -1,5 +1,9 @@
# F2: a canvas library which providing 2d draw for mobile

[![](https://img.shields.io/travis/antvis/f2.svg)](https://travis-ci.org/antvis/f2)
![](https://img.shields.io/badge/language-javascript-red.svg)
![](https://img.shields.io/badge/license-MIT-000000.svg)

[![npm package](https://img.shields.io/npm/v/@antv/f2.svg)](https://www.npmjs.com/package/@antv/f2)
[![NPM downloads](http://img.shields.io/npm/dm/@antv/f2.svg)](https://npmjs.org/package/@antv/f2)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/f2.svg)](http://isitmaintained.com/project/antvis/f2 "Percentage of issues still open")
Expand Down

0 comments on commit 572204f

Please sign in to comment.