https://github.com/dubzzz/codingame-typescript-bundler
Bundle your TypeScript project to run it in CodinGame contests
https://github.com/dubzzz/codingame-typescript-bundler
Last synced: 7 months ago
JSON representation
Bundle your TypeScript project to run it in CodinGame contests
- Host: GitHub
- URL: https://github.com/dubzzz/codingame-typescript-bundler
- Owner: dubzzz
- License: mit
- Created: 2018-06-16T08:26:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-01T22:07:13.000Z (about 7 years ago)
- Last Synced: 2025-01-25T23:22:29.745Z (9 months ago)
- Language: JavaScript
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# codingame-typescript-bundler
Bundle your TypeScript project to run it in CodinGame contests## Getting started
Your code as to be in `src/` directory. It can be composed of modules via `import` / `export`.
In order to compile your code into a single bundler, you have to either run a single build `npm run build` or an automatic build with `npm run watch`. It should result in a bundle file `lib/bundle.js`.
To use it in CodinGame just modify the content of `runAmd.js` by putting `lib/bundle.js` at `// Copy-paste the content of lib/bundle.js here`. Copy the resulting `runAmd.js` in CodinGame.
## More
You can also use a test runner - `Jest` is configured by default - to run tests.
Tests have to be put in `specs/**/*.spec.ts`.