Skip to content

Commit d67346d

Browse files
Merge pull request #213 from beakerandjake/feature/initial-release
Feature/initial release
2 parents 804e649 + bb7aa06 commit d67346d

File tree

7 files changed

+17
-49
lines changed

7 files changed

+17
-49
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,3 @@ jobs:
117117
tag_name: ${{ env.NEW_VERSION }}
118118
prerelease: ${{ startsWith(github.event.inputs.release-type, 'pre') }}
119119
body: ${{ steps.get-changelog.outputs.changelog }}
120-

CHANGELOG.md

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
## [1.3.2-beta.5] - 2023-02-09
1110

12-
## [1.3.2-beta.4] - 2023-02-08
11+
## [1.3.2] - 2023-02-09
1312

14-
## [1.3.2-beta.3] - 2023-02-01
15-
### Fixed
16-
- Github Action generates correct tag name
13+
- Initial Release
1714

18-
## [1.3.2-beta.2] - 2023-02-01
19-
### Added
20-
- First pass Github Actions for publishing to NPM / Creating github Release
21-
22-
## [1.3.2-beta.1] - 2023-01-31
23-
24-
## [1.3.2-beta.0] - 2023-01-31
25-
26-
## [1.3.1] - 2023-01-31
27-
### Added
28-
- Created github action to create release pull requests.
29-
30-
## [1.3.1-beta.4] - 2023-01-30
31-
### Fixed
32-
- Fix links to releases not appended to bottom of CHANGELOG.
33-
34-
## [1.3.1-beta.3] - 2023-01-30
35-
### Added
36-
- CHANGELOG is automatically updated during github release action.
37-
38-
[Unreleased]: https://github.com/beakerandjake/advent-of-code-runner/compare/v1.3.2-beta.5...HEAD
39-
[1.3.2-beta.5]: https://github.com/beakerandjake/advent-of-code-runner/compare/v1.3.2-beta.4...v1.3.2-beta.5
40-
[1.3.2-beta.4]: https://github.com/beakerandjake/advent-of-code-runner/compare/v1.3.2-beta.3...v1.3.2-beta.4
41-
[1.3.2-beta.3]: https://github.com/beakerandjake/advent-of-code-runner/compare/v1.3.2-beta.2...v1.3.2-beta.3
42-
[1.3.2-beta.2]: https://github.com/beakerandjake/advent-of-code-runner/compare/v1.3.2-beta.1...v1.3.2-beta.2
43-
[1.3.2-beta.1]: https://github.com/beakerandjake/advent-of-code-runner/compare/v1.3.2-beta.0...v1.3.2-beta.1
44-
[1.3.2-beta.0]: https://github.com/beakerandjake/advent-of-code-runner/compare/v1.3.1...v1.3.2-beta.0
45-
[1.3.1]: https://github.com/beakerandjake/advent-of-code-runner/compare/v1.3.1-beta.4...v1.3.1
46-
[1.3.1-beta.4]: https://github.com/beakerandjake/advent-of-code-runner/compare/v1.3.1-beta.3...v1.3.1-beta.4
47-
[1.3.1-beta.3]: https://github.com/beakerandjake/advent-of-code-runner/releases/tag/v1.3.1-beta.3
15+
[Unreleased]: https://github.com/beakerandjake/advent-of-code-runner/compare/v1.3.2...HEAD
16+
[1.3.2]: https://github.com/beakerandjake/advent-of-code-runner/releases/tag/v1.3.2

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ npm install
6161
```
6262

6363
#### `npm start`
64-
This is the command to run the program for development. It runs a the `scripts/start.js` file.
64+
This is the command to run the program for development. It runs the `scripts/start.js` file.
6565

6666
This file contains some logic to ensure local development is easy:
6767
- A working directory is created (if it does not exist) at the root of the repository called `development`. This folder acts as the cwd when running commands, it is ignored by git.
@@ -130,7 +130,7 @@ The chain runs these links in order:
130130
3. `getNextUnsolvedPuzzle` - Searches the user data file for the first puzzle the user has not solved, the puzzle day and level are added to the chain args.
131131
4. `outputPuzzleLink` - Prints a link to the puzzle in the terminal.
132132

133-
The order of the links is very important. Some links expect certain args to be present and will fail if those ars are missing. For instance `outputPuzzleLink` requires an args object like `{ year, day, level }`. These fields are added to the args object by the earlier links `getYear` and `getNextUnsolvedPuzzle`.
133+
Since the links in a chain are executed sequentially, the order of the links is very important. Some links expect certain args to be present and will fail if those ars are missing. For instance `outputPuzzleLink` requires an args object like `{ year, day, level }`. These fields are added to the args object by the earlier links `getYear` and `getNextUnsolvedPuzzle`.
134134

135135
## Tests
136136
[Jest](https://github.com/facebook/jest) is used for unit testing. There is no set coverage target, but the goal is to have as many quality tests as possible.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A Node.Js CLI solution generator and runner for [advent of code](https://advento
1818
- Stores and outputs statistics to the CLI or your README file.
1919
- Rate limits submissions to prevent timeout penalties.
2020
- Tracks your progress and knows which puzzle to run.
21-
- Uses modern ECMAScript modules (ESM).
21+
- Uses ECMAScript modules (ESM).
2222

2323
## :deer: Table of Contents
2424
- [Installation](#milk_glass-installation)
@@ -63,7 +63,7 @@ your-repository-folder/
6363
advent of code generates puzzle inputs unique to your account. In order to download inputs and submit answers this CLI needs to store your advent of code authentication token. The token will be stored in a .env file in your project directory. This .env file ***should not*** be committed to source control. When you run the `init` command a .gitignore file is generated which ignores .env files, so *your token is safe by default*.
6464

6565
#### Finding your Authentication Token
66-
The authentication token is stored in a advent of code cookie. Navigate to [advent of code](https://adventofcode.com/), and sign in to your account. Once signed in open up your browsers development tools, find the cookies for adventofcode.com and copy the value of the "session" cookie.
66+
The authentication token is stored in an advent of code cookie. Navigate to [advent of code](https://adventofcode.com/), and sign in to your account. Once signed in open up your browsers development tools, find the cookies for adventofcode.com and copy the value of the "session" cookie.
6767
- [Firefox help](https://firefox-source-docs.mozilla.org/devtools-user/storage_inspector/index.html)
6868
- [Chrome help](https://developer.chrome.com/docs/devtools/storage/cookies/)
6969

@@ -161,10 +161,10 @@ If you run the command with the `--save` argument then the table will be saved t
161161
```
162162
npm run stats -- --save
163163
```
164-
Note you must add `--` seperator between the command name and the `--save` argument. See this [stackoverflow question](https://stackoverflow.com/q/11580961) for more info.
164+
Note you must add `--` separator between the command name and the `--save` argument. See this [stackoverflow question](https://stackoverflow.com/q/11580961) for more info.
165165

166166
### `auth`
167-
Creates or updates the `.env` file with your advent of code authentication token. This is a useful command if you checkout your repository on a new machine, since the `.env` file is not commited to source control and wont be present on the new machine.
167+
Creates or updates the `.env` file with your advent of code authentication token. This is a useful command if you checkout your repository on a new machine, since the `.env` file is not committed to source control and wont be present on the new machine.
168168

169169
```
170170
npm run auth
@@ -191,7 +191,7 @@ These functions:
191191
### Arguments
192192
Solution functions are invoked with a single argument, an object containing the following fields:
193193
- `input: string`: A string containing the raw, unprocessed puzzle input. Provided for flexibility and custom parsing.
194-
- `lines: string[]`: An array of strings containing the each line of the puzzle input. Provided for convience and speed.
194+
- `lines: string[]`: An array of strings containing the each line of the puzzle input. Provided for convenience and speed.
195195

196196
Depending on the puzzle and its input you might need to [parse string values into integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt).
197197

@@ -202,10 +202,10 @@ This CLI downloads puzzles inputs only once and saves them to the `inputs/` fold
202202
## :gift: Misc File Information
203203

204204
#### `aocr-data.json`
205-
This file stores your progress. Every time you submit an answer, it is stored in this file to prevent duplicate submissions and track statistics. Additionally it stores the fastest recorded runtime for each puzzle. You should not edit this file manually. This file should be commited to source control.
205+
This file stores your progress. Every time you submit an answer, it is stored in this file to prevent duplicate submissions and track statistics. Additionally it stores the fastest recorded runtime for each puzzle. You should not edit this file manually. This file should be committed to source control.
206206

207207
#### `.ratelimits.json`
208-
This file stores rate limit information used when querying the advent of code website. The creator of the website has requested automated tools such as this CLI are conservative in the number of requests made to the website. This file tracks when the last request was made and the CLI uses this data to prevent requests from occuring too frequently. This file is ignored in source control.
208+
This file stores rate limit information used when querying the advent of code website. The creator of the website has requested automated tools such as this CLI are conservative in the number of requests made to the website. This file tracks when the last request was made and the CLI uses this data to prevent requests from occurring too frequently. This file is ignored in source control.
209209

210210
#### `.env`
211211
This file stores your authentication token, it ***should not be committed to source control***. See the [Authentication Token](https://github.com/beakerandjake/advent-of-code-runner#authentication-token) section for more information.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "advent-of-code-runner",
3-
"version": "1.3.2-beta.5",
3+
"version": "1.3.2",
44
"description": "CLI for running and submitting Advent of Code Puzzles",
55
"keywords": [
66
"adventofcode",

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const CONFIG = {
6666
},
6767
aoc: {
6868
authenticationToken: process.env[envOptions.authenticationToken] || null,
69-
baseUrl: 'http://192.168.0.1', // 'https://adventofcode.com',
69+
baseUrl: 'https://adventofcode.com',
7070
userAgent: 'https://github.com/beakerandjake/advent-of-code-runner by beakerandjake',
7171
responseParsing: {
7272
correctSolution: /that's the right answer/gim,

0 commit comments

Comments
 (0)