Socket
Book a DemoInstallSign in
Socket

cra-script-nomod

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cra-script-nomod

Configuration and scripts for Create React App with advanced template configuration.

0.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

cra-script-nomod

This package is monorepo of react-scripts@5.0.1

It will create react app using given template without copying over node_modules, package.json, package-lock.json, yarn.lock, .env.development and .env from template folder.
.env and .env.development entries can be dynamically added in template.json of custom cra template

This way developers can work on custom cra templates without worrying about deleting installed packages in template folder for development purposes

Useage with create-react-app

yarn create react-app myapp --scripts-version cra-script-nomod 
OR
npx create-react-app myapp --scripts-version cra-script-nomod 

Adding .env and .env.development

Customize cra-template template.json

{
    "package": {
        "dependencies":{
            ...
        },
        "devDependencies":{
            ...
        }
    },
    "env":{
        "REACT_APP_API_URL" : "https://example.com/api"
    },
    "envDevelopment":{
        "REACT_APP_DEVELOPMENT_API_URL" : "https://example.com/api"
    },
}

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.

Monorepo created by cloning create-react-app and using

git filter-branch –prune-empty –subdirectory-filter packages/react-scripts main

License

MIT

FAQs

Package last updated on 14 Apr 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.