Secret Messages
A Learning TypeScript > Configuration Options 🥗 appetizer project. You'll practice using aliased object types to represent shapes of data.
Psst! You! Hey, you! Are you who I think you are? Are you the messenger?
If so, good. Great. Magnificent. I have a series of secret messages I need you to encode.
We'll use TypeScript configuration options to do so. Don't ask any questions - just go along with it.
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/configuration-options/secret-messages
shell
code projects/configuration-options/secret-messages
In your 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-encoded-outputs --watch
shell
npm run tsc -- --project 01-encoded-outputs --watch
Note: your terminal should be in the
secret-messages
directory, not the root repository's directory.
Steps
Notes
- Don't import code from one step into another.