Skip to content

Translate en doc updates #1401

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

Merged
merged 3 commits into from
Jan 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions src/v2/cookbook/dockerize-vuejs-app.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Vue.js アプリケーションを Docker 化する
type: cookbook
updated: 2018-07-25
updated: 2019-01-20
order: 13
---

Expand All @@ -12,7 +12,7 @@ order: 13
ではプロジェクトルートに `Dockerfile` を作成しましょう:

```docker
FROM node:9.11.1-alpine
FROM node:lts-alpine

# 静的コンテンツを配信するシンプルな http サーバをインストールする
RUN npm install -g http-server
Expand Down Expand Up @@ -64,15 +64,15 @@ docker run -it -p 8080:8080 --rm --name dockerize-vuejs-app-1 vuejs-cookbook/doc

```docker
# ビルド環境
FROM node:9.11.1-alpine as build-stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

# 本番環境
FROM nginx:1.13.12-alpine as production-stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Expand Down
6 changes: 4 additions & 2 deletions src/v2/cookbook/unit-testing-vue-components.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Vue コンポーネントの単体テスト
type: cookbook
updated: 2018-10-05
updated: 2019-01-20
order: 6
---

Expand Down Expand Up @@ -46,8 +46,9 @@ export default {

```js
import { shallowMount } from '@vue/test-utils'
import Hello from './Hello.vue'

test('Foo', () => {
test('Hello', () => {
// コンポーネントを描画します
const wrapper = shallowMount(Hello)

Expand Down Expand Up @@ -145,6 +146,7 @@ export default {

```js
import { shallowMount } from '@vue/test-utils'
import Foo from './Foo.vue'

describe('Foo', () => {
it('メッセージを描画し、ユーザー入力に正しく応答します', () => {
Expand Down
6 changes: 3 additions & 3 deletions src/v2/guide/render-function.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 描画関数とJSX
updated: 2018-12-15
updated: 2019-01-20
type: guide
order: 303
---
Expand Down Expand Up @@ -477,7 +477,7 @@ createElement(
</anchored-heading>
```

そのような理由から Vue で JSX を使うための [Babel プラグイン](https://github.com/vuejs/babel-plugin-transform-vue-jsx) があります。よりテンプレートに近い文法が戻ってきました。
そのような理由から Vue で JSX を使うための [Babel プラグイン](https://github.com/vuejs/jsx) があります。よりテンプレートに近い文法が戻ってきました。

``` js
import AnchoredHeading from './AnchoredHeading.vue'
Expand All @@ -496,7 +496,7 @@ new Vue({

<p class="tip">`createElement` を `h` にエイリアスしていることは、 Vue のエコシステムの中でよく見かける慣習です。そして、それは実は JSX には必須です。もし `h` がそのスコープ内で利用可能でない場合、アプリケーションはエラーを throw するでしょう。</p>

より詳しい JSX の JavaScript へのマップの仕方については、[usage ドキュメント](https://github.com/vuejs/babel-plugin-transform-vue-jsx#usage) をご参照ください。
より詳しい JSX の JavaScript へのマップの仕方については、[usage ドキュメント](https://github.com/vuejs/jsx#installation) をご参照ください。
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

現時点ではリンク先のドキュメントがJSX -> JSのマッピングを説明しているようには思えませんが、原文に合わせてそのままにしています。


## 関数型コンポーネント

Expand Down