1.0.2 • Published 5 years ago
@es50678/cra-template-optimized-ts v1.0.2
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.mdUsage
yarn create react-app my-app --template @es50678/optimized-tsmake 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 reposcopes (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_ADDRESSFor more information, please refer to:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
1.0.2
5 years ago