forked from vuejs/vuex
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/dev' into working
# Conflicts resolved: # README.md # docs/README.md # docs/en/SUMMARY.md # docs/en/api.md # docs/en/core-concepts.md # docs/en/images/flow.png # docs/en/images/vuex.png # docs/guide/README.md # docs/guide/getters.md # docs/guide/modules.md # docs/guide/plugins.md # docs/guide/state.md # docs/guide/testing.md # docs/installation.md Signed-off-by: MachinisteWeb <bruno.lesieur@gmail.com>
- Loading branch information
Showing
270 changed files
with
29,487 additions
and
8,994 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 |
---|---|---|
@@ -0,0 +1,94 @@ | ||
version: 2 | ||
|
||
defaults: &defaults | ||
working_directory: ~/vuex | ||
docker: | ||
- image: circleci/node:8-browsers | ||
|
||
jobs: | ||
install: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-vuex-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- v1-vuex-{{ .Branch }} | ||
- v1-vuex | ||
- run: | ||
name: Installing Dependencies | ||
command: yarn | ||
- save_cache: | ||
paths: | ||
- ./node_modules | ||
key: v1-vuex-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- persist_to_workspace: | ||
root: ~/ | ||
paths: | ||
- vuex | ||
|
||
lint-types: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/ | ||
- run: | ||
name: Linting | ||
command: | | ||
yarn lint --format junit --output-file test-results/eslint/results.xml | ||
- run: | ||
name: Testing Types | ||
command: | | ||
yarn test:types | ||
- store_test_results: | ||
path: test-results | ||
- store_artifacts: | ||
path: test-results | ||
|
||
test-unit: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/ | ||
- run: | ||
name: Running Unit Tests | ||
command: | | ||
yarn test:unit | ||
test-e2e: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/ | ||
- run: | ||
name: Running End-to-end Tests | ||
command: | | ||
yarn test:e2e | ||
test-ssr: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/ | ||
- run: | ||
name: Running Server-side Rendering Tests | ||
command: | | ||
yarn test:ssr | ||
workflows: | ||
version: 2 | ||
install-and-parallel-test: | ||
jobs: | ||
- install | ||
- lint-types: | ||
requires: | ||
- install | ||
- test-unit: | ||
requires: | ||
- install | ||
- test-e2e: | ||
requires: | ||
- install | ||
- test-ssr: | ||
requires: | ||
- install |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
* [English](en/) | ||
* [简体中文](zh-cn/) | ||
* [Português](pt-br/) | ||
* [Français](fr/) | ||
* [Русский](ru/) | ||
* [日本語](ja/) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,50 @@ | ||
# インストール | ||
|
||
### 直接ダウンロードする / CDN | ||
|
||
[https://unpkg.com/vuex](https://unpkg.com/vuex) | ||
|
||
<!--email_off--> | ||
[Unpkg.com](https://unpkg.com) で NPM ベースの CDN リンクが提供されています。上記リンクは常に NPM の最新のリリースを指します。`https://unpkg.com/vuex@2.0.0` のような URL によって特定のバージョン/タグを利用することもできます。 | ||
<!--/email_off--> | ||
|
||
Vue のあとで `vuex` を取り込むと自動的に Vuex が導入されます: | ||
|
||
``` html | ||
<script src="/path/to/vue.js"></script> | ||
<script src="/path/to/vuex.js"></script> | ||
``` | ||
|
||
### NPM | ||
|
||
``` bash | ||
npm install vuex --save | ||
``` | ||
|
||
### Yarn | ||
|
||
``` bash | ||
yarn add vuex | ||
``` | ||
|
||
モジュールシステムで利用される場合、 `Vue.use()` によって Vuex を明示的に導入する必要があります: | ||
|
||
``` js | ||
import Vue from 'vue' | ||
import Vuex from 'vuex' | ||
|
||
Vue.use(Vuex) | ||
``` | ||
|
||
グローバルなスクリプトタグを利用する場合にはこのようにする必要はありません。 | ||
|
||
### 開発版ビルド | ||
|
||
最新の開発版ビルドを利用したい場合には、 Github から直接クローンし `vuex` を自身でビルドする必要があります。 | ||
|
||
``` bash | ||
git clone https://github.com/vuejs/vuex.git node_modules/vuex | ||
cd node_modules/vuex | ||
npm install | ||
npm run build | ||
``` |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{% include "./SUMMARY.md" %} |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.