This repository has been archived by the owner on May 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from ice-lab/release/1.0.15
Release/1.0.15
- Loading branch information
Showing
50 changed files
with
329 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,53 @@ | |
|
||
Hi! I’m really excited that you are interested in contributing to ICE. Before submitting your contribution though, please make sure to take a moment and read through the following guidelines. | ||
|
||
- [Setup Environment](#setup-environment) | ||
- [Run Examples](#run-examples) | ||
- [Publish Packages](publish-packages) | ||
- [Pull Request Guidelines](#pull-request-guidelines) | ||
- [Issue Reporting Guidelines](#issue-reporting-guidelines) | ||
- [Git Commit Specific](#git-commit-specific) | ||
|
||
## Setup Environment | ||
|
||
clone repo and initialize the setup environment: | ||
|
||
```bash | ||
# 1. clone and setup | ||
$ git clone [email protected]:ice-lab/icejs.git | ||
$ cd icejs && npm run setup | ||
|
||
# 2. watch packages | ||
$ npm run watch | ||
``` | ||
|
||
## Run Examples | ||
|
||
We provide a lot of examples, you can run the examples: | ||
|
||
```bash | ||
$ cd examples/basic-spa | ||
$ npm link ../../packages/icejs | ||
$ npm start | ||
``` | ||
|
||
## Publish Packages | ||
|
||
When you need to release, you can execute the command: | ||
|
||
```bash | ||
$ npm run publish | ||
# 1. ✔️ ✔️ ✔️ Checking the working tree status... | ||
# 2. 📦 📦 📦 Building packages... | ||
# 3. ⚡ ⚡ ⚡ Update package version automatically... | ||
# 4. 🚀 🚀 🚀 Start publishing... | ||
# 5. 🔖 🔖 🔖 Commit & Create tag'... | ||
# 6. 💡 💡 💡 Start syncing... | ||
``` | ||
|
||
* When you need to release a latest version, the tag will be created automatically, running `npm publish` will tag your package with the `latest` dist-tag. | ||
* To publish a package with the `beta` dist-tag, you can choose to release rc、beta、alpha versions, the tag will not be created. | ||
|
||
## Pull Request Guidelines | ||
|
||
- Only code that's ready for release should be committed to the master branch. All development should be done in dedicated branches. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm run lint | ||
env: | ||
CI: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,20 +115,6 @@ Finally, To start developing your application run `npm run start`. The applicati | |
|
||
## Contributing | ||
|
||
```bash | ||
# 1. clone and setup | ||
$ git clone [email protected]:ice-lab/icejs.git | ||
$ cd icejs && npm run setup | ||
|
||
# 2. watch packages | ||
$ npm run watch | ||
|
||
# 3. run example | ||
$ cd examples/spa-basic | ||
$ npm link ../../packages/icejs | ||
$ npm start | ||
``` | ||
|
||
Please see our [CONTRIBUTING.md](/.github/CONTRIBUTING.md) | ||
|
||
## Ecosystem | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,20 +115,6 @@ createApp(appConfig) | |
|
||
## 贡献代码 | ||
|
||
```bash | ||
# 1. clone and setup | ||
$ git clone [email protected]:ice-lab/icejs.git | ||
$ cd icejs && npm run setup | ||
|
||
# 2. watch packages | ||
$ npm run watch | ||
|
||
# 3. run example | ||
$ cd examples/spa-basic | ||
$ npm link ../../packages/icejs | ||
$ npm start | ||
``` | ||
|
||
贡献代码请参考 [CONTRIBUTING.md](/.github/CONTRIBUTING.md) | ||
|
||
## 生态 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
const delay = (time) => new Promise((resolve) => setTimeout(() => resolve(), time)); | ||
export const delay = (time) => new Promise((resolve) => setTimeout(() => resolve(), time)); | ||
|
||
export default { | ||
state: { | ||
count: 0 | ||
}, | ||
|
||
actions: { | ||
increment(prevState) { | ||
reducers: { | ||
increment (prevState) { | ||
return { count: prevState.count + 1 } | ||
}, | ||
decrement (prevState) { | ||
return { count: prevState.count - 1 } | ||
} | ||
}, | ||
|
||
async decrement(prevState) { | ||
effects: { | ||
async decrementAsync (state, payload, actions) { | ||
await delay(10); | ||
return { count: prevState.count - 1 } | ||
actions.decrement(); | ||
}, | ||
}, | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.