Skip to content

Commit 64a04ca

Browse files
committed
Convert to simple apps with package.json and run callout
- Add package.json to each exercise step (problem and solution) - Add run callout to problem README.mdx files
1 parent bf6be28 commit 64a04ca

File tree

30 files changed

+160
-0
lines changed

30 files changed

+160
-0
lines changed

exercises/01.classes/01.problem.class-basics/README.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ class ClassName {
2626
```
2727

2828
📜 [TypeScript Handbook - Classes](https://www.typescriptlang.org/docs/handbook/2/classes.html)
29+
30+
🐨 Once you've completed the exercise, run `node index.ts` in the playground to test your work!
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "exercises_01.classes_01.problem.class-basics",
3+
"type": "module",
4+
"scripts": {
5+
"start": "node index.ts"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "exercises_01.classes_01.solution.class-basics",
3+
"type": "module",
4+
"scripts": {
5+
"start": "node index.ts"
6+
}
7+
}

exercises/01.classes/02.problem.constructors/README.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ constructor(public name: string, private age: number = 0) {}
3131
```
3232

3333
📜 [TypeScript Handbook - Parameter Properties](https://www.typescriptlang.org/docs/handbook/2/classes.html#parameter-properties)
34+
35+
🐨 Once you've completed the exercise, run `node index.ts` in the playground to test your work!
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "exercises_01.classes_02.problem.constructors",
3+
"type": "module",
4+
"scripts": {
5+
"start": "node index.ts"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "exercises_01.classes_02.solution.constructors",
3+
"type": "module",
4+
"scripts": {
5+
"start": "node index.ts"
6+
}
7+
}

exercises/02.access-modifiers/01.problem.public-private/README.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ class User {
2121
💰 Remember: Private members can only be accessed within the class methods.
2222

2323
📜 [TypeScript Handbook - Access Modifiers](https://www.typescriptlang.org/docs/handbook/2/classes.html#member-visibility)
24+
25+
🐨 Once you've completed the exercise, run `node index.ts` in the playground to test your work!
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "exercises_02.access-modifiers_01.problem.public-private",
3+
"type": "module",
4+
"scripts": {
5+
"start": "node index.ts"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "exercises_02.access-modifiers_01.solution.public-private",
3+
"type": "module",
4+
"scripts": {
5+
"start": "node index.ts"
6+
}
7+
}

exercises/02.access-modifiers/02.problem.protected/README.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ class Derived extends Base {
3030
```
3131

3232
📜 [TypeScript Handbook - Protected](https://www.typescriptlang.org/docs/handbook/2/classes.html#protected)
33+
34+
🐨 Once you've completed the exercise, run `node index.ts` in the playground to test your work!

0 commit comments

Comments
 (0)