-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from carvilsi/usage
Usage
- Loading branch information
Showing
9 changed files
with
134 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Changelog | ||
|
||
# [v1.1.0](https://github.com/carvilsi/facetxt/releases/tag/v1.1.0) (2024-03-21) | ||
|
||
- adding 2 faces | ||
- added usage message for cli | ||
- more test coverage for cli | ||
- adding pre-release script | ||
- Created CODE_OF_CONDUCT.md | ||
- adding CONTRIBUTING.md | ||
|
||
# [v1.0.0](https://github.com/carvilsi/facetxt/releases/tag/v1.0.0) (2024-03-20) | ||
|
||
- first release with 537 faces | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
┌─────────┬──────────────────────────────────────┬──────────────┬───────────────────┬──────────┬─────────┐ | ||
│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │ | ||
├─────────┼──────────────────────────────────────┼──────────────┼───────────────────┼──────────┼─────────┤ | ||
│ 0 │ 'random face' │ '884,214' │ 1130.947659242501 │ '±9.16%' │ 88497 │ | ||
│ 1 │ 'random face with description' │ '1,170,516' │ 854.3239073231738 │ '±2.12%' │ 117052 │ | ||
│ 2 │ 'get array with all the faces' │ '8,995' │ 111169.4766666642 │ '±1.66%' │ 900 │ | ||
│ 3 │ 'get all the faces for pretty print' │ '11,540,558' │ 86.65091988613777 │ '±0.34%' │ 1154056 │ | ||
│ 4 │ 'get one by name; more than one' │ '20,015' │ 49960.50449551036 │ '±2.01%' │ 2002 │ | ||
│ 5 │ 'get one by name; just one' │ '13,818' │ 72366.4204052115 │ '±2.70%' │ 1382 │ | ||
│ 6 │ 'get array of faces by name' │ '18,619' │ 53707.17991407953 │ '±3.89%' │ 1862 │ | ||
└─────────┴──────────────────────────────────────┴──────────────┴───────────────────┴──────────┴─────────┘ | ||
┌─────────┬──────────────────────────────────────┬──────────────┬────────────────────┬──────────┬─────────┐ | ||
│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │ | ||
├─────────┼──────────────────────────────────────┼──────────────┼────────────────────┼──────────┼─────────┤ | ||
│ 0 │ 'random face' │ '1,781,396' │ 561.3574584178862 │ '±2.47%' │ 178141 │ | ||
│ 1 │ 'random face with description' │ '982,049' │ 1018.2782444884268 │ '±1.98%' │ 98205 │ | ||
│ 2 │ 'get array with all the faces' │ '9,455' │ 105762.12896405775 │ '±1.20%' │ 946 │ | ||
│ 3 │ 'get all the faces for pretty print' │ '11,448,288' │ 87.3493002011936 │ '±0.55%' │ 1144829 │ | ||
│ 4 │ 'get one by name; more than one' │ '22,234' │ 44975.79721222785 │ '±1.92%' │ 2224 │ | ||
│ 5 │ 'get one by name; just one' │ '24,619' │ 40618.138911455986 │ '±1.54%' │ 2462 │ | ||
│ 6 │ 'get array of faces by name' │ '23,586' │ 42396.40568036955 │ '±1.25%' │ 2359 │ | ||
└─────────┴──────────────────────────────────────┴──────────────┴────────────────────┴──────────┴─────────┘ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
CHNGLG=CHANGELOG.md | ||
README_FILE=README.md | ||
TEST_FILE=tests/main.test.js | ||
NAME=$(node -e "console.log(require('./package.json').name)") | ||
VERSION=$(node -e "console.log(require('./package.json').version)") | ||
today=$(date +%Y-%m-%d) | ||
line="# [v${VERSION}](https:\/\/github.com\/carvilsi\/${NAME}\/releases\/tag\/v${VERSION}) (${today})" | ||
last_release_date=$(head -n 3 CHANGELOG.md | tail -1 | awk '{ print $3 }' | sed 's/(\|)//g') | ||
commit_message=$(git log --after=${last_release_date} --format='- %s' | grep -v 'Merge' | sed '{:q;N;s/\n//g;t q}') | ||
|
||
total_faces=$(awk '/TOTAL_FACES =/ { print $4 }' $TEST_FILE | sed 's/;//g'); | ||
sed -i "s/Now with [0-9]* awesome faces/Now with ${total_faces} awesome faces/g" $README_FILE | ||
|
||
sed -i '2s/^/\nnewchangelogentry\n/' $CHNGLG | ||
sed -i "s/newchangelogentry/${line}\n\n- ${commit_message}/g" $CHNGLG | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters