adventjs-cli
v1.6.2
Published
Spin up your AdventJS challenges by @midudev in seconds! πβ‘
Downloads
791
Readme
π AdventJS-CLI
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! π
How to use it
1οΈβ£ Initialize your project
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.
2οΈβ£ Generate boilerplate for a specific day
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 1π§ DEV MODE
Run
npm run startPublish package
npm publishPublish package using pipelines
- Change
package.jsonandAPP_VERSIONversion number. - Push changes
- Create tag with version v.x.x
- Push tags
Debug package content
npm pack --dry-runDebug package
Generate package from root
npm run build && chmod +x dist/index.jsInstall while being on the generated folder
npm install ../ && npx adventjs-cli init