Skip to content

Corrections #1

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

Open
wants to merge 46 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
185d486
Added CI checks for snapshotting the correct errors
mattpocock Apr 3, 2023
2b5de94
Added GH workflow
mattpocock Apr 3, 2023
24601e8
Fixed tests
mattpocock Apr 3, 2023
9b98103
Merge pull request #81 from total-typescript/matt/added-ci-checks-for…
mattpocock Apr 3, 2023
a844b00
Updated beginners TS to 5.0
mattpocock Apr 3, 2023
39c6234
Added jsdom
mattpocock Apr 3, 2023
5618ae4
Added vite-tsconfig-paths
mattpocock Apr 3, 2023
57e4627
Improved exercise script
mattpocock Apr 3, 2023
4fd3446
Added the TT CLI
mattpocock May 11, 2023
0aecc94
Upgraded vitest
mattpocock May 22, 2023
70616f1
Update vitest
mattpocock May 22, 2023
b197c38
Updated to TS 5.1
mattpocock Jun 5, 2023
ce31f8c
Update TT CLI
mattpocock Jun 6, 2023
1a7ebb7
Added gitignore for tsconfig.json
mattpocock Aug 10, 2023
91d0b90
Upgraded to TS 5.2
mattpocock Aug 30, 2023
39f81de
Upgraded TT CLI
mattpocock Sep 19, 2023
227aadd
Removed tests
mattpocock Sep 19, 2023
16a7f7c
Merge branch 'main' of github.com:total-typescript/beginners-typescri…
mattpocock Sep 19, 2023
6a3cc2d
Upgraded vitest
mattpocock Sep 19, 2023
d2c8c6e
Merge branch 'main' of https://github.com/mattpocock/beginners-typesc…
mattpocock Sep 19, 2023
b25ee8e
Upgraded to latest CLI
mattpocock Dec 6, 2023
5620784
Upgraded TypeScript
mattpocock Dec 6, 2023
9b6f5a8
Upgraded TT CLI
mattpocock Dec 7, 2023
27934b8
Changed to mts
mattpocock Dec 7, 2023
db5ce5b
Update README.md
vojtaholik Mar 1, 2024
c91d69f
Upgrade dependencies
mattpocock May 5, 2024
9061a59
Add renovate.json
renovate[bot] May 6, 2024
a97fc62
Updated renovate config
mattpocock May 6, 2024
cb9afd7
Fixed config
mattpocock May 6, 2024
1cf7967
Merge pull request #93 from total-typescript/renovate/configure
mattpocock May 6, 2024
c4aa1a1
Update dependency @total-typescript/exercise-cli to ^0.6.0
renovate[bot] May 6, 2024
5ef3f42
Added Renovate Checks
mattpocock May 6, 2024
09c51b9
Update dependency @total-typescript/exercise-cli to ^0.6.0
renovate[bot] May 6, 2024
bbe6e29
CI
mattpocock May 6, 2024
5f5925e
Merge branch 'renovate/total-typescript-exercise-cli-0.x' of https://…
mattpocock May 6, 2024
3764859
Fixed CI AGAIN
mattpocock May 6, 2024
0c8fe74
Merge pull request #94 from total-typescript/renovate/total-typescrip…
mattpocock May 6, 2024
3add0e5
Updated package.json
mattpocock May 6, 2024
c8cc8cd
Updated lockfile
mattpocock May 6, 2024
bab5aad
Fixed package.json
mattpocock May 6, 2024
24749ce
Update dependency @total-typescript/exercise-cli to v0.6.1
renovate[bot] May 7, 2024
d6cb6be
Merge pull request #97 from total-typescript/renovate/total-typescrip…
mattpocock May 7, 2024
b0c5daa
Updated Renovate CI
mattpocock May 8, 2024
7a8d191
Moved to @total-typescript/tsconfig
mattpocock May 14, 2024
7ddb723
Updated tsconfig.json to match exercises
mattpocock May 14, 2024
efe5237
Removed import type
mattpocock May 14, 2024
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
35 changes: 35 additions & 0 deletions .github/workflows/renovate-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Renovate Checks
on:
push:
branches:
- "renovate/**"
- "ci-check/**"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Main
uses: actions/checkout@v4
with:
ref: main
path: repo

- name: Install Dependencies in Main
run: (cd repo && npm install)
- name: Create Snapshot In Main
run: (cd repo && npx tt-cli take-snapshot ./snap.md)
- name: Copy Snapshot To Outer Directory
run: mv repo/snap.md ./snap.md
- name: Delete Main Directory
run: rm -rf repo
- name: Checkout Branch
uses: actions/checkout@v4
with:
path: repo
- name: Install Dependencies in Branch
run: (cd repo && npm install)
- name: Move Snapshot To Branch
run: mv ./snap.md repo/snap.md
- name: Compare Snapshot In Branch
run: (cd repo && npx tt-cli compare-snapshot ./snap.md)
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.vscode
.vscode
*.temp.json
43 changes: 13 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a href="https://totaltypescript.com/tutorials/beginners-typescript"><img src="https://res.cloudinary.com/total-typescript/image/upload/v1664461034/beginners-typescript-tutorial/github_2x_himnyi.png" alt="beginner typescript tutorial" /></a>
<a href="https://totaltypescript.com/tutorials/beginners-typescript"><img src="https://res.cloudinary.com/total-typescript/image/upload/v1709297838/github--beginngers-typescript_2x_p7vtmw.jpg" alt="beginner typescript tutorial" /></a>

## Quickstart

Expand All @@ -9,58 +9,41 @@ Take the course on [Total TypeScript](https://totaltypescript.com/tutorials/begi
- Text explanations
- A built-in Stackblitz editor

## Installation Instructions

Clone this repo or [open in Gitpod](https://gitpod.io/#https://github.com/total-typescript/beginners-typescript).

```sh
# Installs all dependencies
npm install

# Starts the first exercise
npm run exercise 01

# Runs linting and tests on the solution
npm run solution 01
# Asks you which exercise you'd like to run, and runs it
npm run exercise
```

## How to take the course

You'll notice that the course is split into exercises. Each exercise is split into a `*.problem.ts` and a `*.solution.ts`.
You'll notice that the course is split into exercises. Each exercise is split into a `*.problem` and a `*.solution`.

To take an exercise:

1. Go into `*.problem.ts`
2. Run `npm run exercise 01`, where `01` is the number of the exercise you're on.

The `exercise` script will run TypeScript typechecks and a test suite on the exercise.
1. Run `npm run exercise`
2. Choose which exercise you'd like to run.

This course encourages **active, exploratory learning**. In the video, I'll explain a problem, and **you'll be asked to try to find a solution**. To attempt a solution, you'll need to:

1. Check out [TypeScript's docs](https://www.typescriptlang.org/docs/handbook/intro.html)
2. Try to find something that looks relevant.
3. Give it a go to see if it solves the problem.
1. Check out [TypeScript's docs](https://www.typescriptlang.org/docs/handbook/intro.html).
1. Try to find something that looks relevant.
1. Give it a go to see if it solves the problem.

You'll know if you've succeeded because the tests will pass.

**If you succeed**, or **if you get stuck**, unpause the video and check out the `*.solution.ts`. You can see if your solution is better or worse than mine!

You can run `npm run solution 01` to run the tests and typechecking on the solution.
**If you succeed**, or **if you get stuck**, unpause the video and check out the `*.solution`. You can see if your solution is better or worse than mine!

## Acknowledgements

Say thanks to Matt on [Twitter](https://twitter.com/mattpocockuk) or by joining his [Discord](https://discord.gg/8S5ujhfTB3). Consider signing up to his [Total TypeScript course](https://totaltypescript.com).

## Reference

### `npm run exercise 01`

Alias: `npm run e 01`

Run the corresponding `*.problem.ts` file.

### `npm run solution 01`
### `npm run exercise`

Alias: `npm run s 01`
Alias: `npm run e`

Run the corresponding `*.solution.ts` file. If there are multiple, it runs only the first one.
Open a prompt for choosing which exercise you'd like to run.
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy