1.0.2 • Published 4 years ago

@es50678/cra-template-optimized-ts v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

cra-template-optimized

This is an optimized typescript template for Create React App.

It generates an app that follows the file structure described here

my-app
├── build
├── node_modules
├── public
│   ├── favicon.ico
│   ├── index.html
│   └── manifest.json
├── src
│    ├── components
│    │   ├── component-name
│    │   │   ├── component-name.css
│    │   │   ├── component-name.scss
│    │   │   ├── component-name-styles.tsx
│    │   │   ├── component-name.tsx
│    │   │   └── index.ts
│    │   └── index.ts
│    ├── images
│    │   │   └── logo.svg
│    ├── packages
│    │   └── ...
│    ├── utils
│    │   ├── ...
│    │   └── index.ts
│    ├── index.css
│    ├── index.tsx
│    └── service-worker.ts
├── .gitignore
├── package.json
└── README.md

Usage

yarn create react-app my-app --template @es50678/optimized-ts

make sure you have added the scope to your npm user

Detailed instructions can be found here.

When creating the token:

  • Name the token @es50678 scope Package Registry Access (or something similarly descriptive).
  • Select:
    • write:packages
    • read:packages
    • All repo scopes (this should get done automatically).

Ensure you copy the token down, you will need it later.

npm/yarn

$ npm login --registry=https://npm.pkg.github.com --scope=@es50678
> Username: GITHUB_USERNAME
> Password: TOKEN
> Email: GITHUB_EMAIL_ADDRESS

For more information, please refer to: