<commit_before># @reedsa/react-scripts

Extension of react-scripts to enable greater flexibility to use custom templates with creact-react-app.

### Basic Usage

Run create-react-app and set `--scripts-version` to use `@reedsa/react-scripts`.

```
create-react-app <app-name> --scripts-version @reedsa/react-scripts --internal-testing-template <template-path>
```

Jump to [Templates](#templates) for more information about using custom templates.

### Features

* Bootstrap projects with a `package.json` tailored to your needs. Provides templates with the ability to configure `dependencies`, `devDependencies`, `scripts` out of the box.
* `lint-staged` precommit hook support to run a code formatter or linter before commits are made to your project.
> For information on how to configure Prettier with a pre-commit hook [view these docs](https://github.com/prettier/prettier#pre-commit-hook).

### Templates

A custom template can be used to bootstrap your project.

[Preconfigured templates](https://github.com/reedsa/create-react-app-templates) are available to get started on a new React project. Also refer to this repository for information about creating your own custom templates.

#### Using a Template

Set `--internal-testing-template <template-path>` in the create-react-app command with the relative path to template you want to use. Without this flag create-react-app will use the default template.
> If your template defines anything other than `dependencies` in the `package.json` you should also include `--scripts-version @reedsa/react-scripts` in the command.

### Create React App

This package includes scripts and configuration used by [Create React App](https://github.com/facebookincubator/create-react-app).<br>
Please refer to its documentation:

* [Getting Started](https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
* [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.<commit_msg>Outlines how to use templates published to NPM<commit_after># @reedsa/react-scripts

Extension of react-scripts to enable greater flexibility to use custom templates with creact-react-app.

### Basic Usage

Run create-react-app and set `--scripts-version` to use `@reedsa/react-scripts`.

```
create-react-app <app-name> --scripts-version @reedsa/react-scripts --internal-testing-template <template>
```

Jump to [Templates](#templates) for more information about using custom templates.

### Features

* Bootstrap projects from a template with a `package.json` tailored to your needs. Provides configuration of `dependencies`, `devDependencies`, `scripts` out of the box.
* `lint-staged` precommit hook support to run a code formatter or linter before commits are made to your project.
> For information on how to configure Prettier with a pre-commit hook [view these docs](https://github.com/prettier/prettier#pre-commit-hook).
* Use a template published on NPM or provide a relative path to a template directory

### Templates

A custom template can be used to bootstrap your project.

[Preconfigured templates](https://github.com/reedsa/create-react-app-templates) are available to get started on a new React project or help you create your own custom templates.

#### Using a Template

Set `--internal-testing-template <template>` in the create-react-app command with either the relative path to the template directory or the name of a template published on NPM. Without this flag create-react-app will use the default template.
> To use a template published on NPM you must include `--scripts-version @reedsa/react-scripts` in the command. The `--scripts-version` flag is required when a template configuration for a `package.json` defines anything other than `dependencies`.

### Create React App

This package includes scripts and configuration used by [Create React App](https://github.com/facebookincubator/create-react-app).<br>
Please refer to its documentation:

* [Getting Started](https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
* [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.
{'fraction_non_alphanumeric': 0.09668633681343622, 'fraction_numerical': 0.0, 'mean_word_length': 4.852589641434263, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 10, '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': '6591144', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1152, 'n_words': 479}