Skip to content

Commit 59c3ba9

Browse files
oohirapotato4d
authored andcommitted
Translate en doc updates (#1401)
* [Doc]: Update unit-testing-vue-components.md #1391 * cherry-pick & translate vuejs/v2.vuejs.org@22567e4 * [Doc]: chore: Update links to new JSX plugin #1392 * cherry-pick & translate vuejs/v2.vuejs.org@0cb2514 * [Doc]: Update dockerize cookbook #1393 * cherry-pick & translate vuejs/v2.vuejs.org@0ce683b
1 parent 3f71e71 commit 59c3ba9

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

src/v2/cookbook/dockerize-vuejs-app.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Vue.js アプリケーションを Docker 化する
33
type: cookbook
4-
updated: 2018-07-25
4+
updated: 2019-01-20
55
order: 13
66
---
77

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

1414
```docker
15-
FROM node:9.11.1-alpine
15+
FROM node:lts-alpine
1616
1717
# 静的コンテンツを配信するシンプルな http サーバをインストールする
1818
RUN npm install -g http-server
@@ -64,15 +64,15 @@ docker run -it -p 8080:8080 --rm --name dockerize-vuejs-app-1 vuejs-cookbook/doc
6464

6565
```docker
6666
# ビルド環境
67-
FROM node:9.11.1-alpine as build-stage
67+
FROM node:lts-alpine as build-stage
6868
WORKDIR /app
6969
COPY package*.json ./
7070
RUN npm install
7171
COPY . .
7272
RUN npm run build
7373
7474
# 本番環境
75-
FROM nginx:1.13.12-alpine as production-stage
75+
FROM nginx:stable-alpine as production-stage
7676
COPY --from=build-stage /app/dist /usr/share/nginx/html
7777
EXPOSE 80
7878
CMD ["nginx", "-g", "daemon off;"]

src/v2/cookbook/unit-testing-vue-components.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Vue コンポーネントの単体テスト
33
type: cookbook
4-
updated: 2018-10-05
4+
updated: 2019-01-20
55
order: 6
66
---
77

@@ -46,8 +46,9 @@ export default {
4646

4747
```js
4848
import { shallowMount } from '@vue/test-utils'
49+
import Hello from './Hello.vue'
4950

50-
test('Foo', () => {
51+
test('Hello', () => {
5152
// コンポーネントを描画します
5253
const wrapper = shallowMount(Hello)
5354

@@ -145,6 +146,7 @@ export default {
145146

146147
```js
147148
import { shallowMount } from '@vue/test-utils'
149+
import Foo from './Foo.vue'
148150

149151
describe('Foo', () => {
150152
it('メッセージを描画し、ユーザー入力に正しく応答します', () => {

src/v2/guide/render-function.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 描画関数とJSX
3-
updated: 2018-12-15
3+
updated: 2019-01-20
44
type: guide
55
order: 303
66
---
@@ -477,7 +477,7 @@ createElement(
477477
</anchored-heading>
478478
```
479479

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

482482
``` js
483483
import AnchoredHeading from './AnchoredHeading.vue'
@@ -496,7 +496,7 @@ new Vue({
496496

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

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

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

0 commit comments

Comments
 (0)