Socket
Book a DemoInstallSign in
Socket

@dgonzalezr/custom-react-scripts-ts

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dgonzalezr/custom-react-scripts-ts

Custom configuration and scripts for Create React App.

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

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:

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

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.

FAQs

Package last updated on 27 Feb 2018

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