@dgonzalezr/custom-react-scripts-ts

1.1.2 • Public • Published

Custom-React-Scripts-TS

...with typescript support, SCSS preprocessor and CSS Modules

This package includes scripts and configuration used by Create React App.
Please refer to its documentation:

Creating an App

You’ll need to have Node >= 6 on your local development machine (but it’s not required on the server). You can use nvm (macOS/Linux) or nvm-windows to easily switch Node versions between different projects.

To create a new app, run a single command:

npx create-react-app my-app --scripts-version @dgonzalezr/custom-react-scripts-ts

(npx comes with npm 5.2+ and higher, see instructions for older npm versions)

It will create a directory called my-app inside the current folder.
Inside that directory, it will generate the initial project structure and install the transitive dependencies:

my-app
├── README.md
├── node_modules
├── package.json
├── .gitignore
├── public
│   └── favicon.ico
│   └── index.html
│   └── manifest.json
└── src
    └── app
        └── screens
            └── Welcome
                └── Welcome.tsx
                └── Welcome.scss
                └── Welcome.test.tsx
            └── index.ts
        └── App.tsx
        └── registerServiceWorker.ts
    └── assets
        └── images
            └── logo.svg
    └── scss
        └── index.scss

No configuration or complicated folder structures, just the files you need to build your app.
Once the installation is done, you can open your project folder:

cd my-app

Inside the newly created project, you can run some built-in commands:

npm start or yarn start

Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.

The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.

Readme

Keywords

none

Package Sidebar

Install

npm i @dgonzalezr/custom-react-scripts-ts

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

223 kB

Total Files

35

Last publish

Collaborators

  • dgonzalezr