Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Migrate JS to TS and Test Files to Node.js Native Test runner : Juicy-coupon-bot renovation #25

Merged
merged 52 commits into from
Mar 21, 2025
Merged
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
ae4884c
Initialize tsConfig
hxrshxz Mar 8, 2025
ee0cd10
migrate blueSkyPost to Ts
hxrshxz Mar 8, 2025
b759660
migrate logger to Ts
hxrshxz Mar 8, 2025
3ad7c94
remove comments from tsConfig
hxrshxz Mar 8, 2025
148e003
use nodenext module
hxrshxz Mar 8, 2025
c78f238
modified gitignore and tsconfig
hxrshxz Mar 9, 2025
cd112e7
add post interface
hxrshxz Mar 9, 2025
d0e4d9e
blueSkyPost migrated
hxrshxz Mar 9, 2025
fbd98a8
mastodonPost migrated
hxrshxz Mar 9, 2025
21e5516
redditPost migrated
hxrshxz Mar 9, 2025
9c5c645
make util for generateCoupon
hxrshxz Mar 9, 2025
0e00fa0
currentCoupon migrated
hxrshxz Mar 10, 2025
e255212
randomDiscount migrated
hxrshxz Mar 10, 2025
ab200d4
publishReddit migrated
hxrshxz Mar 11, 2025
8d601b5
add types.ts for type definitions
hxrshxz Mar 11, 2025
ad55cf4
publishBlueSky migrated
hxrshxz Mar 11, 2025
9fd5055
publishMastodon migrated
hxrshxz Mar 11, 2025
48b2eb5
Merge branch 'master' of https://github.com/juice-shop/juicy-coupon-bot
hxrshxz Mar 11, 2025
05f8776
index.js migrated
hxrshxz Mar 12, 2025
6fae982
juicy-coupon-bot migrated
hxrshxz Mar 12, 2025
37d72e5
modified package.json
hxrshxz Mar 12, 2025
9c2eb68
modified tsconfig.json
hxrshxz Mar 12, 2025
49883cc
use import and inbuilt types for publish reddit
hxrshxz Mar 13, 2025
5a55b76
remove unused types
hxrshxz Mar 13, 2025
4bf8d02
use target:es2020
hxrshxz Mar 13, 2025
a7be403
replace sync-request with fetch
hxrshxz Mar 13, 2025
c526bd2
add test script for running ts tests
hxrshxz Mar 13, 2025
0e1b0a6
migrate blueSkyPost test file
hxrshxz Mar 13, 2025
0c80dbc
migrate currentCoupons test file
hxrshxz Mar 13, 2025
5e625c9
minor fix
hxrshxz Mar 13, 2025
d1a4a65
migrate mastodonPost test file
hxrshxz Mar 14, 2025
b25d2ef
migrate randomDiscount test file
hxrshxz Mar 14, 2025
3686bbf
minor fixes
hxrshxz Mar 14, 2025
838bc8d
add testUtils
hxrshxz Mar 14, 2025
00e4877
minor fix also 1 failing test fix
hxrshxz Mar 14, 2025
e800b1b
reddit post fix
hxrshxz Mar 14, 2025
a0d34f9
redditComment test file migrated
hxrshxz Mar 14, 2025
2a53f10
add utils folder and update imports accordingly
hxrshxz Mar 15, 2025
8962819
minor fixes
hxrshxz Mar 15, 2025
5f40b0c
add eslint
hxrshxz Mar 15, 2025
e2ce453
ESLint fixes using npm run lint:fix
hxrshxz Mar 15, 2025
30fb444
fix ESLint errors
hxrshxz Mar 15, 2025
017368d
exclude test files from EsLint
hxrshxz Mar 15, 2025
c8aba86
removed unused dependencies and fix workflows errors
hxrshxz Mar 16, 2025
4f5de48
update package-lock.json
hxrshxz Mar 16, 2025
4c2fdd6
fix package.json and resolve peer dependency conflicts
hxrshxz Mar 18, 2025
df56abd
fix .eslint file and ts lint errors
hxrshxz Mar 18, 2025
5358eb4
add package-lock.json
hxrshxz Mar 18, 2025
42cc7b5
modify eslint rules to match jucie shop
hxrshxz Mar 19, 2025
0207de6
run lint:fix with new rules
hxrshxz Mar 19, 2025
243cfd9
fix leftovers
hxrshxz Mar 19, 2025
9a4fa51
lint fix
hxrshxz Mar 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add post interface
hxrshxz committed Mar 9, 2025
commit cd112e7c2ccf3ef18b0e8ca2d05bb61019bfcd76
6 changes: 6 additions & 0 deletions lib/types/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export interface PostParameters {
discount: number;
coupon: string;
expiryDate: string;
}