react-scripts
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.
Development
Read, how to efficiently develop the react-scripts
package and how to locally build a new skeleton from the latest template.
Testing react-scripts
If you are working outside of the template
scope, use yarn link
or npm link
. Read more about yarn link
here.
Testing new template
You can run create-react-app
with local react-scripts as follow:
npx create-react-app my-test-app --scripts-version file:./create-react-app/packages/react-scripts;
Or you can just run a small script: bash ./create-test-react-app.sh
#!/usr/bin/env bash # delete old data rm -rf ./my-test-app; # build skeleton with the latest local version of your react-scripts npx create-react-app my-test-app --scripts-version file:./create-react-app/packages/react-scripts;