- Node.js (v14 or higher recommended)
- npm (v6 or higher recommended)
First, install the necessary dependencies by running:
npm install
To ensure TypeScript is set up correctly, run:
npm run start
To compile all TypeScript files and generate the dist
directory, run:
npm run build
This will use the TypeScript compiler to transpile your TypeScript files into JavaScript files in the dist
directory.
To run a specific file from the dist
directory, use the node
command followed by the path to the file. For example, to run soal-1.ts
, use:
node dist/soal-1.js
Check the console output to see the results of your script.
Here are the commands you will typically use:
npm install
npm start
npm run build
npm dist/soal-1.js
Enjoy working on your project! If you encounter any issues, feel free to reach out for help.
HAPPY CODINGG :)