AdventJS CLI Generator β Spin up your AdventJS challenges in seconds! πβ‘. Available in npm.
- π Instantly generates the boilerplate for each daily AdventJS challenge
- ποΈ TypeScript function template (ready for your solution)
- π Problem description in markdown
- π§ͺ Associated test file to validate your code
- βοΈ Out-of-the-box support for
- π Debugging
- π§ͺ Testing with Jest
- π οΈ TypeScript config
- π§Ή Linting (ESLint)
- π¨ Formatting (Prettier)
- π€ GitHub Actions for CI
- π₯οΈ VSCode integration
- π Ready for 2024 & 2025 challenges
Focus on solving the challenges, not setting them up! π
Start by initializing your AdventJS project:
npx adventjs-cli initThis command will guide you through a step-by-step setup.
The tool will create a new folder (adventjs-YYYY) with all necessary configuration files and a ready-to-use project structure.
Once your project is initialized, generate the starter files for any challenge day:
npx adventjs-cli g <day>Replace <day> with the challenge day number (e.g., 1, 5, 25).
Example:
npx adventjs-cli g 1npm run startnpm publish- Change
package.jsonandAPP_VERSIONversion number. - Push changes
- Create tag with version v.x.x
- Push tags
npm pack --dry-runnpm run build && chmod +x dist/index.jsnpm install ../ && npx adventjs-cli init