<commit_before># Free Code Camp Project-based Curriculum Tools

This repo is for tools to help facilitate the creation and maintenance of the Free Code Camp project-based curriculum.

## [create-next-step.js](create-next-step.js)
A one-off script that will automatically add the next step based on the last step numbered as `part-xxx.md` where `xxx` represents the 3-digit step number of the last step. The challenge seed code will use the previous step's challenge seed code with the editable region markers (ERMs) removed.

**Note:** This script also runs [reorder-steps.js](reorder-steps.js).

### How to run script:
1. Change to the directory of the project.
2. Run the following npm command:
  ```bash
  npm run create-next-step
  ```

## [create-empty-steps.js](create-empty-steps.js)
A one-off script that automatically adds a specified number of steps at a specific starting step number. The challenge seed code for all steps created will be empty.

**Note:** This script also runs [reorder-steps.js](reorder-steps.js).

### How to run script:
1. Change to the directory of the project.
2. Run the following npm command:
  ```bash
  npm run create-empty-steps start=X num=Y # where X is the starting step number and Y is the number of steps to create.
  ```

## [create-step-between.js](create-step-between.js)
A one-off script that automatically adds a new step between two existing consecutive steps. The challenge seed code will use the existing starting step's challenge seed code with the editable region markers (ERMs) removed.

**Note:** This script also runs [reorder-steps.js](reorder-steps.js).

### How to run script:
1. Change to the directory of the project.
2. Run the following npm command:
  ```bash
  npm run create-step-between start=X end=Y # where X is the starting step number and Y is the following step number.

## [reorder-steps.js](reorder-steps.js)
A one-off script that automatically reorders the step files in a project's markdown files based on the filename.  It also updates the `challengeOrder` property array in the project's `meta.json` with the new order of the steps.

### Working Example
Let's say you start with the following project structure:

```bash
part-1.md
part-2.md
part-3.md
part-4.md
part-5.md<commit_msg>fix: added triple backticks to close code section<commit_after># Free Code Camp Project-based Curriculum Tools

This repo is for tools to help facilitate the creation and maintenance of the Free Code Camp project-based curriculum.

## [create-next-step.js](create-next-step.js)
A one-off script that will automatically add the next step based on the last step numbered as `part-xxx.md` where `xxx` represents the 3-digit step number of the last step. The challenge seed code will use the previous step's challenge seed code with the editable region markers (ERMs) removed.

**Note:** This script also runs [reorder-steps.js](reorder-steps.js).

### How to run script:
1. Change to the directory of the project.
2. Run the following npm command:
  ```bash
  npm run create-next-step
  ```

## [create-empty-steps.js](create-empty-steps.js)
A one-off script that automatically adds a specified number of steps at a specific starting step number. The challenge seed code for all steps created will be empty.

**Note:** This script also runs [reorder-steps.js](reorder-steps.js).

### How to run script:
1. Change to the directory of the project.
2. Run the following npm command:
  ```bash
  npm run create-empty-steps start=X num=Y # where X is the starting step number and Y is the number of steps to create.
  ```

## [create-step-between.js](create-step-between.js)
A one-off script that automatically adds a new step between two existing consecutive steps. The challenge seed code will use the existing starting step's challenge seed code with the editable region markers (ERMs) removed.

**Note:** This script also runs [reorder-steps.js](reorder-steps.js).

### How to run script:
1. Change to the directory of the project.
2. Run the following npm command:
  ```bash
  npm run create-step-between start=X end=Y # where X is the starting step number and Y is the following step number.
  ```
## [reorder-steps.js](reorder-steps.js)
A one-off script that automatically reorders the step files in a project's markdown files based on the filename.  It also updates the `challengeOrder` property array in the project's `meta.json` with the new order of the steps.

### Working Example
Let's say you start with the following project structure:

```bash
part-1.md
part-2.md
part-3.md
part-4.md
part-5.md
{'fraction_non_alphanumeric': 0.08770006577504934, 'fraction_numerical': 0.00526200394650296, 'mean_word_length': 4.1840909090909095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3919244', 'n_tokens_mistral': 1291, 'n_tokens_neox': 1246, 'n_words': 628}