Typescript starter template for CodinGame challenges
Features
- TypeScript
- Module bundling and minification with Parcel
- Testing with Jest
- Code formatting with Prettier
- VSCode integrations
git clonethis repo- Run
npm installin the project folder
You also need CodinGame Sync to synchronize your local code with the CodinGame editor.
Run either npm start or npm run build to generate the output file, then start the CodinGame Sync tool and choose to sync the dist/index.js file.
npm start: build your code in watch mode (it will automatically recompile on change). Note that in this mode code size optimizations are NOT performed, usenpm run buildfor that.npm run build: build your code once, with tree-shaking and minificationnpm run test: run unit tests oncenpm run test:watch: run unit tests in watch modenpm run prettify: reformat all your code automatically
All NPM scripts are mapped to VSCode tasks, and the build shortcut is mapped to the npm run build command.
A launch configuration is also ready-to-use to debug your tests with breakpoints support within VSCode.