Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

cra-template-please

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cra-template-please

James' template for React apps.

latest
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

cra-template-please

My personal template for Create React App.

Read about the features of this template here.

This template is useful for creating:

✓ React web apps
✓ Non-React web apps
✓ Web-based experiments
✓ Testing grounds for new libraries

Usage

This assumes I have already configured my computer.

To scaffold an app, use:

cra {name_of_app}

To create an app in the current directory, use:

cra .

New App Checklist

When building an application, there are a couple of things I need to do after installing the template.

  • Search for the string ~~TEMPLATE~~ and change those values.
  • Add a favicon. I typically use this app.

Configuring My Computer

Create an alias for cra:

alias cra="npx create-react-app --template cra-template-please"

Developing

I can test changes to this template without publishing using this command:

npx create-react-app --template file:./cra-template-please my-app

Learn More

For more information, please refer to:

  • Getting Started – How to create a new app.
  • User Guide – How to develop apps bootstrapped with Create React App.

Notes

  • Everything is a dependency in template.json because Create React App templates do not support devDependencies as of July 2020.

Keywords

react

FAQs

Package last updated on 09 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts