Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Translation Japanese #4934

Open
wants to merge 45 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
b2b7d33
copy docs/ja/config/README.md
tiwuofficial Dec 4, 2019
9e8aacc
copy docs/ja/README.md
tiwuofficial Dec 4, 2019
930420e
copy docs/ja/core-plugins/babel.md
tiwuofficial Dec 4, 2019
506e7c1
copy docs/ja/core-plugins/README.md
tiwuofficial Dec 4, 2019
ef008d3
copy docs/ja/core-plugins/e2e-cypress.md
tiwuofficial Dec 5, 2019
1aa1984
copy docs/ja/core-plugins/e2e-nightwatch.md
tiwuofficial Dec 5, 2019
a85300b
copy docs/ja/core-plugins/eslint.md
tiwuofficial Dec 5, 2019
60e9789
copy docs/ja/core-plugins/pwa.md
tiwuofficial Dec 5, 2019
34512b0
copy docs/ja/core-plugins/router.md
tiwuofficial Dec 5, 2019
4f29567
copy docs/ja/core-plugins/typescript.md
tiwuofficial Dec 5, 2019
df3d8b6
copy docs/ja/core-plugins/unit-jest.md
tiwuofficial Dec 5, 2019
2c04e86
copy docs/ja/core-plugins/unit-mocha.md
tiwuofficial Dec 5, 2019
af1408f
copy docs/ja/core-plugins/vuex.md
tiwuofficial Dec 5, 2019
dde28df
copy docs/ja/dev-guide/generator-api.md
tiwuofficial Dec 5, 2019
87c2f32
copy docs/ja/dev-guide/plugin-api.md
tiwuofficial Dec 5, 2019
1c3d57f
copy docs/ja/dev-guide/plugin-dev.md
tiwuofficial Dec 6, 2019
0670cb0
copy docs/ja/dev-guide/ui-api.md
tiwuofficial Dec 6, 2019
8c0f57c
copy docs/ja/dev-guide/ui-info.md
tiwuofficial Dec 6, 2019
ffda3c0
copy docs/ja/dev-guide/ui-localization.md
tiwuofficial Dec 6, 2019
9de2ddb
copy docs/ja/guide/README.md
tiwuofficial Dec 6, 2019
b8bacb1
copy docs/ja/guide/browser-compatibility.md
tiwuofficial Dec 6, 2019
81a7ed5
copy docs/ja/guide/build-targets.md
tiwuofficial Dec 6, 2019
99114e1
copy docs/ja/guide/cli-service.md
tiwuofficial Dec 6, 2019
f558d1f
copy docs/ja/guide/creating-a-project.md
tiwuofficial Dec 6, 2019
4a0dd32
copy docs/ja/guide/css.md
tiwuofficial Dec 6, 2019
c48aafa
copy docs/ja/guide/deployment.md
tiwuofficial Dec 6, 2019
c57e63c
copy docs/ja/guide/html-and-static-assets.md
tiwuofficial Dec 6, 2019
e753088
copy docs/ja/guide/installation.md
tiwuofficial Dec 6, 2019
e09eaf5
copy docs/ja/guide/mode-and-env.md
tiwuofficial Dec 6, 2019
a3b7361
copy docs/ja/guide/plugins-and-presets.md
tiwuofficial Dec 6, 2019
e74403e
copy docs/ja/guide/prototyping.md
tiwuofficial Dec 6, 2019
9cc7469
copy docs/ja/guide/troubleshooting.md
tiwuofficial Dec 6, 2019
a787bd5
copy docs/ja/guide/webpack.md
tiwuofficial Dec 6, 2019
62e05a8
copy docs/ja/migrating-from-v3/README.md
tiwuofficial Dec 6, 2019
5bc4476
copy docs/.vuepress/config.js
tiwuofficial Dec 6, 2019
f822c12
translation from en into ja docs/.vuepress/config.js
tiwuofficial Dec 6, 2019
fa087c7
translation from en into ja docs/ja/README.md
tiwuofficial Dec 6, 2019
672849a
完全に構成可能 -> 設定可能
tiwuofficial Dec 10, 2019
bc67624
単一のVueファイル -> 単一ファイルコンポーネント
tiwuofficial Dec 10, 2019
3888872
将来の準備 -> 将来に向けて
tiwuofficial Dec 10, 2019
410a2b6
translation from en into ja docs/ja/core-plugins/README.md
tiwuofficial Dec 13, 2019
3028af4
Revert "translation from en into ja docs/ja/core-plugins/README.md"
tiwuofficial Dec 13, 2019
bd75e3e
translation from en into ja docs/ja/core-plugins/README.md
tiwuofficial Dec 13, 2019
1e8e701
translation from en into ja docs/ja/core-plugins/vuex.md
tiwuofficial Jan 8, 2020
7ed51a6
translation from en into ja docs/ja/core-plugins/router.md
tiwuofficial Jan 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
copy docs/ja/dev-guide/plugin-api.md
  • Loading branch information
tiwuofficial committed Dec 5, 2019
commit 87c2f32952d39f043123aba654f355561260bd10
133 changes: 133 additions & 0 deletions docs/ja/dev-guide/plugin-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# Plugin API

## version

Type: `string`

The version string for the `@vue/cli-service` version that is loading the plugin.


## assertVersion

- **Arguments**
- `{integer | string} range` - a semver range that `@vue/cli-service` needs to satisfy

- **Usage**

While api.version can be useful in general, it's sometimes nice to just declare your version.
This API exposes a simple way to do that.

Nothing happens if the provided version is satisfied. Otherwise, an error will be thrown.

Note: It's recommended to use [the `peerDependencies` field in `package.json`](https://docs.npmjs.com/files/package.json#peerdependencies) under most circumstances.

## getCwd

- **Usage**:
Returns a current working directory

## resolve

- **Arguments**
- `{string} path` - relative path from project root

- **Returns**
- `{string}`- the resolved absolute path

- **Usage**:
Resolve a path for the current project

## hasPlugin

- **Arguments**
- `{string} id` - plugin id, can omit the (@vue/|vue-|@scope/vue)-cli-plugin- prefix

- **Returns**
- `{boolean}`

- **Usage**:
Check if the project has a plugin with given id

## registerCommand

- **Arguments**
- `{string} name`
- `{object} [opts]`
```js
{
description: string,
usage: string,
options: { [string]: string }
}
```
- `{function} fn`
```js
(args: { [string]: string }, rawArgs: string[]) => ?Promise
```

- **Usage**:
Register a command that will become available as `vue-cli-service [name]`.

## chainWebpack

- **Arguments**
- `{function} fn`

- **Usage**:
Register a function that will receive a chainable webpack config. This function is lazy and won't be called until `resolveWebpackConfig` is called.


## configureWebpack

- **Arguments**
- `{object | function} fn`

- **Usage**:
Register a webpack configuration object that will be merged into the config **OR** a function that will receive the raw webpack config. The function can either mutate the config directly or return an object
that will be merged into the webpack config.

## configureDevServer

- **Arguments**
- `{object | function} fn`

- **Usage**:
Register a dev serve config function. It will receive the express `app` instance of the dev server.

## resolveWebpackConfig

- **Arguments**
- `{ChainableWebpackConfig} [chainableConfig]`
- **Returns**
- `{object}` - raw webpack config

- **Usage**:
Resolve the final raw webpack config, that will be passed to webpack.

## resolveChainableWebpackConfig

- **Returns**
- `{ChainableWebpackConfig}`

- **Usage**:
Resolve an intermediate chainable webpack config instance, which can be further tweaked before generating the final raw webpack config. You can call this multiple times to generate different branches of the base webpack config.

See [https://github.com/mozilla-neutrino/webpack-chain](https://github.com/mozilla-neutrino/webpack-chain)

## genCacheConfig

- **Arguments**
- `id`
- `partialIdentifier`
- `configFiles`
- **Returns**
- `{object}`
```js
{
cacheDirectory: string,
cacheIdentifier: string }
```

- **Usage**:
Generate a cache identifier from a number of variables.