8000 GitHub - pendo324/aoc
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pendo324/aoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Create a .env file and add your AOC_SESSION_COOKIE.

npm i then npm run create-day [year] <day> to download a day. Re-run to download the second part of the question as markdown after you've unlocked it.

Use npm run <year>-<day> to run the relevant index.js file for that day.

Note

On windows, for some unknown reason, npm i will fail if you aren't logged in. Use npm login before running npm i.

Maintenance

When this repo was setup, npm had just added multi-project workspaces and ts-node had just added support for Node's native ESModules. Hopefully, eventually, some hacks can be removed, namely:

  • the create-day npm script flags in ./utils/package.json (--no-warnings --experimental-specifier-resolution=node --loader ts-node/esm)
  • the npm login warning in the readme?? (still very confused about that one. maybe it will "go away" when ts-node is further updated)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0