Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Aug 31, 2017
1 parent 816e8f4 commit 2c9fae3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
language: node_js

node_js:
- "6"
- "7"
- "8"

after_success:
- npm run coveralls

script: lerna run test
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 ChenCheng ([email protected])
Copyright (c) 2016-2017 ChenCheng ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[以中文查看](./README_zh-CN.md)

Lightweight front-end framework based on [redux](https://github.com/reactjs/redux), [redux-saga](https://github.com/yelouafi/redux-saga) and [react-router@2.x](https://github.com/ReactTraining/react-router/tree/v2.8.1). (Inspired by [elm](http://elm-lang.org/) and [choo](https://github.com/yoshuawuyts/choo))
Lightweight front-end framework based on [redux](https://github.com/reactjs/redux), [redux-saga](https://github.com/yelouafi/redux-saga) and [react-router](https://github.com/ReactTraining/react-router). (Inspired by [elm](http://elm-lang.org/) and [choo](https://github.com/yoshuawuyts/choo))

---

Expand Down
2 changes: 1 addition & 1 deletion README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

[View README in English](README.md)

基于 [redux](https://github.com/reactjs/redux)[redux-saga](https://github.com/yelouafi/redux-saga)[react-router@2.x](https://github.com/ReactTraining/react-router/tree/v2.8.1) 的轻量级前端框架。(Inspired by [elm](http://elm-lang.org/) and [choo](https://github.com/yoshuawuyts/choo))
基于 [redux](https://github.com/reactjs/redux)[redux-saga](https://github.com/yelouafi/redux-saga)[react-router](https://github.com/ReactTraining/react-router) 的轻量级前端框架。(Inspired by [elm](http://elm-lang.org/) and [choo](https://github.com/yoshuawuyts/choo))

---

Expand Down
1 change: 0 additions & 1 deletion packages/dva-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ The core lightweight library for dva, based on redux and redux-saga.
## LICENSE

MIT

6 changes: 3 additions & 3 deletions packages/dva/src/dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ function registerModel(app, model) {
}
}

export default function(config) {
export default function dynamic(config) {
const { app, models, component } = config;
return asyncComponent({
resolve: config.resolve || function() {
resolve: config.resolve || function () {
return new Promise((resolve) => {
Promise.all([...(models||[]), component]).then((ret) => {
Promise.all([...(models || []), component]).then((ret) => {
if (!models || !models.length) {
return resolve(ret[0]);
} else {
Expand Down
4 changes: 2 additions & 2 deletions packages/dva/test/index-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

describe('index', () => {
it('normal', () => {});
it('normal', () => {
});
});

0 comments on commit 2c9fae3

Please sign in to comment.