# create-custom-react-app

> create react app with custom template

Latest version **1.0.6** (published 2017-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install create-custom-react-app
pnpm add create-custom-react-app
yarn add create-custom-react-app
bun add create-custom-react-app
```

Provides the command `create-custom-react-app`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2017-10-24 |
| First published | 2017-09-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | likun |
| Maintainers | likun7981 |

## Links

- npm: https://www.npmjs.com/package/create-custom-react-app
- Repository: https://github.com/likun7981/create-custom-react-app
- Homepage: https://github.com/likun7981/create-custom-react-app#readme
- Issues: https://github.com/likun7981/create-custom-react-app/issues
- npm.io page: https://npm.io/package/create-custom-react-app

## Dependencies (5)

- [ora](https://npm.io/package/ora.md) ^1.3.0
- [chalk](https://npm.io/package/chalk.md) ^2.1.0
- [commander](https://npm.io/package/commander.md) ^2.11.0
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^5.1.0
- [download-github-repo](https://npm.io/package/download-github-repo.md) ^0.1.3

## Recent versions

- 1.0.6 (latest) — 2017-10-24
- 1.0.5 — 2017-10-24
- 1.0.4 — 2017-09-13
- 1.0.3 — 2017-09-13
- 1.0.2 — 2017-09-13
- 1.0.1 — 2017-09-12
- 1.0.0 — 2017-09-12

## README

# create-custom-react-app
> create a custom template react app

This is a `create-react-app` wrapper , so you can use anything that you can use in `create-react-app`, more detail use , you can see [create-react-app-user-guide](https://github.com/facebookincubator/create-react-app#user-guide)

## Install
```bash
# You must install create-react-app
$ npm install -g create-react-app

$ npm install -g create-custom-react-app
```

## Usage
```bash
$ create-custom-react-app --help

  Usage: create-custom-react-app <project-directory> [options]


  Options:

    -t, --template [template-path-or-name]  create react app use custom template
    -h, --help                              output usage information

  Other options are the same as create-react-app
```

The `template` can use the following three types:

* Remote git repo from `github`, 
```bash
$ create-custom-react-app -t <username>/<repo-name>  <project-name>
## example
$ create-custom-react-app -t likun7981/test-git test-remote-project
```

* Global npm package like [Yeoman](https://github.com/yeoman/yeoman), the prefix is `react-app-template-<customname>`, example:

```bash
# Install the template with global
$ npm install -g react-app-template-simple

$ create-custom-react-app -t simple test-global-npm-package-project
```

* Local path template, example
> ⚠️ Note: relative local path must start with `.`, example `./relative-path` instead of `relative-path` 

```bash
$ create-custom-react-app -t relative-or-absolute-local-path test-local-path-project
```
## Create template
It is recommended that you customize the template on the basis of [the official template](https://github.com/facebookincubator/create-react-app/tree/master/packages/react-scripts/template)
1. Create `official template`
```bash
$ create-custom-react-app react-app-template-custom-name
```
2. Do what you want to do with the template
3. You can publish to npm, push to git or save locally, after it you can simple init it a project use `create-custom-react-app`
> ⚠️ Note: The __.gitignore__ file must rename to __gitignore__, you can see  
1.https://github.com/npm/npm/issues/1862  
2.https://qurl.com/5ysyl

## Custom config  
You can use [react-app-rewired](https://github.com/timarney/react-app-rewired) to custom config,
more config package you can see [react-app-rewire-contrib](https://github.com/osdevisnot/react-app-rewire-contrib)

## Why
Because we want to customize the template, but you don't want to change [create-react-app](https://github.com/facebookincubator/create-react-app) all the time.


## License 

MIT, Lee<<likun7981@gmail.com>>

---
_Source: https://npm.io/package/create-custom-react-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
