Skip to content

Custom CRA TypeScript template of Hipo web team for creating new web apps

Notifications You must be signed in to change notification settings

Hipo/cra-template-hipo-typescript

Repository files navigation

cra-template-hipo-typescript

This is the custom TypeScript template of Hipo web team for Create React App.

To use this template, add --template cra-template-hipo-typescript when creating a new app.

For example:

npx create-react-app my-app --template cra-template-hipo-typescript

# or

yarn create react-app my-app --template cra-template-hipo-typescript

Local Development

In order to test your local changes to the template, you can use the local version of the template by specifying its path as template argument:

npx create-react-app my-app --template file:../path/cra-template-hipo-typescript

Where ../projects/cra-template-hipo-typescript is the relative path of your template folder.

Recommended system versions

  • node 14.x
  • npm 7.x

How does it work?

This section briefly describes what the files in the template do. For more detailed and up-to-date information, please refer to:

template folder

This folder is copied to the user's app directory as Create React App installs. During this process, the file gitignore is renamed to .gitignore.

You can add whatever files you want in here, but you must have at least the files specified above.

template.json file

The package key lets you provide any keys/values that you want added to the new project's package.json, such as dependencies and any custom scripts that your template relies on.