developer-roadmap/scripts
2024-09-23 22:41:55 +01:00
..
assign-label-types.cjs Add types to links 2024-06-06 23:23:55 +01:00
best-practice-content.cjs Add content for backend performance best practices 2024-03-25 21:25:23 +00:00
best-practice-dirs.cjs Add backend performance best practices 2024-03-25 15:15:30 +00:00
close-issues.sh Close stale issues script 2024-05-10 21:14:19 +01:00
compress-images.ts Ignore compressing .gif 2024-09-23 22:41:55 +01:00
compressed-images.json feat: implement image compressor (#5551) 2024-04-26 17:05:54 +01:00
create-roadmap-labels.sh Add a script to auto-label issues 2024-05-10 21:14:19 +01:00
editor-roadmap-assets.ts Add terraform assets 2024-06-21 21:26:15 +01:00
editor-roadmap-content-json.ts feat: copy roadmap content (#6405) 2024-08-13 16:04:32 +01:00
editor-roadmap-content.ts Add basic content for hcl 2024-06-21 21:26:15 +01:00
editor-roadmap-dirs.ts feat: add custom renderer for roadmaps (#5691) 2024-05-17 17:28:24 +01:00
generate-og-images.mjs Refactor github stats 2024-08-19 12:36:28 +01:00
generate-renderer.sh Fix renderer not working on local (#5694) 2024-05-17 20:25:46 +01:00
label-issues.sh Label the issues with slug 2024-05-11 11:46:08 +01:00
page-data-agg.cjs Rearrange scripts 2023-05-08 22:16:27 +01:00
readme.md Rearrange scripts 2023-05-08 22:16:27 +01:00
roadmap-content.cjs Add linux roadmap 2024-04-25 18:04:23 +01:00
roadmap-dirs.cjs Add AI and Data Scientist roadmap 2023-08-17 02:52:35 +01:00
roadmap-links.cjs Rearrange scripts 2023-05-08 22:16:27 +01:00
update-sponsors.cjs Rearrange scripts 2023-05-08 22:16:27 +01:00
warm-urls.sh Add script to warmup URLs 2024-05-13 01:38:37 +01:00

CLI Tools

A bunch of CLI scripts to make the development easier

roadmap-links.cjs

Generates a list of all the resources links in any roadmap file.

compress-jsons.cjs

Compresses all the JSON files in the public/jsons folder

update-sponsors.cjs

Updates the sponsor ads on each roadmap page with the latest sponsor information in the Excel sheet.

roadmap-content.cjs

Currently, for any new roadmaps that we add, we do create the interactive roadmap but we end up leaving the content empty in the roadmap till we get time to fill it up manually.

This script populates all the content files with some minimal content from OpenAI so that the users visiting the website have something to read in the interactive roadmap till we get time to fill it up manually.

roadmap-dirs.cjs

This command is used to create the content folders and files for the interactivity of the roadmap. You can use the below command to generate the roadmap skeletons inside a roadmap directory:

npm run roadmap-dirs [frontend|backend|devops|...]

For the content skeleton to be generated, we should have proper grouping, and the group names in the project files. You can follow the steps listed below in order to add the meta information to the roadmap.

  • Remove all the groups from the roadmaps through the project editor. Select all and press cmd+shift+g
  • Identify the boxes that should be clickable and group them together with cmd+shift+g
  • Assign the name to the groups.
    • Group names have the format of [sort]-[slug] e.g. 100-internet. Each group name should start with a number starting from 100 which helps with sorting of the directories and the files. Groups at the same level have the sequential sorting information.
    • Each groups children have a separate group and have the name similar to [sort]-[parent-slug]:[child-slug] where sort refers to the sorting of the child-slug and not the parent. Also parent-slug does not need to have the sorting information as a part of slug e.g. if parent was 100-internet the children would be 100-internet:how-does-the-internet-work, 101-internet:what-is-http, 102-internet:browsers.