Skip to content

Commit

Permalink
Merge pull request #182 from madogiwa0124/add-modify-tsconfig-json-step
Browse files Browse the repository at this point in the history
  • Loading branch information
ubugeeei authored Dec 3, 2023
2 parents 65ee4f9 + 8b203eb commit 07b2e11
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
34 changes: 34 additions & 0 deletions book/online-book/src/00-introduction/040-setup-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,40 @@ export default defineConfig({
});
```

tsconfig.json の中身を以下のように書き換えます。

```json
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": [
"ESNext",
"DOM"
],
"moduleResolution": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true,
"paths": {
"chibivue": [
"../../packages"
],
}
},
"include": [
"src"
]
}
```

最後に、chibivue プロジェクトの package.json に playground を起動するコマンドを記述して実際に起動してみましよう!

~/package.json に以下を追記
Expand Down
34 changes: 34 additions & 0 deletions book/online-book/src/en/00-introduction/040-setup-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,40 @@ export default defineConfig({
});
```

Modify tsconfig.json as follows.

```json
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": [
"ESNext",
"DOM"
],
"moduleResolution": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true,
"paths": {
"chibivue": [
"../../packages"
],
}
},
"include": [
"src"
]
}
```

Lastly, let's add a command to the package.json of the chibivue project to launch the playground and try starting it!

Append the following to ~/package.json
Expand Down

0 comments on commit 07b2e11

Please sign in to comment.