Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

refactor: migrate build script to typescript #3423

Open
wants to merge 238 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
238 commits
Select commit Hold shift + click to select a range
2935475
format scripts
JeelRajodiya Nov 16, 2024
2badba7
format using prettier
JeelRajodiya Nov 16, 2024
ad8c426
migrate build-pages
JeelRajodiya Nov 18, 2024
eedff42
add ts-node configuration
JeelRajodiya Nov 18, 2024
df75c79
setup eslint rule to ignore js-doc in script files
JeelRajodiya Nov 18, 2024
7bf568a
Revert "setup eslint rule to ignore js-doc in script files"
JeelRajodiya Nov 18, 2024
4c51a80
move to imports
JeelRajodiya Nov 20, 2024
fbb0e61
rename next config file
JeelRajodiya Nov 20, 2024
fd80ef2
add new path config
JeelRajodiya Nov 20, 2024
f5b38a7
update import names
JeelRajodiya Nov 20, 2024
7b6c3b9
rename utils file to ts
JeelRajodiya Nov 20, 2024
a8c12ea
add types
JeelRajodiya Nov 21, 2024
e2097cc
update import
JeelRajodiya Nov 21, 2024
c01fb85
rename
JeelRajodiya Nov 21, 2024
c7a7247
rename to ts
JeelRajodiya Nov 21, 2024
a49c8a2
rename compose to ts
JeelRajodiya Nov 21, 2024
342432a
rename build docs to ts
JeelRajodiya Nov 21, 2024
9e8efd8
rename build meeting to ts
JeelRajodiya Nov 21, 2024
2e94f4c
rename build newsroom
JeelRajodiya Nov 21, 2024
6b6c4ea
rename build postlist to ts
JeelRajodiya Nov 21, 2024
136bd49
rename build rss
JeelRajodiya Nov 21, 2024
3e1536a
rename build tools to ts
JeelRajodiya Nov 21, 2024
2528190
rename readWriteJSON to ts
JeelRajodiya Nov 21, 2024
34b1cef
add type assertion of json
JeelRajodiya Nov 21, 2024
cecc10e
rename all files to ts
JeelRajodiya Nov 21, 2024
adb15fe
update imports
JeelRajodiya Nov 21, 2024
a05df3f
update file extentions
JeelRajodiya Nov 21, 2024
8cb082b
add ts-node config
JeelRajodiya Nov 21, 2024
b656d31
fix eslint issues. use promise.all instead of await in a loop
JeelRajodiya Nov 22, 2024
40daa1c
Merge branch 'master' into script-migration-2
asyncapi-bot Nov 22, 2024
717135f
fix eslint error
JeelRajodiya Nov 22, 2024
e8e30eb
rename
JeelRajodiya Nov 22, 2024
212e548
rename
JeelRajodiya Nov 22, 2024
652dfc8
Merge branch 'master' into script-migration-2
JeelRajodiya Nov 23, 2024
d3acd81
fix eslint error
JeelRajodiya Nov 23, 2024
09a2fcc
add error type
JeelRajodiya Nov 23, 2024
f5fac70
add new types
JeelRajodiya Nov 23, 2024
2f782e7
add types
JeelRajodiya Nov 23, 2024
1a1f47d
refactor and fix eslint errors
JeelRajodiya Nov 23, 2024
75a53d4
use google apis and add types
JeelRajodiya Nov 23, 2024
74d199f
remove console log
JeelRajodiya Nov 23, 2024
0459723
add specific rules for the script folder
JeelRajodiya Nov 23, 2024
3df75cf
Merge branch 'script-migration-2' of https://github.com/JeelRajodiya/…
JeelRajodiya Nov 23, 2024
24ff781
refactor dir variables
JeelRajodiya Nov 23, 2024
39821b7
add types and refactor it
JeelRajodiya Nov 23, 2024
00ed279
refactor: update eslint rules
JeelRajodiya Nov 24, 2024
8bf03da
reformat document
JeelRajodiya Nov 24, 2024
15ffa2b
update include paths
JeelRajodiya Nov 24, 2024
02e679a
use dynamic import
JeelRajodiya Nov 24, 2024
227995d
reformat eslintrc
JeelRajodiya Nov 26, 2024
be73210
Merge branch 'master' into script-migration-2
JeelRajodiya Nov 27, 2024
599ab9e
update rules
JeelRajodiya Nov 27, 2024
e71fcba
change tabs to spaces
JeelRajodiya Nov 27, 2024
851d1af
update ts node config
JeelRajodiya Nov 27, 2024
81d6cfc
migrate tools scripts
JeelRajodiya Nov 27, 2024
c5b5c9f
refactor __dirname variable
JeelRajodiya Nov 27, 2024
a42104e
refactor function in build-rss
JeelRajodiya Nov 27, 2024
add1c28
add new package type
JeelRajodiya Nov 27, 2024
b776dc7
Added error handling for undefined types
JeelRajodiya Nov 27, 2024
5b82b5d
add types
JeelRajodiya Nov 27, 2024
0916549
refactor adopter/index.ts
JeelRajodiya Nov 27, 2024
b294a6a
Merge branch 'master' into script-migration-2
JeelRajodiya Nov 29, 2024
93ff413
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 12, 2024
ba0a99a
use tsx instead of ts-node
JeelRajodiya Dec 12, 2024
c76a556
add types for build RSS
JeelRajodiya Dec 12, 2024
31103fe
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 14, 2024
5f7c9bb
revert name
JeelRajodiya Dec 14, 2024
5097c35
fix name
JeelRajodiya Dec 14, 2024
65a1873
fix name
JeelRajodiya Dec 14, 2024
a699313
fix name
JeelRajodiya Dec 14, 2024
7942128
Original name
JeelRajodiya Dec 14, 2024
bdc0ad0
Rename next-i18next.config.js to next-i18next.config.cjs
JeelRajodiya Dec 14, 2024
b87f48a
migrate build-post-list.ts
JeelRajodiya Dec 14, 2024
63a4ddd
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 14, 2024
647fa16
use old package-lock file
JeelRajodiya Dec 14, 2024
6f8bb5d
No code changes made
JeelRajodiya Dec 14, 2024
cc3d228
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 15, 2024
71e9581
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 16, 2024
32bf9bd
migrate check-markdown.ts
JeelRajodiya Dec 17, 2024
b03f8df
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 17, 2024
aa8cdb3
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 18, 2024
2fdab4c
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 19, 2024
1c9828e
feat: add TypeScript types for tools and categories
JeelRajodiya Dec 19, 2024
6c129b6
update type
JeelRajodiya Dec 20, 2024
6d6c179
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 20, 2024
df5aaae
Merge branch 'script-migration-2' of https://github.com/JeelRajodiya/…
JeelRajodiya Dec 20, 2024
fca9e36
feat: enhance type safety in combine-tools script with TypeScript types
JeelRajodiya Dec 20, 2024
6a26d06
chore: disable eslint rule for no-await-in-loop in combine-tools script
JeelRajodiya Dec 20, 2024
1541bc7
feat: improve type safety and refactor dashboard script functions
JeelRajodiya Dec 21, 2024
1237899
feat: add TypeScript types for dashboard script and enhance type safety
JeelRajodiya Dec 21, 2024
5268fe2
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 21, 2024
324e278
No code changes detected.
JeelRajodiya Dec 21, 2024
ad7268c
update package json
JeelRajodiya Dec 21, 2024
1ec94b3
refactor: remove console log from buildPostList function
JeelRajodiya Dec 21, 2024
4bf9c1b
fix: update workflow to conditionally install dependencies based on p…
JeelRajodiya Dec 21, 2024
f377a66
chore: remove unused PowerShell script and TypeScript type definitions
JeelRajodiya Dec 21, 2024
b96f142
refactor: add type annotations to capitalizeJsxTags function parameters
JeelRajodiya Dec 21, 2024
5bb3fde
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 23, 2024
a08e8fb
refactor: migrate build-docs
JeelRajodiya Dec 24, 2024
9059384
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 24, 2024
7007d2f
refactor: remove unused URL validation function from check-markdown.ts
JeelRajodiya Dec 24, 2024
79fc28e
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 26, 2024
5bba79d
chore: update Jest configuration and dependencies for TypeScript support
JeelRajodiya Dec 26, 2024
84fa86c
chore: enable ES module support in Jest configuration
JeelRajodiya Dec 26, 2024
7e49ca8
chore: update Jest configuration for TypeScript file handling and cov…
JeelRajodiya Dec 26, 2024
4820f6a
chore: update Jest configuration to set test environment to Node
JeelRajodiya Dec 26, 2024
e1c67c5
chore: enable ES module support in ts-jest transformer
JeelRajodiya Dec 26, 2024
15f3aab
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 27, 2024
98bf565
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 27, 2024
c93d5a1
refactor: update case studies import to default export and improve ty…
JeelRajodiya Dec 28, 2024
fb22081
refactor: update Jest configuration for improved TypeScript support
JeelRajodiya Dec 28, 2024
7ecfba4
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 28, 2024
470cc18
refactor: change imports to default exports for consistency
JeelRajodiya Dec 28, 2024
6e0ef28
refactor: update test imports to remove file extensions for consistency
JeelRajodiya Dec 28, 2024
7a3730d
refactor: simplify Jest transform configuration for TypeScript files
JeelRajodiya Dec 28, 2024
7ef191a
refactor: update dynamic import for manual tools and mock axios in tests
JeelRajodiya Dec 28, 2024
b3476a5
refactor: update path resolution to use fileURLToPath for better comp…
JeelRajodiya Dec 29, 2024
9590dd1
refactor: update path resolution to use fileURLToPath for improved co…
JeelRajodiya Dec 29, 2024
d6b0e2a
refactor: improve optional chaining usage and enhance tool validation…
JeelRajodiya Dec 29, 2024
c0e918f
refactor: enable ESM support in ts-jest transform configuration
JeelRajodiya Dec 29, 2024
d142cd0
refactor: update ts-jest configuration to use ESNext module in tsconfig
JeelRajodiya Dec 29, 2024
d15c741
refactor: add support for ESM by updating Jest configuration and Type…
JeelRajodiya Dec 29, 2024
279237c
refactor: enhance Jest configuration for ESM support and improve modu…
JeelRajodiya Dec 29, 2024
0b68337
refactor: update Jest configuration to use ES2022 module and target
JeelRajodiya Dec 29, 2024
15c0759
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 30, 2024
76dee32
refactor: simplify JSON import in build-rss and remove debug log in c…
JeelRajodiya Dec 30, 2024
a220216
Revert "refactor: improve optional chaining usage and enhance tool va…
JeelRajodiya Dec 30, 2024
e974218
refactor: update type definitions for discussions and improve null ha…
JeelRajodiya Dec 30, 2024
4215898
refactor: improve optional chaining for language filter in getFinalTo…
JeelRajodiya Dec 30, 2024
74a6afa
refactor: clean up code formatting and improve consistency across uti…
JeelRajodiya Dec 30, 2024
739005f
refactor: change getData to an exported function and update TypeScrip…
JeelRajodiya Dec 31, 2024
a043eb4
Merge branch 'master' into script-migration-2
JeelRajodiya Dec 31, 2024
3e90306
refactor: remove unused slugify function declaration from markdown-to…
JeelRajodiya Dec 31, 2024
375b437
Merge branch 'script-migration-2' of https://github.com/JeelRajodiya/…
JeelRajodiya Dec 31, 2024
52888af
refactor: update guid type in RSSItemType to include isPermaLink prop…
JeelRajodiya Dec 31, 2024
72dd6f6
refactor: replace manual path joining with path.join for better compa…
JeelRajodiya Dec 31, 2024
912f64b
refactor: change parameter type of convertToJson function to unknown …
JeelRajodiya Dec 31, 2024
d46470c
refactor: add return type Promise<void> to buildFinanceInfoList funct…
JeelRajodiya Dec 31, 2024
e2017c5
refactor: use optional chaining for safer access to video properties …
JeelRajodiya Dec 31, 2024
d0f0ccd
refactor: simplify interfaces by introducing BasicIssueOrPR for share…
JeelRajodiya Dec 31, 2024
56c4b52
refactor: enhance MarkdownToken interface with optional properties fo…
JeelRajodiya Dec 31, 2024
b62f48b
refactor: update tool handling by replacing dynamic import with JSON …
JeelRajodiya Dec 31, 2024
d939e07
test: update mock path for readAndWriteJson to include file extension
JeelRajodiya Dec 31, 2024
e533908
refactor: simplify Jest configuration by removing unnecessary options…
JeelRajodiya Jan 1, 2025
beb787e
refactor: update imports to use named exports for consistency and cla…
JeelRajodiya Jan 1, 2025
1bb48b6
refactor: simplify Jest configuration by utilizing ts-jest preset and…
JeelRajodiya Jan 1, 2025
31cf251
refactor: enhance type safety by casting imported JSON as 'any' in ge…
JeelRajodiya Jan 1, 2025
585aea2
refactor: enhance Jest configuration by integrating ts-jest preset wi…
JeelRajodiya Jan 1, 2025
ef0a30d
refactor: enhance Jest configuration by enabling JSON module resoluti…
JeelRajodiya Jan 1, 2025
ec823dd
refactor: simplify Jest configuration by removing JSON transform sett…
JeelRajodiya Jan 1, 2025
938f0cf
refactor: update Jest configuration to specify tsconfig for ts-jest p…
JeelRajodiya Jan 2, 2025
676cee6
refactor: clean up test files by removing test directory after execut…
JeelRajodiya Jan 2, 2025
614edc3
refactor: update import statement for pathExists from fs-extra to imp…
JeelRajodiya Jan 2, 2025
833a5dd
refactor: remove assert statements and export utility functions for b…
JeelRajodiya Jan 2, 2025
7ca813e
feat: add TypeScript declaration for JSON module to improve type safety
JeelRajodiya Jan 2, 2025
5cdf0a5
feat: add Babel configuration and TypeScript presets for improved com…
JeelRajodiya Jan 2, 2025
b501290
refactor: remove assert statements and improve error handling in buil…
JeelRajodiya Jan 2, 2025
dd0f128
feat: replace Google APIs client with node-fetch for YouTube data ret…
JeelRajodiya Jan 2, 2025
fb27678
feat: update Jest and Babel configuration for TypeScript support and …
JeelRajodiya Jan 2, 2025
cf6cf4f
fix: correct filename for automated tools configuration in build script
JeelRajodiya Jan 3, 2025
791ee89
chore: remove ts-jest from package.json and package-lock.json
JeelRajodiya Jan 3, 2025
9fe2983
refactor: replace assert statements with error handling in scripts
JeelRajodiya Jan 3, 2025
0c3d852
ci: replace npm install with npm ci for dependency installation in wo…
JeelRajodiya Jan 4, 2025
2abe64b
feat: add JSDoc comments for improved documentation across various sc…
JeelRajodiya Jan 4, 2025
67217c8
chore: remove unnecessary roots configuration from Jest config
JeelRajodiya Jan 4, 2025
6ab5fe7
chore: clean up tsconfig.json by removing unused ts-node configuration
JeelRajodiya Jan 4, 2025
534d4f4
test: remove redundant axios.get mock initialization in tools-object …
JeelRajodiya Jan 4, 2025
8f1941a
test: fix indentation in cleanup comment for build-pages tests
JeelRajodiya Jan 4, 2025
95a6ec8
fix: correct typo in comment for additional check in build-docs script
JeelRajodiya Jan 4, 2025
4be58ec
fix: update type annotation for validateFunction parameter in checkMa…
JeelRajodiya Jan 4, 2025
45314e4
fix: add error handling for missing CALENDAR_SERVICE_ACCOUNT environm…
JeelRajodiya Jan 5, 2025
073072b
fix: add error handling for missing YOUTUBE_TOKEN and validate video …
JeelRajodiya Jan 5, 2025
4289081
fix: remove redundant error handling for missing CALENDAR_SERVICE_ACC…
JeelRajodiya Jan 5, 2025
b09334e
fix: add file existence checks for Expenses.yml and ExpensesLink.yml …
JeelRajodiya Jan 5, 2025
c685dce
fix: await rssFeed call and add error handling in start function
JeelRajodiya Jan 5, 2025
be99d8d
fix: add error handling for missing GITHUB_TOKEN environment variable…
JeelRajodiya Jan 5, 2025
dbe2970
fix: enhance error handling for GitHub API responses in getData function
JeelRajodiya Jan 5, 2025
37ef4ca
refactor: remove file existence checks and simplify start function er…
JeelRajodiya Jan 5, 2025
b94707f
fix: remove GITHUB_TOKEN check from getData function
JeelRajodiya Jan 5, 2025
bf6f225
fix: add validation for missing frontmatter in validateBlogs function
JeelRajodiya Jan 5, 2025
cf245dc
feat: implement pagination for GitHub API data retrieval in getData f…
JeelRajodiya Jan 5, 2025
509a864
fix: format mockData structure in getData tests for consistency
JeelRajodiya Jan 5, 2025
9d516a5
refactor: move pause function to utils and remove redundant definitio…
JeelRajodiya Jan 5, 2025
745127b
feat: add processManualTool function to validate and process manual t…
JeelRajodiya Jan 5, 2025
54df453
refactor: remove max-depth eslint rule from combine-tools script
JeelRajodiya Jan 5, 2025
6f38f01
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 7, 2025
0ffcba4
refactor: remove duplicate Scala color configuration from tags-color …
JeelRajodiya Jan 7, 2025
99bbcb5
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 10, 2025
e57dc5d
feat(logging): integrate Winston logger for improved error handling a…
JeelRajodiya Jan 11, 2025
ed67303
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 11, 2025
cc1ff86
feat(logging): replace console log with Winston logger for GitHub rat…
JeelRajodiya Jan 12, 2025
35b1605
test(logging): update tests to use Winston logger for warnings and er…
JeelRajodiya Jan 12, 2025
feadb64
fix: use optional chaining for comments pageInfo in processHotDiscuss…
JeelRajodiya Jan 12, 2025
5618c7c
refactor: improve type definitions for tools in combine-tools.ts
JeelRajodiya Jan 12, 2025
19325be
refactor(jest): remove 'node' from moduleFileExtensions in jest.confi…
JeelRajodiya Jan 12, 2025
ccd1a61
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 14, 2025
d09b015
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 15, 2025
cb5f399
refactor(logging): replace console.log with logger in scripts
JeelRajodiya Jan 15, 2025
b5bb7b0
fix(docs): simplify error handling in buildNavTree function
JeelRajodiya Jan 15, 2025
15fc371
fix(errors): simplify error handling in buildMeetings and convertTool…
JeelRajodiya Jan 15, 2025
af6f3d5
fix(errors): simplify error handling in buildFinanceInfoList function
JeelRajodiya Jan 15, 2025
37c7a07
fix(validation): return errors when frontmatter is missing in validat…
JeelRajodiya Jan 15, 2025
e870cbc
test(validation): update frontmatter validation test for consistency
JeelRajodiya Jan 15, 2025
0275113
test(meetings): add error handling tests for invalid data structure a…
JeelRajodiya Jan 15, 2025
c764d35
fix(videos): improve error handling for missing video properties and …
JeelRajodiya Jan 15, 2025
a8a0c64
test(videos): remove unnecessary whitespace in buildNewsroomVideos test
JeelRajodiya Jan 15, 2025
522f2c1
test(github): add pagination test for getData function and mock logger
JeelRajodiya Jan 15, 2025
8939a79
test(tools): add test for createToolObject with single parameter
JeelRajodiya Jan 16, 2025
171debb
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 16, 2025
f7ffdc3
fix(tools): add istanbul ignore comments to enhance test coverage
JeelRajodiya Jan 16, 2025
753bde5
fix(tools): simplify language and technology filter checks in getFina…
JeelRajodiya Jan 16, 2025
eb2cedd
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 17, 2025
a879d00
feat(tools): export getFinalTool function and enhance test for handli…
JeelRajodiya Jan 17, 2025
446b818
Merge branch 'script-migration-2' of https://github.com/JeelRajodiya/…
JeelRajodiya Jan 17, 2025
a4132d0
test(tools): remove unnecessary blank line in combineTools test suite
JeelRajodiya Jan 17, 2025
d365f5d
fixed lint errors
akshatnema Jan 17, 2025
d6ec9fa
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 18, 2025
8a71248
test(markdown): replace console.log with logger.warn in checkMarkdown…
JeelRajodiya Jan 18, 2025
42c2479
Merge branch 'script-migration-2' of https://github.com/JeelRajodiya/…
JeelRajodiya Jan 18, 2025
f244667
test(markdown): refactor checkMarkdown tests for improved readability…
JeelRajodiya Jan 18, 2025
039bf70
test: improve test readability and consistency by refactoring whitesp…
JeelRajodiya Jan 18, 2025
fdea4b6
fixed variable naming issue
akshatnema Jan 18, 2025
a1a9c86
fix: update import paths to include .ts extension for build-docs and …
JeelRajodiya Jan 18, 2025
b3d5685
fix: update import paths in utils tests to include .ts extension
JeelRajodiya Jan 18, 2025
a0d6ff8
test(markdown): improve test clarity by removing commented-out code
JeelRajodiya Jan 18, 2025
1dfa3c7
fix: add istanbul ignore comments to exclude specific lines from cove…
JeelRajodiya Jan 18, 2025
29a71e7
fix: add istanbul ignore comment to exclude directory check from cove…
JeelRajodiya Jan 18, 2025
3241e7c
fix: add istanbul ignore comments to improve test coverage exclusions
JeelRajodiya Jan 18, 2025
b5c77c4
test(dashboard): remove commented-out expectation for error logging
JeelRajodiya Jan 18, 2025
e52f654
fix: add istanbul ignore comment to exclude title validation from cov…
JeelRajodiya Jan 18, 2025
cfad022
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 20, 2025
d18e1af
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 22, 2025
38e0054
refactor: migrate check-edit-links script to TypeScript and update re…
JeelRajodiya Jan 22, 2025
c5928da
Merge branch 'script-migration-2' of https://github.com/JeelRajodiya/…
JeelRajodiya Jan 22, 2025
1cb5862
fix: add istanbul ignore comments for code coverage in check-edit-lin…
JeelRajodiya Jan 22, 2025
327c6b6
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 23, 2025
a6116ed
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 25, 2025
884bbe6
Merge branch 'master' into script-migration-2
JeelRajodiya Jan 25, 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
8 changes: 7 additions & 1 deletion .eslintrc
JeelRajodiya marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,12 @@
"rules": {
"max-len": "off"
}
},
{
"files": ["scripts/**/*"],
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
]
}
}
15 changes: 10 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
module.exports = {
const config = {
transform: {
'^.+\\.[t|j]sx?$': ['babel-jest', { configFile: './tests/babel.test.config.cjs' }]
},
verbose: true,
collectCoverage: true,
coverageReporters: ['text', 'lcov', 'json-summary'],
coverageDirectory: 'coverage',
collectCoverageFrom: ['scripts/**/*.js'],
coveragePathIgnorePatterns: ['scripts/compose.js', 'scripts/tools/categorylist.js', 'scripts/tools/tags-color.js'],
// To disallow netlify edge function tests from running
testMatch: ['**/tests/**/*.test.*', '!**/netlify/**/*.test.*']
collectCoverageFrom: ['scripts/**/*.ts'],
coveragePathIgnorePatterns: ['scripts/compose.ts', 'scripts/tools/categorylist.ts', 'scripts/tools/tags-color.ts'],
testMatch: ['**/tests/**/*.test.*', '!**/netlify/**/*.test.*'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json']
};

export default config;
13 changes: 13 additions & 0 deletions next-i18next.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// The file is required to be named next-i18next.config.cjs so we can use it in next.config.js.
// https://github.com/i18next/next-i18next/issues/2185#issuecomment-1618307556
process.env.I18NEXT_DEFAULT_CONFIG_PATH = './next-i18next.config.cjs';

module.exports = {
i18n: {
locales: ['en', 'de'],
defaultLocale: 'en',
namespaces: ['landing-page', 'common', 'tools'],
defaultNamespace: 'landing-page',
react: { useSuspense: false } // this line
}
};
10 changes: 0 additions & 10 deletions next-i18next.config.js

This file was deleted.

1,086 changes: 844 additions & 242 deletions package-lock.json

Large diffs are not rendered by default.

30 changes: 19 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,29 @@
"version": "0.1.0",
"description": "AsyncAPI website",
"private": true,
"type": "module",
"scripts": {
"dev": "npm run build-scripts && next dev",
"build": "npm run build-scripts && next build",
"test": "jest --passWithNoTests",
"build:pages": "node scripts/build-pages.js && npm run format:mdx",
"build:posts": "node scripts/index.js",
"build:pages": "tsx scripts/build-pages.ts && npm run format:mdx",
"build:posts": "tsx scripts/index.ts",
"build-scripts": "npm run build:pages && npm run lint:mdx && npm run build:posts",
"write:blog": "node ./scripts/compose.js",
"write:blog": "tsx ./scripts/compose.ts",
"start": "npx serve@latest out",
"export": "next export",
"lint": "next lint",
"lint:fix": "next lint --fix",
"format:mdx": "prettier --write \"**/*.mdx\"",
"lint:mdx": "remark \"**/*.mdx\"",
"generate:assets": "echo \"No assets to configure\"",
"generate:meetings": "node scripts/build-meetings.js",
"generate:dashboard": "node scripts/dashboard/build-dashboard.js",
"generate:videos": "node scripts/build-newsroom-videos.js",
"generate:tools": "node scripts/build-tools.js",
"generate:meetings": "tsx scripts/build-meetings.ts",
"generate:dashboard": "tsx scripts/dashboard/build-dashboard.ts",
"generate:videos": "tsx scripts/build-newsroom-videos.ts",
"generate:tools": "tsx scripts/build-tools.ts",
"test:netlify": "deno test --allow-env --trace-ops netlify/**/*.test.ts",
"test:md": "node scripts/markdown/check-markdown.js",
"test:editlinks": "node scripts/markdown/check-edit-links.js",
"test:md": "tsx scripts/markdown/check-markdown.ts",
"test:editlinks": "tsx scripts/markdown/check-edit-links.ts",
"dev:storybook": "storybook dev -p 6006",
"build:storybook": "storybook build"
},
Expand Down Expand Up @@ -115,10 +116,12 @@
"swiper": "^11.0.7",
"tailwind-merge": "^2.2.1",
"tailwindcss": "^3.4.3",
"typescript": "^5.3.3",
"tsx": "^4.19.2",
"winston": "^3.17.0",
JeelRajodiya marked this conversation as resolved.
Show resolved Hide resolved
"yaml": "^2.3.4"
},
"devDependencies": {
"@babel/preset-typescript": "^7.26.0",
"@chromatic-com/storybook": "^1.6.1",
"@netlify/functions": "^2.6.0",
"@netlify/plugin-nextjs": "^4.41.3",
Expand All @@ -130,6 +133,9 @@
"@storybook/nextjs": "^8.2.4",
"@storybook/react": "^8.2.4",
"@storybook/test": "^8.2.4",
"@types/fs-extra": "^11.0.4",
"@types/inquirer": "^9.0.7",
"@types/jest": "^29.5.14",
"@types/lodash": "^4.17.0",
"@types/node": "^20",
"@types/react": "^18.0.1",
Expand All @@ -139,6 +145,7 @@
"@types/react-youtube-embed": "^1.0.4",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"babel-plugin-transform-import-meta": "^2.2.1",
"dedent": "^1.5.1",
"eslint": "^8",
"eslint-config-airbnb-typescript": "^17.1.0",
Expand All @@ -159,6 +166,7 @@
"remark-cli": "^12.0.1",
"remark-lint": "^10.0.0",
"remark-mdx": "^3.0.1",
"storybook": "^8.2.4"
"storybook": "^8.2.4",
"typescript": "^5.7.2"
}
}
2 changes: 1 addition & 1 deletion pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Document, { Head, Html, Main, NextScript } from 'next/document';
import React from 'react';

import i18nextConfig from '../next-i18next.config';
import i18nextConfig from '../next-i18next.config.cjs';

class MyDocument extends Document {
static async getInitialProps(ctx: any) {
Expand Down
File renamed without changes.
6 changes: 0 additions & 6 deletions scripts/adopters/index.js

This file was deleted.

15 changes: 15 additions & 0 deletions scripts/adopters/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { dirname, resolve } from 'path';
import { fileURLToPath } from 'url';

import { writeJSON } from '../utils/readAndWriteJson';

const currentFilePath = fileURLToPath(import.meta.url);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is import.meta.url here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is an alternative way of getting the current currentFilePath and currentDirPath. Apprently __dirname and and __filename are not in available in es modules.

Value of import.meta.url in /scripts/index.ts

image

Reference: Alternative for __dirname in Node.js when using ES6 modules

const currentDirPath = dirname(currentFilePath);

/**
* Builds the adopters list by converting a YAML file to JSON and writing it to a specified path.
* @returns {Promise<void>}
*/
export async function buildAdoptersList() {
writeJSON('config/adopters.yml', resolve(currentDirPath, '../../config', 'adopters.json'));
}
JeelRajodiya marked this conversation as resolved.
Show resolved Hide resolved
182 changes: 0 additions & 182 deletions scripts/build-docs.js

This file was deleted.

Loading
Loading