Typespeare
A Learning TypeScript > Syntax Extensions 🥗 appetizer project.
Salute, dear reader, thou TypeScript guru!
In these texts your syntax lesson contained.
Press thee inward for your lesson further,
That your latest TypeScript knowledge be strained.
Setup​
If you haven't yet, set up the github.com/LearningTypeScript/projects repository locally.
shell
git clone https://github.com/LearningTypeScript/projects learning-typescript-projectscd learning-typescript-projectsnpm i
shell
git clone https://github.com/LearningTypeScript/projects learning-typescript-projectscd learning-typescript-projectsnpm i
Open your editor in this project's directory:
shell
code projects/syntax-extensions/typespeare
shell
code projects/syntax-extensions/typespeare
In one terminal, run the TypeScript compiler via the tsc
script within whichever step you're working on.
For example, to start the TypeScript compiler on the first step in watch mode:
shell
npm run tsc -- --project 01-whats-in-a-namespace --watch
shell
npm run tsc -- --project 01-whats-in-a-namespace --watch
In another terminal, run Jest via the test
script on whichever step you're working on.
For example, to start tests for the first step in watch mode:
shell
npm run test -- 1 --watch
shell
npm run test -- 1 --watch
Note: your terminal should be in the
typespeare
directory, not the root repository's directory.
Steps​
Notes​
- Don't import code from one step into another.