Skip to content

Commit 5225087

Browse files
committed
source code and minify
1 parent b967e5c commit 5225087

File tree

8 files changed

+439
-22
lines changed

8 files changed

+439
-22
lines changed

.travis.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ env:
1717
install: npm install
1818

1919

20-
# before_script:
21-
# - base64 -d <<< $RSAKEY > ~/.ssh/id_rsa
22-
# - chmod 600 ~/.ssh/id_rsa
23-
2420
script: #下面替换成运行生成命令或者脚本
21+
- npm run build
2522
- npm run p
2623
- npm run test
2724
- if [[ "$TRAVIS_TAG" ]] ;then
@@ -57,7 +54,9 @@ deploy:
5754

5855
- provider: releases
5956
api_key: "${GH_TOKEN}"
60-
file: "$BUILD_PATH/yyf.js"
57+
file:
58+
- "$BUILD_PATH/yyf.js"
59+
- "$BUILD_PATH/yyf.min.js"
6160
skip_cleanup: true
6261
on:
6362
tags: true

README.md

+22-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
# YYFJS
22

3-
YYF前端请求和数据接口JS库
3+
[YYF](https://github.com/YunYinORG/YYF)前端请求和数据接口封装JS库
44

5-
The frontend JavaScript library for YYF RESTful API request.
5+
The frontend JavaScript library for [YYF](https://github.com/YunYinORG/YYF) RESTful API request.
66

77
[![Build Status](https://travis-ci.org/YunYinORG/YYFJS.svg?branch=master)](https://travis-ci.org/YunYinORG/YYFJS)
88
[![npm](https://img.shields.io/npm/v/yyfjs.svg)](https://www.npmjs.com/package/yyfjs)
9+
[![lib size](http://img.badgesize.io/YunYinORG/YYFJS/gh-pages/yyf.js?color=green)](https://github.com/YunYinORG/YYFJS/tree/gh-pages)
10+
[![lib gzip size](http://img.badgesize.io/https://unpkg.com/yyfjs?compression=gzip&label=gzip)](https://unpkg.com/yyfjs)
911

10-
1. [安装和使用](#1-install)
11-
2. [接口API](#2-interface)
12-
3. [配置](#3-configure)
13-
4. [Vue插件](#4-vue)
14-
5. [流程图](#5-flowchart)
12+
1. [安装和使用](#install)
13+
2. [接口API](#interface)
14+
3. [配置](#configure)
15+
4. [Vue插件](#vue)
16+
5. [流程图](#flowchart)
1517

16-
## 1. Install
18+
在线演示示例:
19+
20+
* [jsfiddle.net](https://jsfiddle.net/NewFuture/56oyup6f/)
21+
* [runjs.cn(墙内友好)](http://runjs.cn/code/j62fwfuw)
22+
23+
## Install
1724
**安装**
1825

1926
### with npm(使用npm安装)
@@ -28,14 +35,15 @@ YYF.get('Index/test').success(console.log);
2835

2936
### in Browser(浏览器中直接使用)
3037

31-
可以在[unpkg上](unpkg..com/yyfjs)下载最新版代码
38+
* [gh-pages 分支](https://github.com/YunYinORG/YYFJS/tree/gh-pages)稳定版和最新开发版
39+
* 也可以在[unpkg.com/yyfjs/](http://unpkg.com/yyfjs/)下载最新版发布版代码
3240

3341
Just include the lib,exemple:
3442

3543
```html
3644
<html>
3745
<head>
38-
<script src="http://unpkg..com/yyfjs"></script>
46+
<script src="http://unpkg.com/yyfjs"></script>
3947
</head>
4048
<body>
4149
<script>
@@ -45,7 +53,7 @@ Just include the lib,exemple:
4553
</html>
4654
```
4755

48-
## 2. Interface
56+
## Interface
4957
**方法接口和API**
5058

5159
### 2.1 Examples
@@ -110,7 +118,7 @@ YYF.post('Resource/id', data)
110118

111119
参数细节参照[全局回调函数表handle](#33-handle)
112120

113-
## 3. Configure
121+
## Configure
114122

115123
**配置**
116124

@@ -223,7 +231,7 @@ YYF({
223231
});
224232
```
225233

226-
## 4. Vue
234+
## Vue
227235

228236
YYFJS 支持[Vue](https://vuejs.org/)插件
229237

@@ -255,7 +263,7 @@ var app = new Vue({
255263
})
256264
```
257265

258-
## 5. Flowchart
266+
## Flowchart
259267

260268
基本流程: `before()`==> [send request] => `ready()` ==> `[INVOKE?]()` ==> `final()`
261269

0 commit comments

Comments
 (0)